Skip to content

Instantly share code, notes, and snippets.

@aklap
aklap / checking_shasums.md
Last active October 19, 2024 15:51
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:

@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 / 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 / fix-missing-libcrypto-osx.md
Created October 17, 2016 04:25
Resolving missing link to libcrypto/openssl on OSX
@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 / 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 / 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 / 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 / setup.md
Last active October 8, 2024 20:47
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 / 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