Skip to content

Instantly share code, notes, and snippets.

@hslu-dig
hslu-dig / vertical.scss
Created October 2, 2017 08:49 — forked from signsi/vertical.scss
[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%);
@hslu-dig
hslu-dig / must-haves.txt
Created October 2, 2017 08:48 — forked from signsi/must-haves.txt
MUST-HAVES
SDKMAN! (The Software Development Kit Manager)
Atom
https://robomongo.org
Termius
@hslu-dig
hslu-dig / key.sh
Created October 2, 2017 08:48 — forked from signsi/key.sh
Get SSH Public Key #mac #terminal #ssh
pbcopy < ~/.ssh/id_rsa.pub
@hslu-dig
hslu-dig / shell.sh
Last active October 6, 2017 07:30 — forked from signsi/shell.sh
Sudo with SSH #ssh #ubuntu
visudo /etc/sudoers
# for a user
<USER> ALL=(ALL) NOPASSWD: ALL
# for a group
%<GROUP> ALL=(ALL) NOPASSWD: ALL
@hslu-dig
hslu-dig / sh.sh
Created October 2, 2017 08:48 — forked from signsi/sh.sh
Ubuntu Search Filename #ubuntu #shell
find / -name logstash
@hslu-dig
hslu-dig / services.sh
Created October 2, 2017 08:46 — forked from signsi/services.sh
Show all running services #ubuntu #terminal
service --status-all
@hslu-dig
hslu-dig / vi.sh
Created October 2, 2017 08:46 — forked from signsi/vi.sh
Empty whole file #vim #terminal #ubuntu
:1,$d
@hslu-dig
hslu-dig / r-redis.r
Created October 2, 2017 08:46 — forked from signsi/r-redis.r
R-Redis #redis #r
library("rredis")
redisConnect()
redisSet("key","value")
redisGet("key")
@hslu-dig
hslu-dig / flex.css
Created October 2, 2017 08:46 — forked from signsi/flex.css
CSS Vertical Align #flexbox #css #alignment
.parent {
display: flex;
}
.child {
align-self: end;
}
@hslu-dig
hslu-dig / updates.sh
Last active May 30, 2018 10:56 — forked from signsi/updates.sh
ubuntu update #ubuntu #terminal
cd / &&
sudo apt-get update -y &&
sudo apt-get dist-upgrade -y &&
sudo apt-get autoclean -y &&
sudo apt-get autoremove -y