Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
[ | |
{ | |
"disabled": false, | |
"env": [ | |
], | |
"id": "fbda6ab16491b918", | |
"info": "", | |
"label": "BambuLab MQTT", | |
"type": "tab" | |
}, |
# `pushd` and `popd`-style commands for git branches (in the place of directories) | |
# USAGE: `pushb <branch>; SOME_WORK; popb` | |
GITSTACK=() # stack of branches–just an array that we add to and access from the tail | |
GITSTASHCK=() # stack of stashes | |
function pushb { | |
GITSTACK+=`git symbolic-ref --short HEAD` | |
GITSTASHCK+=`git stash create` | |
git reset --hard # `git stash create` doesn't do this the way `git stash` normally does | |
git checkout $1 |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
[ | |
{"keys":["ctrl+shift+up"], "command":"super_add_line", "args":{ "forward": false } }, | |
{"keys":["ctrl+shift+down"], "command":"super_add_line", "args":{ "forward": true } } | |
] |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
# Usage: redis-cli publish message.achannel hello | |
require 'sinatra' | |
require 'redis' | |
conns = Hash.new {|h, k| h[k] = [] } | |
Thread.abort_on_exception = true | |
get '/' do |
# Usage: redis-cli publish message hello | |
require 'sinatra' | |
require 'redis' | |
conns = [] | |
get '/' do | |
erb :index | |
end |
gem 'sidekiq' | |
gem 'octokit' |