This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Soda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"button": "button3", | |
"press_command": "drag_select", | |
"press_args": {"by": "columns"} | |
}, | |
{ | |
"button": "button3", "modifiers": ["ctrl"], | |
"press_command": "drag_select", | |
"press_args": {"by": "columns", "additive": true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is designed to run on Xubuntu 14.04, but should work on | |
# most Ubuntu and Debian-based distros | |
################## | |
# Define globals # | |
################## | |
SETUPNAME="Alan's Xubuntu Setup" | |
DISTRO=`lsb_release -c | awk '{ print $NF }'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set global/skip_process_modules_updates to '1' in app/etc/local.xml and | |
* then use this script to apply updates and refresh the config cache without | |
* causing a stampede on the config cache. | |
* | |
* It should be placed in the shell/ directory, and must be run via CLI. | |
*/ | |
if(strtolower(php_sapi_name()) != 'cli'){ | |
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (empty($argv[1]) || $argv[1] == '-h') { | |
exit ("Usage: markov <input file> [words] [prefix] [minWords]\n"); | |
} | |
$text = file_get_contents($argv[1]); | |
$map = map($text); | |
$words = $argv[2] ?? 20; | |
$minWords = $argv[4] ?? 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'vendor/autoload.php'; | |
$ws = new \CLI\WS('localhost:8033'); | |
$nicks = []; | |
// Handle agent connections | |
$ws->on('connect', function($agent) { | |
echo sprintf("Client %s connected\n", $agent->id()); | |
print_r($agent->headers()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Elasticsearch importer and test client | |
*/ | |
require_once 'vendor/autoload.php'; | |
$f3 = Base::instance(); | |
$f3->mset(array( | |
'UI' => 'app/view/', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=OpenSQL Pro | |
Comment=A powerfully simple database client | |
Icon=office-database | |
Exec=python . | |
Path=/home/alan/GitHub/opensql-pro | |
Categories=Development; | |
StartupNotify=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
btc=$(curl -s https://api.coinbase.com/v2/prices/BTC-USD/buy | json data.amount) | |
eth=$(curl -s https://api.coinbase.com/v2/prices/ETH-USD/buy | json data.amount) | |
ltc=$(curl -s https://api.coinbase.com/v2/prices/LTC-USD/buy | json data.amount) | |
echo 'BTC $'$btc' ETH $'$eth' LTC $'$ltc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will convert an Antergos Gnome installation to Xfce | |
# GDM will be replaced with LightDM with the GTK greeter | |
# It keeps a few Gnome utilities around and installs Xfce4's WhiskerMenu plugin | |
# Don't continue on errors, since we can really screw up a system if we do | |
set -e | |
# Kill existing sessions | |
sudo systemctl stop gdm |