Skip to content

Instantly share code, notes, and snippets.

View zfarbp's full-sized avatar
👽
Talking to /dev/null

Fabian Bienk zfarbp

👽
Talking to /dev/null
View GitHub Profile
@zfarbp
zfarbp / vscodeextensions.md
Last active October 1, 2019 22:05
Visual Code - Backup List of Installed Extensions, Settings and Keybindings

Visual Code - Backup List of Installed Extensions, Settings and Keybindings

List Extensions

Set VS Code Path

Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

List installed extensions (+Install Statement)

# Genrate keys
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
-----------------------------------------------------------
# Edit ~/.ssh/config
Host your.hostname.com
Hostname github.com
@zfarbp
zfarbp / music.md
Last active December 4, 2022 14:26
DEV_ : A Coding Playlist on Spotify

DEV_ : A Coding Playlist on Spotify

Alternative, Ambient, Dark Trap, Experimental, Glitch, Instrumental, Seapunk, Vaporwave, Wave, Witch House

Shuffle, Play, Enjoy. devplaylist.com

@zfarbp
zfarbp / gist:e07ee9141f92156cb3a34af58da41362
Last active September 21, 2019 08:58
Javascript: Handling time zone problem
function now() {
const tzoffset = new Date().getTimezoneOffset() * 60;
return (new Date(Date.now()/1000 - tzoffset)).getTime();
}
@zfarbp
zfarbp / gist:20fa23c7153e4817342a8304b47bcacd
Last active September 21, 2019 08:59
Javascript: Array: push obj to the end of array
array.push(array.splice(array.indexOf(obj), 1)[0]);
@zfarbp
zfarbp / gist:64fc20c7f100943ae9f38d4c46e23cf9
Last active September 21, 2019 08:59
Bash: Cut/Download part of video via ffmpeg
#!/bin/bash
VID_URL=$1
VID_OUT_PATH=$2
START_TIME=$3
DURATION_TIME=$4
ffmpeg -ss $START_TIME -i $VID_URL -to $DURATION_TIME -vcodec copy -acodec copy -avoid_negative_ts make_zero $VID_OUT_PATH
@zfarbp
zfarbp / .bash_aliases
Last active November 27, 2021 15:53
bash_aliases
alias l='ls -lFsathrGi'
alias c='clear'
alias cp='cp -p'
alias cl='c;l'
alias ls='ls -G'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ll='ls'