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
task :default => :pdf | |
task :pdf => %W[resume-duggins.pdf] | |
%W[resume.md].each do |md_file| | |
pdf_file = File.basename(md_file, ".md") + "-duggins.pdf" | |
file pdf_file => md_file do | |
sh "pandoc #{md_file} -s -o #{pdf_file}" | |
end | |
end |
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 | |
namespace App\Command; | |
use App\Entity\Blog as EntityBlog; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Finder\Finder; | |
use Mni\FrontYAML\Parser; |
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/zsh | |
if ((! $+commands[pwgen] )); | |
then | |
echo "fail" | |
fi | |
i=0 | |
while [ $i -lt 4 ] | |
do |
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
file='heroku-apps-delete' | |
File.readlines(file).each do |app| | |
app=app.strip | |
system "heroku apps:delete #{app} --confirm #{app}" | |
end |
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
import os | |
import sys | |
import argparse | |
import wget | |
import tarfile | |
if not os.geteuid() == 0: | |
sys.exit("\nMust be run by root\n") | |
def main(argv): |
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/python | |
import sys, getopt | |
def main(argv): | |
server = '' | |
path = '' | |
try: | |
opts, args = getopt.getopt(argv, "hs:p:", ["server=", "path="] ) |
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/ruby | |
require 'open-uri' | |
require 'json' | |
url = 'http://hipsterjesus.com/api?paras=1' | |
buffer = open(url, "UserAgent" => "Ruby-Wget").read | |
# convert JSON data into a hash |
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 | |
SLEEP_TIME=5 # Default time between checks. | |
SAFE_PERCENT=30 # Still safe at this level. | |
DANGER_PERCENT=15 # Warn when battery at this level. | |
CRITICAL_PERCENT=5 # Hibernate when battery at this level. | |
NAGBAR_PID=0 | |
export DISPLAY=:0.0 |
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 | |
# Lithifyme script. | |
# Creates a new project based on lithium. | |
# @Author David Duggins [weatheredwatcher@gmail.com] | |
# Released under the GPLv3 | |
if [ ! -d "$1" ]; then | |
git clone git://github.com/UnionOfRAD/framework.git $1 | |
echo "initializing submodules" | |
cd $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
#!/bin/sh | |
# | |
if [ -n "$1" ]; | |
then | |
git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive $1 | |
else | |
echo "no project given" |
NewerOlder