Skip to content

Instantly share code, notes, and snippets.

View cicorias's full-sized avatar

Shawn Cicoria cicorias

View GitHub Profile
@cicorias
cicorias / backup-github.sh
Created November 22, 2016 16:08 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@cicorias
cicorias / backup_github.sh
Created November 22, 2016 16:09 — forked from xaprb/backup_github.sh
Shell script to back up all of an organization's GitHub repos
#!/bin/sh
LOGIN=YOURLOGIN
TOKEN=YOURTOKEN
ORG=YOURORG
DONE=0
PAGE=0
# sample output:
# "total_private_repos": 50,
Verifying that "cicorias.id" is my Blockstack ID. https://onename.com/cicorias
@cicorias
cicorias / buildess.sh
Created December 1, 2016 23:28
nodejs install
sudo apt-get install -y build-essential
@cicorias
cicorias / tree.sh
Created December 13, 2016 20:35
Tree for macOS
#!/bin/bash
SEDMAGIC='s;[^/]*/;|____;g;s;____|; |;g'
if [ "$#" -gt 0 ] ; then
dirlist="$@"
else
dirlist="."
fi
@cicorias
cicorias / wifi_scan.m
Last active December 22, 2016 16:14 — forked from pavel-a/wifi_scan.m
Wi-Fi scan for Apple OS X (maybe works for iOS too)
//
// wifi_scan.m
// WifiDump
//
// Created by Shawn Cicoria on 12/22/16.
// Copyright © 2016 CedarLogic, LLC. All rights reserved.
//
/* The official example for CoreWLAN is now obsolete,
@cicorias
cicorias / npm-upgrade-bleeding.sh
Created December 30, 2016 20:54 — forked from othiym23/npm-upgrade-bleeding.sh
a safe way to upgrade all of your globally-installed npm packages
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm -g install "$package"
done
@cicorias
cicorias / readme
Created January 6, 2017 17:15
Installing NodeJS on Ubuntu
sudo apt-get install -y build-essential libssl-dev
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
contract EscrowContract {
address buyer;
address seller;
address agent;
// Each party has an entry here with the timestamp of their acceptance
uint[3] acceptances;
bool active;
#!/usr/bin/env bash
sudo apt update
sudo apt install docker.io -y