Skip to content

Instantly share code, notes, and snippets.

View albyr's full-sized avatar

Alby albyr

View GitHub Profile
@albyr
albyr / file-type-link-icons.css
Last active January 22, 2021 18:38
How to add file-type icons to links with CSS
@albyr
albyr / gist:02622e4cf02782c0b4aa
Created October 20, 2014 12:42
Keybase Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Keybase OpenPGP v1.0.5
Comment: https://keybase.io/crypto
xsFNBFQjDM8BEACvshYtFT1qLpCNb8w32ExfDwv4XRW+F6qusCqMEJK8OjgzUjko
4jhqAD3LGZK6YG2ir6QqMH/7Y/25VZH3K2xO6Rxag+LW2PEaI5ifj696rINRqS8V
he2FWbVQ2B2AG6RRVB5eWlG/FHYIPdNBd+DxJvXsWzG2xrCJdMJWYTlF2uBV4Fn4
ReS+v5RoNtuCQ3AbBFrjZ9nflTfcd+ZtrPrL+9hU7y4Bm80UaytSThki6Ro+pbDW
1pP0ErQx0Aab/zJYBSy8hk6wdEZJIlKKjSyZRO4jTZ1BuNSd0QqmcPsX8j9abbJE
0gK9T7Q3Ib5hpsNeI2t5xW3EE2XcopHdttZGut02hgu33rfYxyI07nOHgDdANqg1
### Keybase proof
I hereby claim:
* I am albyr on github.
* I am alby (https://keybase.io/alby) on keybase.
* I have a public key whose fingerprint is 1884 69B2 7A4F 4A86 5882 7F88 CE8B 49E1 B774 A657
To claim this, I am signing this object:
@albyr
albyr / ison-json.json
Last active December 29, 2015 17:49
Comet Ison in JSON
{
"commomName": "Comet Ison",
"otherName": {
"catalogueName": "C/2012 S1",
"eponymName": "Comet Nevski–Novichonok"
},
"cometType": "sungrazing",
"cometStatus": "disintegrated",
"discoveryDate": "2012-09-21",
"epoch": "JD 2456640.5",
@albyr
albyr / traceroute 216.81.59.173
Created February 10, 2013 10:10
The results of a traceroute to 216.81.59.173
Tracing route to FIN [216.81.59.173]:
1 76 ms 96 ms 99 ms 192.168.1.254
2 * * * Request timed out.
3 18 ms 18 ms 17 ms 195.66.225.189
4 22 ms 24 ms 24 ms 10gigabitethernet1-1.core1.lon1.he.net [195.66.224.21]
5 24 ms 24 ms 24 ms 10gigabitethernet2-4.core1.par2.he.net [72.52.92.42]
6 97 ms 97 ms 100 ms 10gigabitethernet7-1.core1.ash1.he.net [184.105.213.93]
7 109 ms 109 ms 112 ms 10gigabitethernet1-2.core1.atl1.he.net [184.105.213.110]
8 109 ms 108 ms 108 ms 216.66.0.26
@albyr
albyr / styles.css
Created December 18, 2012 13:09
Example CSS file for Little Printer publications.
body {
margin: 0px; /* This prevents WebKit from adding an eight-pixel margin to your publication. */
padding: 0px;
border: 0px;
font-size: 24px; /* Twenty-four pixels is about as small as you want to go for text to still be legible. */
font-family:'Times'; /* Select your fonts from BERG's list: http://remote.bergcloud.com/developers/style_guide/fonts. */
}
.page { /* Enclose your entire publication in this DIV (e.g. "<div class='page'>") to prevent your publication being too wide. */
width: 384px;
}
@albyr
albyr / index.php
Created December 18, 2012 11:49
Example PHP file for generating ETags for Little Printer publications.
<?php
// You need to pick one of the following lines, based on how often your publication will be updated
// The value of the 'date' function will then be hashed to produce the ETag
// date = date(z); // Generates ETag based on the day of the year, so publication updates daily
// date = date(W); // Generates ETag based on the week number, so publication updates on Monday of each week
// date = date(F); // Generates ETag based on the month, so your publication updates monthly
date = date(c); // Generates ETag based on the current date and time, so your publication updates every second (but will only be polled by BERG Cloud for each user once per day at the scheduled time)
// Generates MD5 hash of your given value
$md5 = md5($date);
// Sets the previously generated hash value as the page's ETag
@albyr
albyr / meta.json
Created December 18, 2012 11:30
Example meta.json file for Little Printer publications.
{
"owner_email" : "[email protected]",
"publication_api_version":"1.0",
"name": "Publication name",
"description": "A descriptions of your publication.",
"delivered_on": "A description of how often your publication is published, e.g. 'every Sunday' or 'weekly'.",
"send_timezone_info": false,
"send_delivery_count": false,
"external_configuration": false
}