Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / stdin.txt
Created October 27, 2013 05:32
stdin
0 0 0 1 1 1 2 0 0
3 6 9 2 5 8 1 0 3
-------------------------------------------------
. ┝━━━━━━━━━━━━━┥. . . . . .
. ┝━━━━━━━━━━━━━━━━┥ . . . . .
. ┝━━━━━━━━━━━━━━━━━┥. ┝━━┥ . . .
. .┝━━━━━━━━━━┥ . . . . .
. ┝━━━━━━━━━━━━━━┥ . . . . .
. ┝━━━━━━━━━━━━┥ . . . ┝━━━━┥ . .
. . ┝━━━━━━━━━━━━━┥ . . . .
@passcod
passcod / MOVE.md
Last active August 29, 2015 13:56
firefox-always-nightly in the AUR

Music for Making

Félix Saparelli

  • Anthony Gonzales
    • Tech 49
  • Antonín Dvořák
    • Allegro con fuoco ("From The New World")
  • Antonio Vivaldi
    • The Four Seasons: Concerto N°2 in G Minor, RV315, "Summer": I. Allegro non molto
  • Apocalyptica
anonymous
anonymous / rss_proxy.d.d
Created August 10, 2014 09:57
rss_proxy.d
module rss_proxy;
import tools.base, std.file, tools.downloader;
string download(string url) {
char* tmpfilp = tmpnam(null);
if (!tmpfilp) throw new Exception("could not get temp file name");
auto tmpfil = toString(tmpfilp);
scope(exit) unlink(toStringz(tmpfil));
if (system(toStringz("/usr/bin/wget --timeout=60 -q -O \""~tmpfil~"\" \""~url~"\"")) == -1) {
anonymous
anonymous / rss_proxy.cgi.sh
Created August 10, 2014 10:01
rss_proxy.cgi
#!/bin/bash
PATH="/mnt/data/www/temp_rss/"
DATE=/bin/date
STAT=/usr/bin/stat
SED=/bin/sed
TOUCH=/usr/bin/touch
EXECPATH="/mnt/data/www/rss_proxy"
TERM=""
if [ -z "$QUERY_STRING" ] || [[ $QUERY_STRING == url* ]]
then
@passcod
passcod / yaml.tmpl
Created August 24, 2014 12:20
Template file to dump docker-gen's output in YAML format
---
{{ range $_, $cont := $ }}
{{ $addrLen := len $cont.Addresses }}
{{ $envLen := len $cont.Env }}
{{ $regLen := len $cont.Image.Registry }}
- id: "{{ $cont.ID }}"
{{ if eq $addrLen 0 }}
addresses: ~
{{ else }}
addresses:
@passcod
passcod / .gitignore
Last active March 11, 2025 19:39
License stats for crates on crates.io
/metacrate-*
@passcod
passcod / dc.rb
Last active August 29, 2015 14:18
Implementation of GNU's dc (reverse-polish arbitrary-precision stack-based command-line calculator) in Ruby
#!/usr/bin/env ruby
require 'bigdecimal'
class Dc
def initialize
@stack = []
@registers = []
# TODO: support these
@davidhund
davidhund / pragmatic-touch-icons.md
Last active February 10, 2025 17:40
Pragmatic Touch Icons

NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.

I'd like to hear how you approach this: @valuedstandards or comment on this gist.

The issue

You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':

![Touch Icon Links](https://o.twimg.com/2/proxy.jpg?t=HBj6AWh0dHBzOi8vcGhvdG9zLTYuZHJvcGJveC5jb20vdC8yL0FBRGFGY1VRN1dfSExnT3cwR1VhUmtaUWRFcWhxSDVGRjNMdXFfbHRJWG1GNFEvMTIvMjI3OTE2L3BuZy8xMDI0eDc2OC8yL18vMC80L1NjcmVlbnNob3QlMjAyMDE1LTA0LTE0JTIwMTYuNTYuMjYucG5nL0NNejBEU0FCSUFJZ0F5Z0JLQUkvNGR1eDZnMzZmYnlzYWI3

@Dhertz
Dhertz / Ubuntu_Aerial.md
Last active March 28, 2023 02:06
Quick overview of how to get Apple's new TV screensavers working on most linux systems.

Using Apple’s Aerial Screensavers on Ubuntu After coming across the [Aerial] (https://github.com/JohnCoates/Aerial) screensavers for Mac, and installing them, I decided that I had had enough of the graphics-demos of my Ubuntu Precise system. I hope to provide a simple guide on how to add them to your setup as well.

First, you need to install xscreensaver (for example with aptitude, but your distro should have it):

sudo aptitude install xscreensaver