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
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 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
file='heroku-apps-delete' | |
File.readlines(file).each do |app| | |
app=app.strip | |
system "heroku apps:delete #{app} --confirm #{app}" | |
end |
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/zsh | |
if ((! $+commands[pwgen] )); | |
then | |
echo "fail" | |
fi | |
i=0 | |
while [ $i -lt 4 ] | |
do |
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 | |
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 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
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 |
OlderNewer