start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env python | |
| """ | |
| This script helps migrating issues from Bitbucket to GitHub. | |
| It currently ignores milestones completly and doesn't care whether an issue is | |
| open, new or on hold. As long as it's not closed it's considered open. | |
| To use it, install python-bitbucket, PyGithub and ipdb. |
| /** @jsx React.DOM */ | |
| var RenderedDeck = React.createClass({ | |
| render: function() { | |
| return <div id={this.props.id} className="deck" dangerouslySetInnerHTML={{__html:this.props.contents}}></div>; | |
| } | |
| }); | |
| var Deck = React.createClass({ | |
| render: function() { |
| { | |
| "description": "This is my Vagrant box, it's an example of what you can do with a custom Vagrant Cloud.", | |
| "short_description": "This is my Vagrant box.", | |
| "name": "myorg/mybox", | |
| "versions": [ | |
| { | |
| "version": "1.0.0", | |
| "status": "active", | |
| "description_html": null, | |
| "description_markdown": "", |
curl to get the JSON response for the latest releasegrep to find the line containing file URLcut and tr to extract the URLwget to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| // create context with no upfront defaultValue | |
| // without having to do undefined check all the time | |
| function createCtx<A>() { | |
| const ctx = React.createContext<A | undefined>(undefined) | |
| function useCtx() { | |
| const c = React.useContext(ctx) | |
| if (!c) throw new Error("useCtx must be inside a Provider with a value") | |
| return c | |
| } | |
| return [useCtx, ctx.Provider] as const |
| #!/bin/sh | |
| # Amend the commit message one specific commit and rebase | |
| # to apply the changes. Given the SHA hash or a reference | |
| # of the commit to amend, it checkouts the commit, amends | |
| # it interactively and rebases the repo history in current branch. | |
| # | |
| currentbranch=$(git branch --show-current) |
| ## Node configuration ## | |
| esphome: | |
| name: smart_scale | |
| platform: ESP8266 | |
| board: nodemcuv2 | |
| globals: | |
| - id: initial_zero | |
| type: float |