Skip to content

Instantly share code, notes, and snippets.

View waltspence's full-sized avatar

Walt Spence waltspence

View GitHub Profile
@waltspence
waltspence / clone-all-twitter-github-repos.sh
Created March 9, 2022 04:53 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@waltspence
waltspence / sed cheatsheet
Created March 28, 2018 10:31 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@waltspence
waltspence / install_php.sh
Created March 26, 2018 11:32 — forked from theodorosploumis/install_php.sh
Install php7 with useful extension on Ubuntu xenial 16.10
sudo apt-get purge php5-common -y
#sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y
sudo apt-get install -y \
php \
libapache2-mod-php \
php-fpm \
php-mysql \
php-memcached \
php-pear \
Verifying my Blockstack ID is secured with the address 121hhonnmWPxQSVMCNpgbCqRGVPfLGbScZ https://explorer.blockstack.org/address/121hhonnmWPxQSVMCNpgbCqRGVPfLGbScZ
@waltspence
waltspence / docker.md
Last active March 26, 2018 11:47
Docker Commands

Purging All Unused or Dangling Images, Containers, Volumes, and Networks

Docker provides a single command that will clean up any resources — images, containers, volumes, and networks — that are dangling (not associated with a container):

docker system prune

To additionally remove any stopped containers and all unused images (not just dangling images), add the -a flag to the command:

docker system prune -a
@waltspence
waltspence / README.md
Created September 13, 2017 08:20 — forked from ControlledChaos/README.md
Remove plugin entries from the list on the WordPress Plugins page.

Remove Plugin Entries

WordPress Snippet

@waltspence
waltspence / docker-compose.yml
Created August 5, 2017 14:27
Docker Compose file for Wordpress, MariaDB, and PHPMyAdmin
version: '2'
services:
wordpress:
image: wordpress:latest
networks:
- front
- back
ports:
- 8080:80
environment:
@waltspence
waltspence / bash
Last active March 28, 2017 06:23
Install Phantom and CasperJS easily with this bash script
#PhantomJS Exec Path
PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs
@waltspence
waltspence / update
Last active January 5, 2017 08:51
Update Ubuntu Server Script
#!/bin/bash
# ---------------------------------------------------------------------
# [@WaltSpence of @MakeGoCo]
# Updater
# A simple command to update debian based linux [sudo update]
# This is licensed under the Unlicense as seen at this link
# http://unlicense.org/UNLICENSE
# ---------------------------------------------------------------------
NAME=Updater
@waltspence
waltspence / .htaccess
Created November 29, 2016 03:07 — forked from CBeloch/.htaccess
Giphy - Random GIF by Tag
# Will allow to use a .gif extension.
# Script can now be used as www.mydomain.com/pokemon.gif
RewriteEngine on
RewriteRule ^(.*).gif giphy.php?tag=$1 [L,QSA]