start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env bash | |
# | |
# needs: Pulseaudio, VLC | |
# Load null sink module if not already loaded | |
pacmd list-sinks | grep steam 2>&1 >/dev/null | |
if [[ $? == 1 ]]; then | |
pactl load-module module-null-sink sink_name=steam; | |
fi |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
-- Playing with the nixio.fs library. | |
local nixiofs = require('nixio.fs') | |
-- Test if a file exists. | |
-- @param fname string | |
-- filename | |
-- @return boolean | |
-- true if file exists, false otherwise | |
-- |