Skip to content

Instantly share code, notes, and snippets.

View bright-spark's full-sized avatar
♥️
Tinkering with stuff!

Myburgh bright-spark

♥️
Tinkering with stuff!
View GitHub Profile
@eculver
eculver / replace_apt_sources.sh
Created December 26, 2013 00:02
Replace default Ubuntu apt repository URLs w/ DigitalOcean's
sudo sed -i "s/archive\.ubuntu/mirrors.digitalocean/g" /etc/apt/sources.list
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@mlynch
mlynch / codiqa.html
Created August 6, 2013 00:17
Codiqa Responsive Features
<div class="container">
<h2>Also included in every plan</h2>
<div class="row">
<div class="col-6 col-lg-3">
<h4>Team Collaboration</h4>
</div>
<div class="col-6 col-lg-3">
<h4>Live Preview</h4>
</div>
<div class="col-6 col-lg-3">
@coolaj86
coolaj86 / .gitignore
Last active December 12, 2017 16:05
Forward SMS from one number to another using Twilio
config.js
@adrienne
adrienne / php.ini
Created June 21, 2013 08:12
PHP .ini file
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name=$inputline
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url=$inputline
@bernsno
bernsno / cmal-fresh-mac-setup.md
Created November 10, 2012 18:03 — forked from cmalven/cmal-fresh-mac-setup.md
Fresh Mac Setup

New Computer Setup

Last tested using Mac OS X 10.8 Mountain Lion

Before Wiping Original Install

  • Backup .ssh folder to avoid having to regenerate codes for services such as Heroku and Github.
@cjanis
cjanis / gist:3908053
Created October 17, 2012 20:44 — forked from kylebarrow/example.html
Prevent internal links in iOS standalone web apps from opening in Mobile Safari
if (window.navigator.standalone) {
var local = document.domain;
$('a').click(function() {
var a = $(this).attr('href');
if ( a.match('http://' + local) || a.match('http://www.' + local) ){
event.preventDefault();
document.location.href = a;
}
});
}
@mlynch
mlynch / manifest.json
Created July 20, 2012 20:02
Codiqa Project Manifest
{
"name": "Codiqa Prototypes",
"description": "Rapid Mobile Prototyping - Saves directly to Google Drive!",
"version": "1.3",
"container": "GOOGLE_DRIVE",
"api_console_project_id" : "CONSOLE_PROJECT_ID",
"intents": {
"http://drive.google.com/intents/opendrivedoc": [ {
"disposition": "window",
"href": "http://codiqadrive.appspot.com",
@devfred
devfred / browser-detect.js
Last active August 7, 2020 23:28
javascript: Browser Detection
(function( undefined ){
/* Apple Device Webkit Browsers */
var isIdevice = /(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent);
if (isIdevice){
document.getElementsByTagName('body')[0].className += ' iphone ipod ipad';
}
var isIphone = /(iPhone).*AppleWebKit/i.test(navigator.userAgent);
if (isIphone){
document.getElementsByTagName('body')[0].className += ' iphone';