I hereby claim:
- I am willvincent on github.
<?php | |
namespace ...; | |
use Dedoc\Scramble\Extensions\OperationExtension; | |
use Dedoc\Scramble\Support\Generator\Operation; | |
use Dedoc\Scramble\Support\Generator\Parameter; | |
use Dedoc\Scramble\Support\Generator\Schema; | |
use Dedoc\Scramble\Support\Generator\Types\StringType; | |
use Dedoc\Scramble\Support\RouteInfo; |
#!/bin/bash | |
mkdir converted | |
for i in *.mp3 | |
do | |
sox "$i" -e u-law -r 8000 -D -c 1 "converted/$(basename "$i" .mp3).wav" | |
done |
#!/bin/bash | |
set -e | |
# Important note: this will add a new patch release AND deploy | |
if [ $# -lt 2 ]; then | |
git fetch --all --tags | |
# Interactively get info | |
LATEST=$(git describe --tags production) | |
read -e -p "Enter the version to patch, or press return for default [$LATEST]: " VERSION |
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: laravel-init app_name" | |
exit 1 | |
fi | |
### GLOBAL COMPOSER PACKAGES | |
composer global require hirak/prestissimo friendsofphp/php-cs-fixer |
const magic_terms = { | |
and: '&', | |
or: '|', | |
not: '!', | |
OR: '|', | |
AND: '&', | |
NOT: '!', | |
'&': '&', | |
'|': '|', | |
'!': '!', |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: myservice | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Put a short description of the service here | |
# Description: Put a long description of the service here | |
### END INIT INFO |
#!/bin/sh | |
# Linode DDNS Updater script | |
# By Will Vincent <[email protected]> | |
# | |
# Requirements: | |
# - A Linode account (obviously) | |
# - A domain record already created to update with the script | |
# - curl & jq | |
# |
var doc = context.document; | |
var page = doc.currentPage(); | |
var current_artboard = page.currentArtboard(); | |
var grid_width = [[doc askForUserInput:"How wide do you want your grid to be?" initialValue:"960"] integerValue] | |
var column_count = [[doc askForUserInput:"How many columns do you want?" initialValue:"12"] integerValue] | |
var gutter_width = [[doc askForUserInput:"How wide do you want your gutters to be?" initialValue:"20"] integerValue] | |
if (grid_width != 0 && column_count != 0 && current_artboard != null) { | |
var horizontal_rulers = [current_artboard horizontalRulerData] | |
var gutter_count = column_count + 1; |
#!/bin/bash | |
USAGE="$0 [-u <user> -p <password> -h <host> -P <PORT> -d <database> -D <destination/directory/without/trailing/slash>]" | |
DESTINATION=`pwd` | |
USER=root | |
PASS=root | |
HOST=localhost | |
PORT=3306 | |
# SPECIFY HOW LONG TO RETAIN BACKUPS |