Skip to content

Instantly share code, notes, and snippets.

View vfxguru001's full-sized avatar

Tim Aldridge vfxguru001

  • San Francisco, CA
View GitHub Profile
@magnusdahlstrand
magnusdahlstrand / gist:1923948
Created February 27, 2012 13:58
Remove all ._* and .AppleDouble-files
Remove ._*- and .AppleDouble-files from folders.
Adapted from Torkel's comment on http://hints.macworld.com/article.php?story=20021118060850652
Cred to hiber for suggesting adding -print0/-0 to solve whitespace issue.
See all ._*-files:
find . -name '._*' | more
Remove all ._*-files:
find . -name '._*' -print0 | xargs -0 rm
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@irazasyed
irazasyed / bash_profile.md
Last active March 29, 2025 19:27
Terminal: Mac OS X Terminal Aliases & How-To - .bash_profile / .profile

Mac OS X Terminal Aliases & How-To

Collection of some of my fav terminal aliases that I use often & collected from the web. This file will be updated with more aliases as I find more. Feel free to comment and share your fav aliases you use :)

Follow these simple steps to add them to your shell env.

  1. Within the Terminal, run: vim ~/.bash_profile
  2. Type i and then paste the following at the top of the file:
@ijy
ijy / sublime-text-3-setup.md
Last active March 7, 2025 20:44
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@srikat
srikat / zebra_tooltips_init.js
Last active February 13, 2016 00:44
Adding tooltips to Simple Social Icons using Zebra_Tooltips jQuery script. http://sridharkatakam.com/add-tooltips-simple-social-icons/
// Enqueue Zebra ToolTips
add_action( 'wp_enqueue_scripts', 'enqueue_zebra_script' );
function enqueue_zebra_script() {
wp_enqueue_script( 'zebra-tooltips', get_stylesheet_directory_uri() . '/js/zebra_tooltips.js', array( 'jquery' ), '', true );
wp_enqueue_script( 'zebra-tooltips-init', get_stylesheet_directory_uri() . '/js/zebra_tooltips_init.js', array( 'zebra-tooltips' ), '1.0.0', true );
wp_enqueue_style( 'zebra-styles', get_bloginfo('stylesheet_directory').'/css/zebra_tooltips.css', array(), '1.0.0' );
}
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active November 1, 2024 12:00
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
@manikmagar
manikmagar / custom-content.php
Created February 14, 2016 16:55
Ultimatum Theme - Wordpress Custom Loop with Custom Field Filter
<?php
/*
* Tricky Loops v5 Thanks to Richard
* CF1.0 - Added feature to filter by custom fields. Base Ultimatum Version used is 2.8.7 PRO - Manik Magar
*/
class UltimatumCustomContentWithCFFilter extends WP_Widget {
function UltimatumCustomContentWithCFFilter() {
@LouisGameDev
LouisGameDev / DownloadMixamoByLouisHong.js
Last active February 3, 2025 15:38
Downloads all the free Mixamo Animations
// Anonymous "self-invoking" function
alert("Thank you for using this script created by Louis Hong (/u/loolo78)\n\nThe download will now begin.");
(function() {
// Load the script
var script = document.createElement("SCRIPT");
script.src = 'https://code.jquery.com/jquery-latest.min.js';
script.type = 'text/javascript';
document.getElementsByTagName("head")[0].appendChild(script);
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@ryanttb
ryanttb / install_node_lsw.sh
Last active December 4, 2019 14:28
Install node on Linux Subsystem for Windows
#!/bin/sh
# this script requires root
# be sure to run the following before running this:
# $ sudo su
# since there's an issue piping the curl response to bash
# just download the install script
curl -sL https://deb.nodesource.com/setup_6.x > install_node.sh