Skip to content

Instantly share code, notes, and snippets.

View KarneAsada's full-sized avatar

Dan Karney KarneAsada

View GitHub Profile
@KarneAsada
KarneAsada / pre-commit
Last active August 29, 2015 14:06 — forked from Simbul/pre-commit
#!/usr/bin/env ruby
# This pre-commit hook will prevent any commit to forbidden branches
# (by default, "staging" and "production").
# Put this file in your local repo, in the .git/hooks folder
# and make sure it is executable.
# The name of the file *must* be "pre-commit" for Git to pick it up.
FORBIDDEN_BRANCHES = ["master"]
@KarneAsada
KarneAsada / chmod
Last active August 29, 2015 14:07
chmod cheat sheet
Setting a directory's permissions so that all created children have the same group
chmod 2775 <dir>
@KarneAsada
KarneAsada / 0_reuse_code.js
Created December 3, 2015 17:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@KarneAsada
KarneAsada / html5tbjq-skel.html
Created March 26, 2013 15:12
skeleton html from html5 boilerplate, with twitter bootstrap and jquery
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>TITLE</title>
<meta name="description" content="">
@KarneAsada
KarneAsada / gooooo.php
Last active March 12, 2016 01:20
How many variations of g(o+)gle.com does Google own?
<?php
$o = '';
$owned_by_google = [];
for($i=1; $i<250; $i++) {
$o .= 'o';
$domain = "g${o}gle.com";
//echo "$i $domain \n";
if(strstr(`whois $domain`, 'Google Inc')) {
$owned_by_google[] = $domain;

Keybase proof

I hereby claim:

  • I am KarneAsada on github.
  • I am karneasada (https://keybase.io/karneasada) on keybase.
  • I have a public key whose fingerprint is 6CD2 3D69 443E 7893 D5F1 0A02 DD1A BB7E 3741 FA08

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto+Slab">
</head>
<body>
<h1>ScriptEd >_</h1>
</body>
<!DOCTYPE html>
<html>
<head>
<title>ScriptEd CSS Garden</title>
</head>
<body>
<h1 id="banner">ScriptEd CSS Site!</h1>
<h1 id="tagline">We love ScriptEd</h1>
<img src="http://i65.tinypic.com/qxvr46.jpg">
@KarneAsada
KarneAsada / index.html
Last active December 12, 2016 00:27 — forked from anonymous/index.html
Exported from Popcode.
<!DOCTYPE html>
<html>
<head>
<title>Homer Simpson</title>
</head>
<body>
<div id="header">
<img id="profile-picture" src="https://pbs.twimg.com/profile_images/609439993094770690/MqfzEbtj.jpg">
<h1 id="title">Homer's Twitter</h1>
</div>