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 / .tmux.conf
Last active June 10, 2022 13:28
.tmux.conf
set -g prefix C-s
set -s escape-time 50
set-option -g status on
set -g pane-border-style fg=colour232
set -g pane-active-border-style "bg=default fg=colour232"
set-option -g status-interval 1
set-option -g status-justify centre
set-option -g status-keys vi
set-option -g status-position bottom
set-option -g status-style fg=colour36,bg=colour232
@zfarbp
zfarbp / zfarbp_lightline_theme.vim
Last active March 15, 2020 21:33
zfarbp_lightline_theme
" =============================================================================
" Filename: autoload/lightline/colorscheme/zfarbp_lightline_theme.vim
" Author: zfarbp
" License: MIT License
" Last Change: 2020/03/15
" =============================================================================
" color definitions
" [ "gui", cterm ]
let s:base03 = [ '#242424', 235 ]
@zfarbp
zfarbp / .vimrc
Last active December 17, 2021 12:43
vimrc
" __Required Plugins__ "
" - https://github.com/jistr/vim-nerdtree-tabs "
" - https://github.com/tpope/vim-pathogen "
" - https://github.com/preservim/nerdtree "
" - https://github.com/pangloss/vim-javascript "
" - https://github.com/itchyny/lightline.vim "
" - https://github.com/airblade/vim-gitgutter "
" - https://github.com/mileszs/ack.vim "
" - https://github.com/junegunn/fzf "
" - https://github.com/sharkdp/fd "
@zfarbp
zfarbp / s.md
Last active March 27, 2024 10:34
Trigger Spotify with osascript

Trigger Spotify with osascript

/Applications/Spotify.app/Contents/Resources/Spotify.sdef

# read-only
osascript -e 'tell application "Spotify" to player state'                  # stopped,playing,paused
osascript -e 'tell application "Spotify" to current track'                 # The current playing track.
osascript -e 'tell application "Spotify" to artwork url of current track'  # Image data in TIFF format.
osascript -e 'tell application "Spotify" to artist of current track'       # The artist of the track.
@zfarbp
zfarbp / gist:f4d28db1b6a4309389d484f47fedb748
Created November 19, 2019 12:06
youtube-dl best quality
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' https://www.youtube.com/watch?v=SLOBmN2iN60
@zfarbp
zfarbp / arch.md
Last active April 8, 2024 21:32
Golang - Building Executables for Different Architectures

Golang - Building Executables for Different Architectures

env GOOS=target-OS GOARCH=target-architecture go build package-import-path

# Example
env GOOS=darwin GOARCH=amd64 go build
env GOOS=darwin GOARCH=amd64 go build main.go
env GOOS=darwin GOARCH=amd64 go build github.com/zoo/york/foo/bar
@zfarbp
zfarbp / l.sh
Last active October 30, 2019 23:10
Searching for Dead Symbolic Links
#!/bin/bash
find . -type l -print | perl -nle '-e || print'
@zfarbp
zfarbp / man.txt
Last active August 29, 2021 12:16
Hacker's Manifesto
==Phrack Inc.==
Volume One, Issue 7, Phile 3 of 10
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following was written shortly after my arrest...
\/\The Conscience of a Hacker/\/
by
@zfarbp
zfarbp / gist:c34ef6a29c74837dd7ec4da11194e18e
Created October 24, 2019 01:59
Cross compiling Golang applications for Raspberry Pi
env GOOS=linux GOARCH=arm GOARM=5 go build <file>
@zfarbp
zfarbp / vscodesettingsbackup.md
Created October 2, 2019 07:50
My Visual Code Extensions,Settings and Keybindings Backup

My Visual Code Extensions,Settings and Keybindings Backup

Settings

{
    "workbench.colorTheme": "Flatland Monokai",
    "explorer.confirmDelete": false,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "javascript.referencesCodeLens.enabled": true,