Skip to content

Instantly share code, notes, and snippets.

View solocommand's full-sized avatar

Josh Worden solocommand

  • Parameter1
  • Madison, WI
  • 10:58 (UTC -05:00)
View GitHub Profile
@Jlaird
Jlaird / base-cms_add_DNS.sh
Last active May 23, 2022 16:20
Setup the default DNS for the new sites.
#!/bin/bash
if [ -z "$1" ]
then
read -p 'Please enter a domain: ' domain
else
domain=$1
fi
#########################################################
@solocommand
solocommand / fix_endings.sh
Last active March 7, 2018 14:24 — forked from Jlaird/move_images.sh
move images scripts
#!/bin/bash
# Usage: ./fix_endings.sh fileName
# Example: ./fix_endings.sh nfn.1.csv
file=$1
limit=$(wc -l < "$file")
counter=1
# set -x
@willprice
willprice / .travis.yml
Last active August 15, 2023 17:12
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@zarathustra323
zarathustra323 / doctrine_dbref_removal.php
Created March 14, 2014 16:42
Doctrine Event Subscriber to Remove DBRefs of Deleted Documents
<?php
namespace Foo\BarBundle\Listener;
use Doctrine\Common\EventSubscriber;
use Doctrine\ODM\MongoDB\Events;
use Doctrine\ODM\MongoDB\Event\LifecycleEventArgs;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory;
use Doctrine\ODM\MongoDB\Types\Type as MongoType;
@alloydwhitlock
alloydwhitlock / rsatoken.scpt
Last active June 11, 2017 01:35
Copy RSA Token Script for Mac (Automator + Applescript)
-- These are two separate Applescripts that can be executed within an automator workflow. Create a new workflow, create two “run applescript” actions, and paste them. This script will copy the RSA token, set your PIN, and paste it. If you don’t want the pin copied, remove the two lines with “pin” in the second applescript. There are instructions online about setting workflows as services which can be called via key commands.
-- You can set the “terminalapp” to whichever app you use (I use iTerm) and the “pin” to your PIN.
on run {input, parameters}
set terminalapp to "iTerm"
set pin to "6666"
@pauliusuza
pauliusuza / console.js
Created November 4, 2012 15:49
Javascript Output Console for Microsoft Visual Studio 2012 projects
/*
* Javascript Output Console for Microsoft Visual Studio 2012 projects
* @author Paulius Uza, pauliusuza@gmail.com
* @license MIT
*
* Dependencies:
* JQuery 1.8.2
*
* Usage:
* console.log(var1, var2, var3, var4);