Skip to content

Instantly share code, notes, and snippets.

@DannyBen
DannyBen / ff
Created April 17, 2015 12:26
Find files and content in files
if [ $# -lt 1 ]; then
echo "
ff - Find files and content in files
Find content in a file:
usage : ff [-t] EXTENSION SEARCH
example : ff php logdir
-t : omit text (show filenames only)
Find a file:
@DannyBen
DannyBen / gitclean
Created March 13, 2015 12:31
Find and delete big files from git history
#!/usr/bin/env ruby
def usage
puts """
gitclean - List and remove big files from git history
Usage: gitclean list [<rev> <threshold>]
gitclean del <file>
Example: gitclean list master 10
gitclean del that-huge-logfile.log
"""
@DannyBen
DannyBen / UnityWebPlayer
Last active December 24, 2015 15:49
Dropbox compatible HTML for showing Unity Player
<doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity Web Player</title>
</head>
<body>
<embed type="application/vnd.unity" width="960" height="640" tabindex="0" firstframecallback="unityObject.firstFrameCallback();" src="WebBuild.unity3d" style="display: block; width: 100%; height: 100%;">
<div style="text-align:center">