Skip to content

Instantly share code, notes, and snippets.

View christophwolff's full-sized avatar
🌍
searching...

Christoph Wolff christophwolff

🌍
searching...
View GitHub Profile
# iterm themes
https://iterm2colorschemes.com/
https://github.com/mbadolato/iTerm2-Color-Schemes
# ZSH Config
$ nano .zshrc
$ soruce .zshrc
@christophwolff
christophwolff / changed-files
Created March 8, 2019 15:13
Using Git to create an archive of changed files.
git archive -o update.zip HEAD $(git diff --name-only HEAD^)

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@christophwolff
christophwolff / add_rss_to_pocketcast.sh
Created December 10, 2018 21:32
Add RSS Feeds to Pocket Casts from txt file
#!/bin/bash
while read p; do
echo "Adding $p"
curl -X POST -F url="$p" https://refresh.pocketcasts.com/author/add_feed_url
done <podcasts.txt
@christophwolff
christophwolff / rot13.js
Created March 13, 2018 21:19
ROT13 Encode/Decode
rot13 (s) {
return s.split('').map((_) => {
if (!_.match(/[A-Za-z]/)) return _
var c = Math.floor(_.charCodeAt(0) / 97)
var k = (_.toLowerCase().charCodeAt(0) - 83) % 26 || 26
return String.fromCharCode(k + ((c === 0) ? 64 : 96))
}).join('')
}
.comment-icon {
display: flex;
@include media-breakpoint-up(sm) { // Using native Bootstrap Breakpoints
display: inline-block;
}
}
//http://v4-alpha.getbootstrap.com/layout/overview/#responsive-breakpoints
cd "$ZSH" && git stash && upgrade_oh_my_zsh
/**
* Deploy to a branch in the same repository.
*
* `gulp release [--releaseType=major|minor|patch]`
*
* By default, bumps the version using semantic release, creates
* a distribution from the master branch and deploys to dist branch.
*
* A `.gitignore-dist` file can be created to define ignored files
* for the release.
@christophwolff
christophwolff / snippets.cson
Created December 2, 2015 09:49
ATOM PHP Docblock Snippet
'.text.html':
'dochead':
'prefix': 'doc'
'body': """
<?php
/**
* $1
*
**/
?>