THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| ##FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' | |
| # triple space a file |
| Stripe CTF - Work Notes | |
| mpetrov ([email protected]) | |
| These notes are very rough. They should give a general idea of how each level was solved. | |
| ---- LEVEL 01 (login: e9gx26YEb2) ----- | |
| Solution: modifying PATH env variable | |
| Password: kxlVXUvzv | |
| date.c |
| Stripe CTF - Work Notes | |
| mpetrov ([email protected]) | |
| These notes are very rough. They should give a general idea of how each level was solved. | |
| ---- LEVEL 01 (login: e9gx26YEb2) ----- | |
| Solution: modifying PATH env variable | |
| Password: kxlVXUvzv | |
| date.c |
| '''List loaded modules and packages, and show their version numbers | |
| and/or Git repository's HEAD commit SHA. | |
| ''' | |
| # Standard library modules | |
| import types | |
| # Third-party packages | |
| import git # GitPython |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help |
| #!/usr/bin/env python3 | |
| import sys | |
| import os | |
| def main(args, f): | |
| if args: | |
| print(' '.join([f(x) for x in args])) | |
| return |
| alias d='cd ~/Documents' | |
| alias p='cd ~/Documents/personal' | |
| alias w='cd ~/Documents/work' | |
| alias o='cd ~/Documents/open-source' | |
| alias ~='cd ~' | |
| #go up any number of directories. eg: '. 3' goes up 3 parent directories, '.' or '. 1' goes up 1 directory | |
| function . { | |
| for i in `seq ${1-1}`; do | |
| cd ..; |
| Largest 1000 Cities in America | |
| 2013 popuation data - Biggest US Cities By Population | |
| rank,city,state,population,2000-2013 growth | |
| 1,New York,New York,8405837,4.8% | |
| 2,Los Angeles,California,3884307,4.8% | |
| 3,Chicago,Illinois,2718782,-6.1% | |
| 4,Houston,Texas,2195914,11.0% | |
| 5,Philadelphia,Pennsylvania,1553165,2.6% |