Skip to content

Instantly share code, notes, and snippets.

launchctl stop com.mcafee.menulet
launchctl stop com.mcafee.reporter
launchctl remove com.mcafee.menulet
launchctl remove com.mcafee.reporter
sudo su -
launchctl stop com.mcafee.virusscan.fmpd
launchctl stop com.mcafee.ssm.ScanManager
@free5ty1e
free5ty1e / raspberryPiImageAutoShrinker.sh
Created April 17, 2016 22:13
Updated Raspberry Pi image auto shrinker script will shrink the ext4 filesystem down so you can restore the image on a smaller card
#!/bin/bash
# Automatic Image file resizer
# Written by SirLagz
# Fixed 2016.04.17 by @ChrisPrimeish
strImgFile=$1
if [[ ! $(whoami) =~ "root" ]]; then
echo ""
echo "**********************************"
echo "*** This should be run as root ***"
#!/bin/bash
sudo chown -R "$USER" ~
sudo chown -R "$USER" /usr/local
sudo apt-get -y install python-pip python-dev build-essential links2 lynx
easy_install --upgrade pip
pip install virtualenv twitter rainbowstream
pip install virtualenv twitter rainbowstream --upgrade
@free5ty1e
free5ty1e / createAnsiFontText.sh
Created April 9, 2016 10:28
Script to generate fancy ANSI text with short and long form command line calls, call script without any parameters for help
#!/bin/bash
function install_go_and_ansize() {
echo "Installing Go language and ANSIze image to ANSI converter..."
install_package_universal golang
mkdir "$HOME/gocode"
if [ -f "$HOME/.bashrc" ]; then
@free5ty1e
free5ty1e / genymotionwithplay.txt
Created December 31, 2015 20:19 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
@free5ty1e
free5ty1e / preprocessor_fun.h
Last active August 29, 2015 14:27 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,

Keybase proof

I hereby claim:

  • I am free5ty1e on github.
  • I am chrisprime (https://keybase.io/chrisprime) on keybase.
  • I have a public key whose fingerprint is FD86 83B6 F969 7CF6 EF10 3F21 87C9 FD89 D373 272F

To claim this, I am signing this object:

@free5ty1e
free5ty1e / xrdpLogMonitor.sh
Last active August 29, 2015 14:11
bash XRDP log monitor (raspberry pi / raspbian friendly script)
#!/bin/bash
# xrdpLogMonitor.sh <optional timeout in seconds>
# This script will check and spit out your xrdp log file every X seconds
# (default 30 if not specified)
# If the file size has changed since your last check, your terminal will beep (system alert)
logFileName="/var/log/xrdp.log"
if [ $# -eq 0 ];