Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet
@mpasternacki
mpasternacki / docker-compile.pl
Last active March 23, 2020 14:05
Perl script to build a Docker image from Dockerfile that creates the image in a single layer, without any intermediate images. Needs JSON CPAN module (available as `libjson-perl` Debian/Ubuntu package). Usage: run the script in the directory that contains a Dockerfile. More details in a blog post: http://3ofcoins.net/2013/09/22/flat-docker-images/
#!/usr/bin/env perl
use feature 'switch';
use strict;
use warnings;
use Data::Dumper;
use File::Basename;
use File::Copy;
use File::Path qw/make_path/;
@LeaVerou
LeaVerou / dabblet.css
Created June 11, 2013 16:18
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
padding-top: 50px;
}
div {
width: 100px; height: 100px;
@thinktainer
thinktainer / git_log.sh
Created May 26, 2013 10:20
nice graph for git log
git log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
@bencevans
bencevans / build.sh
Last active December 17, 2015 07:19
Ubuntu 13.04 Tomahawk Build
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:tomahawk
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y libechonest-dev libfftw3-dev libsamplerate0-dev libgsasl7-dev subversion build-essential cmake libtag1c2a libtag1-dev libqt5-dev libqt5-sql-sqlite \
libphonon-dev libboost-dev libboost-thread-dev zlib1g-dev libgnutls-dev libz-dev \
libqjson-dev libattica-dev libqca2-dev libx11-dev pkg-config libqca2-plugin-ossl git-core libspeex-dev # phonon-backend-vlc
cd ~
@xhochy
xhochy / Proposal.md
Last active December 16, 2015 02:49
Control API and Tomahawk Apps

Tomahawk Apps

  • Integrate the same concept as Spotify Apps, but a bit more flexible (not only Apps, but more of a plugin-system)
  • HTML5+JavaScript
  • QWebkit View inside Tomahawk
  • Can have an entry in the TreeView on the left side in "Apps -> " and declare subentries
  • Add addtional functionality such as: ** Custom sharing ** Charts
[Twilio] Re: Can't access my account
View your ticket: https://www.twilio.com/user/account/support/ticket/1286=
75
----------------------------------------------
Dan Markiewicz, Apr 09 07:10 am (PDT)
Hey yo Fresh,
@LeaVerou
LeaVerou / dabblet.css
Created February 26, 2013 08:57
CSSConf gradient
/* CSSConf gradient */
height: 100%;
background-color: #96cd23;
background-image: radial-gradient(hsla(330, 50%, 60%,0) 64%, #c69 66%, #c69 75%, hsla(330, 50%, 60%,0) 77%, hsla(48, 100%, 50%,0) 90%, #fc0 92%),
radial-gradient(hsla(330, 50%, 60%,0) 64%, #c69 66%, #c69 75%, hsla(330, 50%, 60%,0) 77%, hsla(48, 100%, 50%,0) 90%, #fc0 92%);
background-size: 100px 100px;
background-position: 0 0, 50px 50px;
@bencevans
bencevans / README.md
Created February 24, 2013 16:34
Unofficial We Are Hunted API (Used by their Spotify app)

Unofficial We Hunted API

I believe there used to be an official API however all the docs seems to of vanished so...

This API is used by the We Are Hunted Spotify App thus pretty stable. Reverse Engineered by @bencevans. Usage isn't to bring any harm to We Are Hunted, just for educational purposes obviously!

Formats

JSON

@bencevans
bencevans / index.html
Created February 12, 2013 19:05
Leaflet.js + Open Sreet Maps Bootstrap
<html>
<head>
<title></title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
<![endif]-->
<style>
#map { height: 180px; }
</style>