Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / key.sh
Last active October 2, 2017 08:48
Get SSH Public Key #mac #terminal #ssh
pbcopy < ~/.ssh/id_rsa.pub
@signsi
signsi / must-haves.txt
Last active October 2, 2017 08:48
MUST-HAVES
SDKMAN! (The Software Development Kit Manager)
Atom
https://robomongo.org
Termius
@signsi
signsi / vertical.scss
Last active October 2, 2017 08:49
[Vertical Centering] #css #layout
position: relative;
margin-top: 50%;
transform: translateY(-50%);
/* Mixin --> not tested */
@mixin vertical-align($position: relative) {
position: $position;
top: 50%;
-webkit-transform: translateY(-50%);
@signsi
signsi / c.css
Created October 3, 2017 15:01
[flexbox without flexbox] #css #flexbox
https://kyusuf.com/post/almost-complete-guide-to-flexbox-without-flexbox