Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / setup.md
Last active December 18, 2023 21:37
Upgrade Kobo E-Reader Storage

READ BEFORE STARTING!

Before erasing and partitioning your Kobo always back up your SD card and make sure you have an image of your Kobo drive before beginning this process.

I no longer own a Kobo Glo and do not have any Kobo images. The best place to find help with Kobo images or a bricked device are the forums at https://www.mobileread.com/forums.


You will need:

  • Kobo Glo HD (or other Kobo model that uses microSD)
@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 / 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 / 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 / fix-missing-libcrypto-osx.md
Created October 17, 2016 04:25
Resolving missing link to libcrypto/openssl on OSX
@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