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 | |
/** | |
* Blur values in both directions | |
* @param resource $src | |
* @param integer $radius | |
* @return resource | |
*/ | |
function blur($src, $radius) { | |
return bVert(bHoriz($src, $radius), $radius); |
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 is a hacky stylesheet for making GPM not so ugly. */ | |
/* Fix GPMDB's playlist nav on dark themes */ | |
#playlist-drawer paper-header-panel[at-top] paper-toolbar:not([style-scope]):not(.style-scope), | |
#playlist-drawer .autoplaylist-section, | |
#playlist-drawer #recent-playlists-container { | |
border-bottom-color: <<BACK_SECONDARY>>; | |
} | |
/* Remove Hero image */ |
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 meant to be run on a fresh install of Antergos with Xfce | |
function prompt() { | |
echo -n "$1 [y/n] " | |
read prompt_response | |
if [ $prompt_response == 'y' ]; then | |
return 0 | |
else | |
return 1 |
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
{ | |
"autoclose": true, | |
"autoindent": true, | |
"autosave": false, | |
"colorcolumn": 80, | |
"colorscheme": "monokai", | |
"cursorline": true, | |
"eofnewline": true, | |
"ignorecase": false, | |
"indentchar": " ", |
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 Xfce installation to Gnome | |
# LightDM will be replaced with GDM | |
# Don't continue on errors, since we can really screw up a system if we do | |
set -e | |
# Common packages | |
# evince | |
# file-roller | |
# gnome-calculator |
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 |
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
[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
<?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
<?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()); |