Skip to content

Instantly share code, notes, and snippets.

@anttti
anttti / gist:0f844050c6582f3ea8f3
Created June 18, 2014 18:22
Popularity of letters in Finnish
i: 117512 percentage: 11.630751932982038
a: 115505 percentage: 11.432109078384252
t: 86995 percentage: 8.61033140793938
s: 74917 percentage: 7.414911179821766
e: 68481 percentage: 6.777907984908289
u: 66959 percentage: 6.627268012462934
k: 66276 percentage: 6.559668077390543
n: 65867 percentage: 6.519187296358907
l: 58791 percentage: 5.818840092007173
o: 54786 percentage: 5.4224451579443285
@anttti
anttti / gist:d6d41f62aee4dcabaa44
Created October 8, 2014 08:22
caniuse-db diff
This file has been truncated, but you can view the full file.
diff -u -r package/fulldata-json/data-1.0.json caniuse-db/fulldata-json/data-1.0.json
--- package/fulldata-json/data-1.0.json 2014-10-08 06:08:26.000000000 +0300
+++ caniuse-db/fulldata-json/data-1.0.json 2014-10-08 11:16:25.000000000 +0300
@@ -1 +1 @@
-{"eras":{"e-34":"34 versions back","e-33":"33 versions back","e-32":"32 versions back","e-31":"31 versions back","e-30":"30 versions back","e-29":"29 versions back","e-28":"28 versions back","e-27":"27 versions back","e-26":"26 versions back","e-25":"25 versions back","e-24":"24 versions back","e-23":"23 versions back","e-22":"22 versions back","e-21":"21 versions back","e-20":"20 versions back","e-19":"19 versions back","e-18":"18 versions back","e-17":"17 versions back","e-16":"16 versions back","e-15":"15 versions back","e-14":"14 versions back","e-13":"13 versions back","e-12":"12 versions back","e-11":"11 versions back","e-10":"10 versions back","e-9":"9 versions back","e-8":"8 versions back","e-7":"7 versions back","e-6":"6 versions back","e-5":"5 versio
@anttti
anttti / gist:a387fa2c87b34de5d9f8
Last active August 29, 2015 14:11
Basic Gulp config with livereload, sass, autoprefix, server
var gulp = require('gulp');
var sass = require('gulp-sass');
var webserver = require('gulp-webserver');
var livereload = require('gulp-livereload');
var autoprefixer = require('gulp-autoprefixer');
var del = require('del');
gulp.task('clean', function (cb) {
del(['dist/**'], cb);
});
@anttti
anttti / gist:551f75d974c2521a09c2
Created January 28, 2015 12:26
Sublime Text 3 settings
{
"atomic_save": false,
"bold_folder_labels": true,
"color_scheme": "Packages/User/Bittersweet (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.map",
"*.pyc",
#!/bin/bash
# Encode a WAV to a finalized podcast MP3 with metadata, in the current directory
# Requires lame
# With Homebrew on Mac OS X: brew install lame
SHOW_AUTHOR="ATP"
EPISODE_NUMBER=104
EPISODE_TITLE="Minutiæ"
@anttti
anttti / gist:8ddeeefbb763300bc51b
Created June 14, 2015 09:52
Convert a directory of wav files to caf
#!/bin/bash
# This line required to prevent trying to convert a file named "*"
# if the directory passed in as the parameter is empty
shopt -s nullglob
for f in $*
do
echo "Converting $f"
cafFileName=$(echo $f | sed -e 's/wav/caf/g')
afconvert -d LEI16 -f 'caff' "$f" "$cafFileName"
@anttti
anttti / ensure_host_known.yml
Created September 17, 2015 07:41
Ansible: Ensure a host is known
- name: ensure github.com is a known host
lineinfile:
dest: /home/vagrant/.ssh/known_hosts
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
@anttti
anttti / gist:2010872
Created March 10, 2012 08:42 — forked from paulirish/gist:366184
HTML: Geolocation with fallback
// geo-location shim
// currentely only serves lat/long
// depends on jQuery
;(function(geolocation){
if (geolocation) return;
var cache;
@anttti
anttti / gist:2017726
Created March 11, 2012 19:16
CSS: Image replacement
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@anttti
anttti / gist:3618112
Created September 4, 2012 07:46 — forked from jarkko/gist:3617540
Mobiilikakkonen #2

Aiheita

  • AntiSec hackers leak 1,000,001 Apple device IDs allegedly obtained from FBI breach
  • “During the second week of March 2012, a Dell Vostro notebook, used by Supervisor Special Agent Christopher K. Stangl from FBI Regional Cyber Action Team and New York FBI Office Evidence Response Team was breached using the AtomicReferenceArray vulnerability on Java, during the shell session some files were downloaded from his Desktop folder one of them with the name of ”NCFTA_iOS_devices_intel.csv” turned to be a list of 12,367,232 Apple iOS devices including Unique Device Identifiers (UDID), user names, name of device, type of device, Apple Push Notification Service tokens, zipcodes, cellphone numbers, addresses, etc. the personal details fields referring to people appears many times empty leaving the whole list incompleted on many parts. no other file on the same folder makes mention about