Skip to content

Instantly share code, notes, and snippets.

@aklap
aklap / leviathan_solutions.md
Created May 28, 2016 14:44
leviathan@overthewire

Level 1


ls -la    
cd ./backup    
cat ./bookmarks-html | grep password    

pw: rioGegei8m

Level 2

@aklap
aklap / solutions.md
Last active January 16, 2017 08:36
bandit@overthewire

Bandit at overthewire.org

Levels 0-26. As of 5/24/16 there is no level 27.

Level 0


Login into remote server using ssh

Commandss:

@aklap
aklap / git-pushing-multiple.rst
Created August 2, 2017 00:28 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

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

@aklap
aklap / Makefile
Created June 19, 2018 16:34 — forked from isaacs/Makefile
# 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.
@aklap
aklap / iterm2.md
Created April 2, 2018 02:11 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Fullscreen + Enter
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
@aklap
aklap / readme.md
Created October 12, 2018 03:39
Create Ubuntu live USB on macOS

From Apple Stack Exchange

1. Download Ubuntu ISO

2. Insert flash drive. Reformat.

Open DiskUtility. Erase flash drive. Reformat as MS-DOS(FAT) with GUID partition.

3. Convert the ISO to .img

Run hdiutil convert -format UDRW -o /path/to/target.img /path/to/ubuntu.iso

@aklap
aklap / The Technical Interview Cheat Sheet.md
Created June 6, 2019 05:15 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@aklap
aklap / checklist.md
Last active February 23, 2021 20:46
Checklist for maintaining setup on MacOS

Checklist for maintaining setup (MacOS)

MacOS

Apple Icon Software Update or run in command line: This command lists all updates for your v of MacOS

softwareupdate -l

This command lists installs all updates for you v of MacOS

@aklap
aklap / commands.md
Last active January 2, 2022 04:52
Commands for manipulating ebooks, docs, images

PDFs

Halve every page of a pdf if it's too text dense, (spread text across more pages):

$ mutool poster -y2 filename.pdf split.pdf

Requires installing mupdf-tools.

@aklap
aklap / checking_shasums.md
Last active July 7, 2023 14:11
How to check a file's shasum

How to check file integrity with shasum


For verifying the integrity (but not authenticity of data, i.e., who authored it or the origin of the file) of a file, it is necessary to run a checksum function on the file which will output a value and compare it to a previously stored checksum value; if both values match, we can be relatively confident that the file hasn't been tampered with or altered.

You might be asked to verify a file's sha1sum or sha2sum–-all this means is calculating and verifying the cryptographic sha1 or sha2 hash value or digest included in the file.

Various commands and methods for verifying shasum 1 or 2:


Organic:
In terminal run: