Skip to content

Instantly share code, notes, and snippets.

View buzzedword's full-sized avatar
:octocat:
Live and in stereo

Danny Garcia buzzedword

:octocat:
Live and in stereo
View GitHub Profile
@buzzedword
buzzedword / facebook_fucked_up.js
Created August 19, 2011 00:43
Scrape all friends from autocomplete on FB
var payload = {} || payload;
window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"><\/script>');
payload.init = function () {
$.ajax({
url: "//www.facebook.com/ajax/typeahead/search/first_degree.php",
data: "__a=1&filter[0]=user&lazy=0&viewer=" + Env.user + "&token=v7&stale_ok=0",
dataType: 'JSON',
error: function (data) {
var text, json, endgame;
@buzzedword
buzzedword / Dockerfile
Last active June 5, 2018 06:51
Multistage builds in Docker 17.05
FROM php as vendoring-image
RUN apt-get update && \
apt-get install -y --no-install-recommends git zip
RUN curl --silent --show-error https://getcomposer.org/installer | php && \
mv composer.phar /bin/composer
COPY ./composer.json ./composer.lock /app
WORKDIR /app
RUN composer install
# PS - This is the only image we want to push. Crazy, right?
@buzzedword
buzzedword / .zshrc
Created May 15, 2012 20:04
Oh-my-zsh configuration
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
@buzzedword
buzzedword / zendesk.cs
Created March 23, 2011 00:04
Zendesk REST Wrapper
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
namespace MyApplication
{
/// <summary>
<?php
// Stuff to figure out:
// - where should this file live and in what folder structure of /vendor
// - what namespace should this class have
// - how do you autoload this class?
// - how do you use this class within a controller
namespace Quickbase\Quickbase\{foldername};
@buzzedword
buzzedword / 0_reuse_code.js
Created December 5, 2013 20:34
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
@buzzedword
buzzedword / Critical Path to New Who
Last active December 30, 2015 06:29
Essential Episode Guide to new Doctor Who - Because you're too lazy to really care.
## Eccleston Era - Rose Tyler
S1E2 - The End of the World
S1E3 - The Unquiet Dead
*Two Parter. Little dry, worth sticking it out to get a better read on the doctor as a character*
- - -
S1E4 - Aliens of London | Part 1
S1E5 - World War Three | Part 2
- - -
**MUST SEE**
@buzzedword
buzzedword / composer.json
Created November 7, 2013 20:53
Wordpress 3.7.1 composer install
{
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "3.7.1",
"dist": {
"type": "zip",
<div class="tabs collapsable clickable sorted">
<ul class="navigation">
<li>Home</li>
<li>Second</li>
<li>Third
<ul class="sub collapsed">
<li>Item 1</li>
<li>Item 2</li>
</ul>
</li>
assetic:
write_to: %kernel.root_dir%/../web/
filters:
compass:
apply_to: "/\.s[ac]ss$/"