Skip to content

Instantly share code, notes, and snippets.

View VojtechStep's full-sized avatar

Vojtěch Štěpančík VojtechStep

  • Prague, Czech Republic
View GitHub Profile
@VojtechStep
VojtechStep / getname.js
Last active November 27, 2016 11:23
Generate codenames for your projects with this utility. Just run "node ./getname.js"
var http = require('http')
var https = require('https')
var alphabet = " -b -c -d -e -f -g -h -i -j-k -l -m -n -o -p -q -r -s -t -u-v -w x-y-z".split(" ")
function download(url, callback) {
var prot = url.startsWith('https') ? https : http
prot.get(url, function (res) {
var data = ""
res.on('data', function (chunk) {
@VojtechStep
VojtechStep / Config.ps1
Last active October 5, 2022 05:27
Powerline-style PowerShell prompt (git support and extensible)
#If this isn't the user using the shell, username@host will be displayed (if enabled)
$DEFAULT_USER='Adalbert'
#True to print username@host event if it's the default user
$PRINT_DEFAULT_USER=$FALSE
#Glyphs
$SEGMENT_DELIMETER_GLYPH=[char]0xE0B0 # î‚°
$PREV_CMD_FAIL_GLYPH=[char]0x2718 # ✘
$BGTASK_GLYPH=[char]0x2699 # âš™
@VojtechStep
VojtechStep / .eslintrc.json
Last active April 5, 2017 18:20
ESLint config
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": [
"react",
"import"
@VojtechStep
VojtechStep / keybase.md
Created February 25, 2018 20:12
keybase.md

Keybase proof

I hereby claim:

  • I am vojtechstep on github.
  • I am vojtechstep (https://keybase.io/vojtechstep) on keybase.
  • I have a public key ASCBYyCnyWBaRg3k9p6Ldjew_fAkgZOf8GaohhQpWil8kwo

To claim this, I am signing this object:

@VojtechStep
VojtechStep / sp
Created April 1, 2019 21:11 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#