This file contains hidden or 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
# /etc/asound.conf | |
pcm.!default { | |
type plug; | |
slave.pcm stereoA; | |
} | |
ctl.!default { | |
type hw card 0; | |
} |
This file contains hidden or 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 | |
/** | |
Introducing Curl Sort, an esoteric sorting algorithm. | |
1. For every x element in an array, construct a cURL request to a closed port on any server. | |
2. Set the timeout on each request to x seconds, respectively. | |
3. Fire all requests simultaneously and print out their duration as they complete. | |
*/ |
This file contains hidden or 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 | |
// IMAGE DISTORTING AND COMBINING ADVENTURES | |
// PROUDLY ACCOMPLISHED IN THE MIDDLE OF THE NIGHT ON A FRIDAY | |
// LOAD BILLBOARD IMAGE | |
$image_in = new imagick( __DIR__."/overlay.jpg" ); | |
// LOAD SCENE IMAGE | |
$image_scene = new imagick( __DIR__."/background.jpg" ); |
This file contains hidden or 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 | |
# Binance Calculator | |
# Created by Adam Privette (https://github.com/aprivette) | |
# | |
# Intended to help set limit buy/sell orders on Binance by providing metrics on a target price. | |
# Retrieves current USD value of the coin, projected BTC value of the coin based on target price, and offset percentage of the target price | |
# Example usage: binance-calc IOTA 4.53 | |
# Check for arguments | |
if [ -z "$2" ]; then |