Recommended: Graph-tool one-line install commands:
anaconda
conda create --name gt -c conda-forge graph-tool
homebrew
brew install graph-tool
Basics: | |
-ctrl a c -> create new window | |
-ctrl a A -> set window name | |
-ctrl a w -> show all window | |
-ctrl a 1|2|3|… -> switch to window n | |
-ctrl a " -> choose window | |
-ctrl a ctrl a -> switch between window | |
-ctrl a d -> detach window | |
-ctrl a ? -> help |
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a', | |
'#f781bf', '#a65628', '#984ea3', | |
'#999999', '#e41a1c', '#dede00'] |
Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.
Once you have a remote set up for one of your upstreams, run these commands with:
git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]
Once set up, git remote -v
should show two (push) URLs and one (fetch) URL. Something like this:
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
# WARNING: Use this at your own risk. It will probably break your other packages and cause other havoc. | |
# These days you should just upgrade to Ubuntu 18.04. | |
$ ssh -V | |
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016 | |
wget https://launchpadlibrarian.net/277739251/openssh-client_7.3p1-1_amd64.deb | |
wget https://launchpadlibrarian.net/298453050/libgssapi-krb5-2_1.14.3+dfsg-2ubuntu1_amd64.deb | |
wget https://launchpadlibrarian.net/298453058/libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb | |
wget https://launchpadlibrarian.net/298453060/libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb |
// Option 1 | |
async function streamToString(stream: NodeJS.ReadableStream): Promise<string> { | |
const chunks: Array<any> = []; | |
for await (let chunk of stream) { | |
chunks.push(chunk) | |
} | |
const buffer = Buffer.concat(chunks); | |
return buffer.toString("utf-8") | |
} |
// !runscript 6fe2b31896f518880b4f7b42d04f955a | |
// Sofie's Plane Lib | |
//------------------------------------------------------------------------------------------------- | |
// Usage Description. Parameters with {OPT} infront can be left out. | |
// Takeoff({OPT}Vel, {OPT}Mode, {OPT}, {OPT}Target, {OPT}dTA) - Flight control function for taking off, from a runway if on one. at DesSp or as given by Vel (Setting Vel updates DesVV). | |
// Mode sets the desired autopilot mode after takeoff, options are "Slope", "Altitude" or "Alt". The selected mode will be activated with Target (Setting Target updates DesSlope or DesA depending on Mode). | |
// dTA determines if TerrainAvoidance should be re-enabled after takeoff (Setting dTA updates TerrainAvoidance). | |
// FlyRunwayApproach(Runway, {OPT}Glideslope, {OPT}FinalDistance, {OPT}dTA) - Flight control function for landing on the specified runway. | |
// |