Skip to content

Instantly share code, notes, and snippets.

View TheNicholasNick's full-sized avatar

Nicholas Orr TheNicholasNick

View GitHub Profile
@evpo
evpo / bash.log
Created February 10, 2018 13:01
GnuPG: Sample commands to store master key offline and use subkeys
##############################
# In your underground bunker:
##############################
ubuntu@sign-key-owner:~$ gpg2 --list-secret-keys
/home/ubuntu/.gnupg/pubring.gpg
-------------------------------
sec rsa2048/26AD9CA6 2018-02-10 [SC] [expires: 2018-02-20]
uid [ultimate] Shelling Point <nowhere@north.pole>
ssb rsa2048/4CC51AF4 2018-02-10 [E] [expires: 2018-02-20]
@ankurk91
ankurk91 / install-node-js.sh
Last active April 10, 2024 13:53
Install node-js, npm and yarn on Ubuntu/Mac using nvm
#!/bin/sh
# Install node and npm via nvm - https://github.com/nvm-sh/nvm
# Run this script like - bash script-name.sh
# Define versions
INSTALL_NODE_VER=20
INSTALL_NVM_VER=0.39.7
@dweinstein
dweinstein / Dockerfile
Created March 14, 2014 15:37
testProject
FROM ubuntu
MAINTAINER David Weinstein <david@bitjudo.com>
# install our dependencies and nodejs
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install python-software-properties git build-essential
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get -y install nodejs
@TheNicholasNick
TheNicholasNick / ishikawa_sha1.js
Created November 25, 2010 01:19
Takanori Ishikawa's JavaScript implementation of the Secure Hash Algorithm 1 (SHA1)
/*
* The JavaScript implementation of the Secure Hash Algorithm 1
*
* Copyright (c) 2008 Takanori Ishikawa <takanori.ishikawa@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*