start new:
tmux
start new with session name:
tmux new -s myname
// | |
// This is the result of about an hour's delving into PHP's hairy-ass serialization internals. | |
// PHP provides a session_decode function, however, it's only useful for setting the contents of | |
// $_SESSION. Say, for instance, you want to decode the session strings that PHP stores in its | |
// session files -- session_decode gets you nowhere. | |
// | |
// There are a bunch of nasty little solutions on the manual page[1] that use pretty hairy regular | |
// expressions to get the job done, but I found a simple way to use PHP's unserialize and recurse | |
// through the string extracting all of the serialized bits along the way. | |
// |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
#test { counter-reset: c; } | |
#test span { counter-increment: c; } | |
#test span:before { content: counter(c, decimal-leading-zero); } |
# This is my compton configuration after a quick cleanup. (It's still none too organized; sorry about that.) | |
# With this file at ~/.config/compton.conf, I can run compton without any arguments (just plain `compton`). | |
# | |
# In the hopes that explaining my software and hardware environment might be helpful to you: | |
# | |
# I use this configuration on Ubuntu 15.10 (and have used it on previous releases); I am currently using the 352.63 ("long-lived | |
# branch") NVIDIA binary drivers, installed from the Ubuntu software repositories. I use fluxbox as my window manager; most of | |
# the other components of my desktop environment are borrowed from Xfce. | |
# | |
# My workstation at home has an i7-4930K and a GTX 970 in it, which are together more than enough to drive several 4K displays |
Make sure these boxes are checked before submitting/approving the PR