Skip to content

Instantly share code, notes, and snippets.

View JamesJ0717's full-sized avatar
🏌️‍♂️

James Johnson JamesJ0717

🏌️‍♂️
View GitHub Profile
@JamesJ0717
JamesJ0717 / setup.md
Last active October 27, 2021 19:01
Basic setup for a new Mac

Basic setup for a new machine

Install Homebrew

/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)";

Regular terminal apps are just installed

@JamesJ0717
JamesJ0717 / tcp.json
Last active November 10, 2020 19:31
A bunch of ports and a common service running on said port. Credit to https://svn.nmap.org/nmap/nmap-services
[
{ "port": 1, "service": "tcpmux" },
{ "port": 2, "service": "compressnet" },
{ "port": 3, "service": "compressnet" },
{ "port": 4, "service": "unknown" },
{ "port": 5, "service": "rje" },
{ "port": 6, "service": "unknown" },
{ "port": 7, "service": "echo" },
{ "port": 8, "service": "unknown" },
{ "port": 9, "service": "discard" },
@JamesJ0717
JamesJ0717 / BashOneLiners.txt
Last active September 24, 2019 14:54
Bash one liners
Get Docker: curl -fsSL https://get.docker.com | sudo bash -
Get Oh-My-ZSH: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Speedtest: curl https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Whatssobig: du -hd 1 | sort -rh

Keybase proof

I hereby claim:

  • I am jamesj0717 on github.

  • I am jamesj07 (https://keybase.io/jamesj07) on keybase.

  • I have a public key ASBylLjRfmns5gBSkE93mqQRvm6XbYpKg5tr8jTLhjv2awo

@JamesJ0717
JamesJ0717 / setup-repo.sh
Created July 15, 2019 12:01 — forked from methodbox/setup-repo.sh
Add a command "setup-repo" which remotely creates a GitHub repo for you and initializes Git for your local project.
#!/bin/bash
# GitHub API Token
GH_API_TOKEN=''
# GitHub User Name
GH_USER=''
# Variable to store first argument to setup-repo, the repo name. Will be used as GH repo name, too.
NEW_REPO_NAME=$1
# Store current working directory.
CURRENT_DIR=$PWD
# Project directory can be passed as second argument to setup-repo, or will default to current working directory.