Skip to content

Instantly share code, notes, and snippets.

View boreycutts's full-sized avatar

Corey Butts boreycutts

View GitHub Profile
@boreycutts
boreycutts / i3-gaps_installation_guide.md
Last active January 30, 2024 19:05
A simple installation guide for i3-gaps

Installing i3-gaps

Dependencies

i3-gaps has some packages that are required for it to work so install these things:

sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool automake

You also need to install libxcb-xrm-dev, but I got Unable to locate package libxcb-xrm-dev when trying to install from the apt repositories on Ubuntu 16.04. If this happens to you, just install it from source using these commands:

mkdir tmp
#!/usr/bin/env python
################################################################################
# Name: Wifi Test
# Author: Corey L Butts
# Date: 11/28/2017
#
# Description: A python script used to test the stability of a wifi adapter or
# wireless network. You can set your desired ip address or domain name with the
# "-a, --address" flag and the packet loss threshold with the "-t, --threshold"
# flag. The script will ping the address indefinitely until manually stopped
@boreycutts
boreycutts / server.js
Last active March 21, 2020 14:31
Simple Webserver
const DEFAULT_PORT = 8080;
let express = require('express'),
app = express();
app.use(express.static(__dirname + '/client'));
app.set('port', process.env.PORT || DEFAULT_PORT);
app.get('/' , function(req,res,next) {
import Queue
# Boolean used to switch on/off debug output
debug = False
# Function for printing the puzzle state to the console
def print_board(board):
print("- - - - - - - - - - -")
print("{0:4} {1:4} {2:4} {3:4}".format(board[0], board[1], board[2], board[3]))
print("{0:4} {1:4} {2:4} {3:4}".format(board[4], board[5], board[6], board[7]))