Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
# This script will download and install the latest wine compatible version
# of the IMVUClient
# Be strict to avoid messy code
use strict;
# Use FindBin module to get script directory
use FindBin;
#!/usr/bin/env sh
URL="https://api.pushover.net/1/messages.json"
API_KEY=""
USER_KEY=""
DEVICE=""
TITLE="${1}"
MESSAGE="${2}"
@rcg4u
rcg4u / bashup.sh
Last active August 29, 2015 14:06 — forked from thom-nic/bashup.sh
# shellshock upgrade & patch for Mac OSX
# OSX ships with a horribly old version of bash (3.2) which is vulnerable to
# the Shellshock exploit (CVE-2014-6271)
# We use homebrew to get a recent version of bash, then symlink it to
# /bin/bash and /bin/sh (because sh is really bash)
#
# Use this to see if you're vulnerable
# env X="() { :;} ; echo vulnerable" /bin/bash -c "echo testing"
brew update && brew install bash
echo ""
echo "Apple OS X ShellShock BASH Fix Script"
echo "---------------------------------------------------------"
echo "Version : 20140926-2"
echo "Maintainer : T.Veluwenkamp <contact@timveluwenkamp.eu>"
echo "Copyright : Copyright (C) 2014 T.Veluwenkamp"
echo "---------------------------------------------------------"
echo ""
echo "Making TEMP dir to recompile BASH in..."
mkdir bash-fix
#/bin/bash
# change the mac
wan1="eth1.2"
wan2="eth1"
/sbin/ifconfig $wan1 down
/sbin/ifconfig $wan2 down
@rcg4u
rcg4u / modulescan.lua
Last active November 2, 2017 00:09
Module scan on cheat engine provided by darkbyte
c=createComboBox(MainForm.gbScanOptions)
c.Style='csDropDownList'
c.Items.add('All')
c.ItemIndex=0
c.Align=alTop
c.BorderSpacing.Left=6
c.BorderSpacing.Right=6
@rcg4u
rcg4u / gist:8db01354453cdb43457d330e609fbe62
Created April 29, 2018 22:48 — forked from nateware/gist:3915757
Start Mac VNC server from command line
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients
@rcg4u
rcg4u / kids.sh
Created May 2, 2018 09:55 — forked from anyhotcountry/kids.sh
LEDE script to setup kids WiFi
#!/bin/sh
start='18:00:00'
early_end='19:00:00'
end='08:30:00'
ssid='KIDZ'
pass='KidsAreCool'
allowip() {
rule=$1
@rcg4u
rcg4u / wordpress-change-domain-migration.sql
Created September 26, 2018 22:57 — forked from chuckreynolds/wordpress-change-domain-migration.sql
Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work. __STEP1: always backup your database. __STEP2: change the ‘oldsite.com’ and ‘newsite.com’ variables to your own. __STEP3: make sure your databa…
SET @oldsite='http://oldsite.com';
SET @newsite='http://newsite.com';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite);
/* only uncomment next line if you want all your current posts to post to RSS again as new */
#UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite);
@rcg4u
rcg4u / Contract Killer 3.md
Created October 14, 2018 03:40 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post