REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
license: gpl-3.0 |
git rebase --interactive HEAD~2 | |
# we are going to squash c into b | |
pick b76d157 b | |
pick a931ac7 c | |
# squash c into b | |
pick b76d157 b | |
s a931ac7 c |
REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
wget -r --no-parent -A '*CHANGES*' http://ws.com | |
grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" hbase-0.98.6-cdh5.3.6.CHANGES.txt | sort | uniq -i -z | uniq |
sudo apt-get install node nodejs npm
Kinesis Freestyle (Terrible key switches. Mushy and un-lovable)
Kinesis Freestyle Edge (Traditional layout with too many keys, mech switches, proably too big to be tented easily/properly)
Matias Ergo Pro (Looks pretty great. Have not tried.)
ErgoDox Kit (Currently, my everyday keyboard. Can buy pre-assembled on eBay.)
ErgoDox EZ (Prolly the best option for most people.)
mplayer -vo null -ao null -frames 0 -identify "file.mpg" | |
// LOOK FOR id_length | |
//8000 | |
mpayer -vo jpeg -sstep 5 -endpos 8000 -nosound "file.mpg" |
/etc/ssh/sshd_conf
, set UsePrivilegeSeparation
to no
/etc/ssh/sshd_conf
, temporarily enable plaintext passwords/etc/ssh/sshd_conf
, change port (e.g. to 23) to avoid confusion with Windows SSH serversudo service ssh restart
ssh-copy-id user@server
/etc/ssh/sshd_conf
, re-disable plaintext passwordsTo fix Could not load host key ...
error:
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
#!/usr/bin/env bash | |
# Takes a YouTube URI to a playlist (fairly liberal, it's fine as long | |
# as the playlist id can be extracted), and prints a list of URIs in a | |
# YouTube playlist. | |
# | |
# Requires youtube-dl 2014.10.24, tested on youtube-dl | |
# 2014.11.02.1. Feature subject to change. | |
youtube-dl -j --flat-playlist "$1" | jq -r '.id' | sed 's_^_https://youtube.com/v/_' |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config
file by running the command sudo vi /etc/ssh/sshd_config
and do the following
Port
to 2222 (or any other port above 1000)PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart