Skip to content

Instantly share code, notes, and snippets.

@n3r0-ch
n3r0-ch / gist:8903de658c29c0a1e524f1b383852263
Created June 24, 2018 20:45
Symfony PHPUnit pain in the ass
vagrant@ipnf:/vagrant$ composer req phpunit/phpunit
Using version ^7.2 for phpunit/phpunit
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Prefetching 26 packages 🎶
- Downloading (100%)
Package operations: 26 installs, 0 updates, 0 removals
@n3r0-ch
n3r0-ch / boxstarter.ps1
Last active May 1, 2018 07:12
My Boxstarter Configuration
<#
Run this automatically via this command:
"C:\Program Files\Internet Explorer\iexplore.exe" http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/n3r0-ch/cfee879f23275c1a94345248f79d14e1/raw/boxstarter.ps1
#>
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
# Update Windows
Enable-MicrosoftUpdate
@n3r0-ch
n3r0-ch / cleanup.sh
Created June 19, 2016 15:04
Git Repo Cleanup
#!/bin/bash
# Configuration
BASE_DIR=$(dirname "$0")
MAX_DEPTH=3
# Change directory to base dir
cd $BASE_DIR
# Define cleanup function
@n3r0-ch
n3r0-ch / keybase.md
Created April 11, 2016 09:38
keybase.md

Keybase proof

I hereby claim:

  • I am n3r0-ch on github.
  • I am n3r0_ch (https://keybase.io/n3r0_ch) on keybase.
  • I have a public key whose fingerprint is 86B2 6F0B 4C2E 345E 7EC3 6D2E 4481 4B2A D149 D784

To claim this, I am signing this object:

@n3r0-ch
n3r0-ch / backup.sh
Last active August 29, 2015 14:27
Dump the Software on your Mac
#!/bin/bash
LOCATION="restore.sh"
#Change to script directory
cd `dirname "$0"`
#Dump Header
echo '#/bin/bash' > "restore.sh"
@n3r0-ch
n3r0-ch / install.sh
Last active February 5, 2016 18:03
Masterless Puppet Installation
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
export LC_ALL="en_US.UTF-8"
#Backup old puppet directory
if [ -d "/etc/puppet" ]
then
mv /etc/puppet /etc/puppet-bak
fi
@n3r0-ch
n3r0-ch / docker-nuke
Last active August 23, 2019 16:44
docker-nuke exists to do one thing; clean up your Docker environment. It's not called docker-carefully-and-nicely-spritz-up. Be carefully!
#!/bin/bash
#Check if user is root
if [ $UID != 0 ]; then
echo "You need to be root to use this script."
exit 1
fi
echo "docker-nuke exists to do one thing; clean up your Docker environment. It's not called docker-carefully-and-nicely-spritz-up. Be carefully!"
echo