Skip to content

Instantly share code, notes, and snippets.

View weatheredwatcher's full-sized avatar
:octocat:
Working from home

David Duggins weatheredwatcher

:octocat:
Working from home
View GitHub Profile
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):
@weatheredwatcher
weatheredwatcher / rm-apps.rb
Last active October 4, 2017 18:50
Quick little Ruby app to remove app from Heroku that are in a list.
file='heroku-apps-delete'
File.readlines(file).each do |app|
app=app.strip
system "heroku apps:delete #{app} --confirm #{app}"
end
@weatheredwatcher
weatheredwatcher / safari-pwgen.sh
Last active June 21, 2019 05:10
First pass at a Safari style password Generator
#! /bin/zsh
if ((! $+commands[pwgen] ));
then
echo "fail"
fi
i=0
while [ $i -lt 4 ]
do
<?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;
@weatheredwatcher
weatheredwatcher / Rakefile
Created April 2, 2021 04:21
Rakefile that I use to manage my resume. Can convert to pdf, HTML or Word doc.
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