This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Mac OS X (requires curl) | |
" ------------------------ | |
command! -range=% SP <line1>,<line2>w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\n' | pbcopy | |
command! -range=% CL <line1>,<line2>w !curl -F 'clbin=<-' https://clbin.com | tr -d '\n' | pbcopy | |
command! -range=% VP <line1>,<line2>w !curl -F 'text=<-' http://vpaste.net | tr -d '\n' | pbcopy | |
command! -range=% PB <line1>,<line2>w !curl -F 'c=@-' https://ptpb.pw/?u=1 | tr -d '\n' | pbcopy | |
command! -range=% IX <line1>,<line2>w !curl -F 'f:1=<-' http://ix.io | tr -d '\n' | pbcopy | |
command! -range=% EN <line1>,<line2>w !curl -F 'file=@-;' https://envs.sh | tr -d '\n' | pbcopy | |
command! -range=% XO <line1>,<line2>w !curl -F 'file=@-' https://0x0.st | tr -d '\n' | pbcopy | |
command! -range=% TB <line1>,<line2>w !nc termbin.com 9999 | tr -d '\n' | pbcopy |
Searching can be an efficient way to navigate the current buffer.
The first search commands we learn are usually /
and ?
. These are seriously cool, especially with the incsearch
option enabled which lets us keep typing to refine our search pattern. /
and ?
really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:
- when we want to search something that's not directly there, those two commands can make us lose context very quickly,
- when we need to compare the matches.
- Hosting/DNS - NearlyFreeSpeech - cheap, pay what you use hosting (literally could be < $1 a year)
- Web Server - Mongoose - a no installation, no configurations, one click to run web server (nice for local development)
- FTP - Cyberduck - will use to upload all your files to NFS
- Editor - Visual Studio Code - will use to edit all your html, css, javascript, etc..
- Colors - Color Cop - a nice color picker for web designers
- Browser - Chrome - has really nice tools for web developers
- Backup - Dropbox - a nice cloud storage app so you never lose your stuff
- Version Control (optional for now) - Git and SourceTree - a proper version control setup [[details below](https://gist.github.
var posts = document.getElementById("ars-liveblog-posts");
var i = posts.childNodes.length;
while (i--)
posts.appendChild(posts.childNodes[i])
Minified
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat git-show-big | |
#!/bin/bash | |
# Ref http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history | |
SHAS=$(git rev-list --objects --all | sort -k 2) | |
BIGOBJS=$(git gc && git verify-pack -v .git/objects/pack/pack-*.idx | egrep "^\w+ blob\W+[0-9]+ [0-9]+ [0-9]+$" | sort -k 3 -n -r) | |
join <(echo "$BIGOBJS" | sort ) <(echo "$SHAS" | sort ) | sort -k 3 -n -r | cut -f 1,3,6- -d\ |
- Win by controlling more than half of the star systems in the galaxy.
- The game operates in ticks, every hour your ships move, things are generated, every 24 hours money is generated.
- https://triton.ironhelmet.com/help/faq
- Here is a short overview of how the game functions
- Read the basic guide below possibly
You start off owning X stars and build carriers to explore new unowned stars, or fight the people on ones you want to control. Earn $ every 24 hours and use it to spend points in: Economy, Industry, or Science.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# man - `man` replacement for git bash on windows | |
# Requires: | |
# Git Bash - https://git-scm.com/downloads/ | |
# wget - https://eternallybored.org/misc/wget/ | |
# Notes: | |
# `sed -r` = allows gnu regex extensions (like +) |