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/sh | |
for i in `awk '!/nobody/{print $2 | "sort | uniq" }' /etc/userdomains | sort | uniq`; do | |
QUARANTINE="/home/${i}/quarantine/" | |
rm -rf $QUARANTINE &>/dev/null | |
done |
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
server { | |
listen 80; | |
listen 443 ssl; | |
server_name ##DEV_DOMAIN##; | |
root /srv/www/##V_USERNAME##/htdocs; | |
include /etc/nginx/nginx-wp-common.conf; | |
location ~* .(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires 24h; | |
log_not_found off; |
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 | |
# Author: Kevin Chappell http://kevin-chappell.com | |
# Description: Pull a production site into your local vagrant | |
# Version: 0.1.2 | |
echo -e '\e[32m | |
_ ______ ____ ____ | |
| | / / __ \ / __ \__ __/ / / | |
| | /| / / /_/ / / /_/ / / / / / / | |
| |/ |/ / ____/ / ____/ /_/ / / / |
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] | |
Type=Action | |
TargetLocation=true | |
ToolbarLabel[en_US]=Convert to Animated GIF | |
ToolbarLabel[en]=Convert to Animated GIF | |
ToolbarLabel[C]=Convert to Animated GIF | |
Name[en_US]=Convert to Animated GIF | |
Name[en]=Convert to Animated GIF | |
Name[C]=Convert to Animated GIF | |
Profiles=profile-zero; |
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
'use strict'; | |
import gulp from 'gulp'; | |
import gulpPlugins from 'gulp-load-plugins'; | |
import pkg from './package.json'; | |
const files = pkg.config.files; | |
// Rather than manually defined each gulp plugin we need, gulpPlugins defines them for us. | |
var plugins = gulpPlugins(), |
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/sh | |
# vid2gif - converts videos to gifs | |
# Usage: Add vid2gif.sh to your PATH then call like: | |
# $ vid2gif video.mp4 video.gif | |
# | |
# To add to context menu, create command that calls: | |
# $ vid2gif %F %d/%W.gif | |
# Get custom width and framerate from user input |
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/sh | |
# youtube-upload | |
# Dependencies: xclip and [youtube-upload](https://github.com/tokland/youtube-upload) | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
read -p 'Title (default filename): ' TITLE # defaults to filename | |
read -p 'Privacy (public | unlisted | private): ' PRIVACY # defaults to unlisted |
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 | |
# Author: Kevin Chappell http://kevin-chappell.com | |
# Description: Push a local vagrant dev site to production | |
# Version 0.1.2 | |
echo -e '\e[32m | |
_ ______ ____ __ | |
| | / / __ \ / __ \__ _______/ /_ | |
| | /| / / /_/ / / /_/ / / / / ___/ __ \ | |
| |/ |/ / ____/ / ____/ /_/ (__ ) / / / |
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
// Tired of seeing if else if else if else in fizzbuzz exercise I created | |
// this configurable FizzBuzz that uses only one if statement. | |
// https://jsfiddle.net/kevinchappell/44jrznbj/ | |
/** | |
* Configurable fizzBuzz | |
* @param {Object} args | |
* @param {Number} until number of iterations | |
* @return {String} output | |
*/ |
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
const pkg = require('./package.json'); | |
const {resolve} = require('path'); | |
const {BannerPlugin} = require('webpack'); | |
const CompressionPlugin = require('compression-webpack-plugin'); | |
const BabiliPlugin = require('babili-webpack-plugin'); | |
const PRODUCTION = process.argv.includes('-p'); | |
const bannerTemplate = [ | |
`${pkg.name} - ${pkg.homepage}`, |
OlderNewer