Skip to content

Instantly share code, notes, and snippets.

⚗️
Building a cyber crystal ball...

Adam M. Swanda deadbits

⚗️
Building a cyber crystal ball...
Block or report user

Report or block deadbits

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@deadbits
deadbits / add_key.sh
Created Apr 25, 2019
SSH Setup (because I always forget the permissions and steps somehow)
View add_key.sh
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
@deadbits
deadbits / ELK Procedure
Created Mar 26, 2017 — forked from sahilsk/ELK Procedure
nginx proxy configuration for elasticsearch
View ELK Procedure
## Install Docker
```
# install the backported kernel
$ sudo apt-get update
$ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
View mount-hfs-linux.md

Install hfsprofs

sudo apt-get install hfsprogs

Mount / remount the HFS+ drive

sudo mount -t hfsplus -o force,rw /dev/sdxN /media/mntPoint or..
sudo mount -t hfsplufs -o remount,force rw /dev/sdxN /mount/mntPoint

Dealing with improperly mounted or corrupt drive

sudo fsck.hfsplus /dev/sdxN

View gist:fd392b24c2078916a2f4043330623a23
Verifying that "amsdbs.id" is my Blockstack ID. https://onename.com/amsdbs
View gist:c915648cf78557b6c79d14f0243d3f59
Verifying that "amsdbs.id" is my Blockstack ID. https://onename.com/amsdbs
@deadbits
deadbits / file
Created Oct 12, 2016
freedom_public
View file
{"0.8860596202739888":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEU5ZmbeeUKwyOJ3v5azKjP4O5CS41Pn1x\r\nTfqHHZ/v9lp8QfZu6HoTajhoEDoVIqXNB3EJh+Cu1wwGTr2d+FZCfM3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCV/6gRv8AAAACiwn/AAAACZC7gUej3gND\r\nS/8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAmR4A/1/uFhVw6uQp\r\ntSIcAeboRx096B8f3d9AdgFIwKZsoflTAQCSl1GogGRTEHvhcNFIvv7GcG/9wYs4\r\n3g1DfC1TiITlxs7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBEvpEO0sZG0gtUvUVmIM\r\n88oHsfafZBjnsiAgbAqhliVqfFGS0kxcq+y6HaIIezwv/01ztwILHsxZlS2hfEWL\r\n1TEDAQgHwv8AAABtBBgTCAAf/wAAAAWCV/6gRv8AAAAJkLuBR6PeA0NL/wAAAAKb\r\nDAAAT1sBAIYloqmelecTEbeAITM2zLBMkEOc6gdsb+mQjaqfLtyaAQCMgIZhsBob\r\nLWTPkNrbsIVlUZ7LrIiOSh3S1sm2yYYnKg==\r\n=5tLS\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}
View gist:aebed46576375f38ec930a689f2a72a1
### Keybase proof
I hereby claim:
* I am deadbits on github.
* I am deadbits (https://keybase.io/deadbits) on keybase.
* I have a public key whose fingerprint is 01ED C31F 32E4 5485 EF76 9E25 A88F 2B93 A135 1871
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am deadbits on github.
  • I am deadbits (https://keybase.io/deadbits) on keybase.
  • I have a public key whose fingerprint is D65D 4712 2018 9C21 E5D2 13B5 D65E F900 37DD 79AF

To claim this, I am signing this object:

View hashdeep.py
"""
Build recursive hash of files in directory tree in hashdeep format.
Hashdeep format description:
http://md5deep.sourceforge.net/start-hashdeep.html
hashdeep.py differences from original hashdeep:
- if called without arguments, automatically starts to build
@deadbits
deadbits / docs.txt
Created Feb 16, 2015
documentation format
View docs.txt
Functions and Methods (function or method docstrings)
@param p: ... A description of the parameter p for a function or method. It may appear in the class docstring to describe a costructor parameter: mostly useful for C extensions.
@type p: ... The expected type for the parameter. p.
@return: ... The return value for a function or method.
@rtype: ... The type of the return value for a function or method.
@keyword p: ... A description of the keyword parameter p. It may appear in the class docstring to describe a costructor keyword parameter.
@raise e: ... A description of the circumstances under which a function or method raises exception e. It may appear in the class docstring to describe an exception that can be raised by the costructor.
Variables (module, class or variable docstrings)
You can’t perform that action at this time.