Skip to content

Instantly share code, notes, and snippets.

@signsi
signsi / dokku.sh
Created September 14, 2017 16:19
[create dokku app] #dokku #ubuntu
dokku apps:create ruby-rails-sample
@signsi
signsi / updates.sh
Created September 14, 2017 14:33
ubuntu update #ubuntu #terminal
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
@signsi
signsi / flex.css
Created September 12, 2017 07:14
CSS Vertical Align #flexbox #css #alignment
.parent {
display: flex;
}
.child {
align-self: end;
}
@signsi
signsi / r-redis.r
Last active October 2, 2017 08:46
R-Redis #redis #r
library("rredis")
redisConnect()
redisSet("key","value")
redisGet("key")
@signsi
signsi / vi.sh
Created September 3, 2017 19:53
Empty whole file #vim #terminal #ubuntu
:1,$d
@signsi
signsi / services.sh
Created September 3, 2017 19:33
Show all running services #ubuntu #terminal
service --status-all
@signsi
signsi / sh.sh
Created September 1, 2017 17:40
Ubuntu Search Filename #ubuntu #shell
find / -name logstash
@signsi
signsi / shell.sh
Last active October 2, 2017 08:48
Sudo with SSH #ssh #ubuntu
visudo /etc/sudoers
user ALL=(ALL) NOPASSWD: ALL
@signsi
signsi / ssh.sh
Created September 1, 2017 16:14
Enable SSH-Login #ssh #terminal #ubuntu
ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
@signsi
signsi / key.sh
Last active October 2, 2017 08:48
Get SSH Public Key #mac #terminal #ssh
pbcopy < ~/.ssh/id_rsa.pub