Came across this technique to get a screen session started as another non-root user on system startup. You could have this command in /etc/rc.local or any other location that runs on system startup as root.
Also, it doesn’t have to just be at system startup. These commands could be used at any time by the root user to start a screen session for another user.
This command must run as root. I had best luck when providing full paths to the executable and optional file arguments (like if you are passing a conf file)
su - username -c "/usr/bin/screen -dmS screenname ./executable"
So, for example, to get irssi started as chris in a screen session named irc, You could:
su - chris -c "/usr/bin/screen -dmS irc /usr/bin/irssi"
You can then log in to the box as chris and resume the screen session that root started.
Netflix logo styled in pure CSS.
No images, no SVG.
Best ISP for watching Netflix
Here is a nice trick to add a proxy that your HTML5 application can use to connect to any remote proxy. Apache can proxy the API request while also injecting the CORS header Access-Control-Allow-Origin to that remote API reponse.
# Proxy for BaseServer
Header add "Access-Control-Allow-Origin" "*"
Edit your .bash_profile and add the line:
#For Java 7:
export JAVA_HOME="`/usr/libexec/java_home -v '1.7*'`"
#For Java 8:
export JAVA_HOME="`/usr/libexec/java_home -v '1.8*'`"
Animate.css is a wonderful CSS animation library.
On the website, animations are grouped by types – “Attention Seekers”, “Bouncing Entrances”, “Bouncing Exits”, etc.
What I present is a revised order with In’s and Out’s grouped next to each other. This gives a nice effect when cycling through all the animations.
These are unofficial Master Controller lyrics I wrote and performed for the Pertino Summer party 2013:
A botnet of browsers
socket.io is an amazing library which makes it very easy to use websockets. This library gives us real-time communication ability in the browser with very little code.
This article is written for people already familiar with Linux, and Internet networking and security concepts.
$ cat shh.sh
echo "[%lu] DISABLE_NOTIFICATIONS\n" $now > $commandfile
Enabling notifications across the board is similar:
$ cat enable-notifications.sh
echo "[%lu] ENABLE_NOTIFICATIONS\n" $now > $commandfile
Done in Barclay wood with acrylic paints