Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#By Nate Flink
#Invoke on the terminal like this
#curl -s https://gist.github.com/nateflink/9056302/raw/findreplaceosx.sh | bash -s "find-a-url.com" "replace-a-url.com"
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: ./$0 [find string] [replace string]"
exit 1
fi
@janroz
janroz / final-cut-pro-trial-reset.swift
Created August 30, 2018 13:29 — forked from dannote/final-cut-pro-trial-reset.swift
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath
let data = NSKeyedUnarchiver.unarchiveObject(withFile: path) as! NSDictionary
let mutableData = data.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableData {
if value is NSDate {
@janroz
janroz / slim-app-tutorial.md
Created May 31, 2018 17:54
Creating your first Slim Framework Application

Creating your first Slim Framework Application

The Slim Framework is a great micro frameworks for Web application, RESTful API's and Websites. This Tutorial shows how to create a very basic but flexible project for every use case.

Table of contents

@janroz
janroz / decode.css
Created May 8, 2018 23:14 — forked from sergeh/decode.css
jQuery Decode effect
body { font-family: monospace; }
.code { color: red; }
@janroz
janroz / mail-test.php
Created July 22, 2016 22:34 — forked from Dreyer/mail-test.php
Quick & Dirty PHP Mail Test Script
<?php
/*
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!
*/
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = '[email protected]';
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'