Skip to content

Instantly share code, notes, and snippets.

View drlinux's full-sized avatar
🤘
I may be slow to respond.

Ibrahim YILMAZ drlinux

🤘
I may be slow to respond.
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>head.js / Google Maps test case</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://github.com/headjs/headjs/raw/master/dist/head.load.min.js"></script>
<script>head.js('http://code.jquery.com/jquery-1.5.min.js',"http://maps.google.com/maps/api/js?sensor=false&callback=init_map");</script>
<script>

Google's authentication-less on-the-fly image resizing service

I found it while poking around the Google+ HTML. Jotting down some notes felt like a good idea, so here goes. If you know more about this API, let me know, please!

(Word of warning: I spent ~30 minutes on both my experimentation and this here write-up, so it might not be the most thought-provoking, brilliant thing you read today.)

@drlinux
drlinux / 0_reuse_code.js
Created December 7, 2013 22:10
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
import sys
import colorsys
from colorz import colorz
WALLPAPER = '/home/james/.wallpaper'
COLORS = '/home/james/.colors'
XRESOURCES = '/home/james/.Xresources'
cols = ''
xres = """
#!/bin/sh
# Set conveniance variables0
PS_PATH=/var/www/prestashop
PS_SETTINGS_FILE=$PS_PATH/config/settings.inc.php
PS_SETTINGS_TEMPLATE=$PS_PATH/config/settings.inc.php.template
# Build the base PrestaShop image from the Dockerfile
IMAGE_ID=$(cat Dockerfile | docker build - | tail -1)
# PrestaShop
#
# VERSION 0.1
# DOCKER-VERSION 0.2
from ubuntu:12.04
# make sure the package repository is up to date
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
/*
Copyright (C) 2011 Colin Faulkingham, http://3a2d29.com/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
#!/bin/sh
clear
echo "Installing the MUST! Updates"
apt-get -y update && apt-get -y install python-software-properties htop software-properties-common python g++ make build-essential cmake bison coreutils ubuntu-dev-tools libcurl4-openssl-dev autopoint re2c dnsutils libperl-dev libxml2-dev libxslt-dev vim vim-nox fontconfig
clear
echo "Installing for Ruby on Rails"
apt-get -y install curl ruby git-core libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 xml-core libxml2-dev libxslt1-dev autoconf libgdbm-dev automake libtool pkg-config libffi-dev
clear
echo "Installing PHP5"
@drlinux
drlinux / Sources.list
Last active August 29, 2015 14:06 — forked from Anachron/Sources.list
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://de.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
###### Ubuntu Update Repos
deb http://de.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
<?php
/**
* Removes file version queries from script/stylesheet calls.
* http://wordpress.stackexchange.com/a/96325/23011
*
* Enhanced to keep query of google font stylesheets:
* Removes “?ver=3.5.1” from http://domain.tld/wp-content/themes/theme/stlye.css?ver=3.5.1
* Leaves http://fonts.googleapis.com/css?family=MyFont untouched.
*/
add_filter( 'script_loader_src', 'gp130419_remove_script_version', 15, 1 );