Skip to content

Instantly share code, notes, and snippets.

View antonva's full-sized avatar

Anton Vilhelm Ásgeirsson antonva

  • Reykjavik
View GitHub Profile
#include <stdio.h>
void init_input(int *input, size_t psize) {
for (size_t i = 0; i < psize; i++) {
input[i] = 99;
}
}
int check_password(int *password, size_t psize, int *input) {
for (size_t i = 0; i < psize; i++) {
#include <stdio.h>
void init_input(int input[], size_t psize) {
for (size_t i = 0; i < psize; i++) {
input[i] = 99;
}
}
int check_password(int *password, size_t psize, int *input) {
for (size_t i = 0; i < psize; i++) {
#!/usr/bin/env bash
FPS=30 # Stream FPS.
GOP=48 # GOP Should be double of FPS.
THREADS=4 # How many threads.
DEADLINE=realtime # Speed preset, realtime is fastest.
FRAMELAG=16 # How many frames to seek ahead (max 25)
QMAX=52 #
QMIN=10 # Less = more quality.
VBITRATE=1M # Target Bitrate.

Keybase proof

I hereby claim:

  • I am antonva on github.
  • I am antonva (https://keybase.io/antonva) on keybase.
  • I have a public key whose fingerprint is 7B71 962C EA78 749C 438B 5A3B 473D 509B EDF2 38AE

To claim this, I am signing this object:

// ==UserScript==
// @name cleanmbl.
// @namespace mbl.is
// @version 1
// @grant none
// @include http://*.mbl.is/*cd
// @include http://www.mbl.is/*
// ==/UserScript==
// Clean up the menu.
HttpPort 8090
HttpBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 100000
CustomLog -
<Feed feed1.ffm>
File /tmp/feed1.ffm
#FileMaxSize 100M
#!/usr/bin/env bash
FPS=30 # Stream FPS.
GOP=48 # GOP Should be double of FPS.
THREADS=4 # How many threads.
DEADLINE=realtime # Speed preset, realtime is fastest.
FRAMELAG=16 # How many frames to seek ahead (max 25)
QMAX=52 #
QMIN=10 # Less = more quality.
VBITRATE=1M # Target Bitrate.
-module(geometry).
-export([area/1]).
area({rectangle, Width, Height}) -> Width * Height;
area({circle, R}) -> 3.14159 * R * R;
area({square, Side}) -> Side * Side.
id | name | category | stock_updated
-------+----------------------------------------------------+--------------------+---------------------
1028 | Black Ball Porter | Öl | 2015-02-22 19:51:00
1046 | Mikkeller Wheat Is The New Hops Grass Roots IPA | Aðrar bjórtegundir | 2015-02-22 19:51:00
1050 | Houblon Chouffe | Öl | 2015-02-22 19:51:00
1069 | Þurs Sterkur | Lagerbjór | 2015-02-22 19:51:00
1202 | Mikkeller Beer Geek Breakfast | Öl | 2015-02-22 19:51:00
1205 | Mikkeller Aarh Hvad Belgian Pale Ale | Öl | 2015-02-22 19:51:00
1215 | Bríó | Lagerbjór | 2015-02-22 19:51:00
1219 | Gæðingur hveitibjór | Aðrar bjórtegundir | 2015-02-22 1
mjodr=> select * from item;
id | name | volume | price | abv | vintage | importer | country | category | description | stock_updated
----+-----------------------------------+--------+-------+------+---------+------------------------+-----------+-------------------+--------------+---------------
2 | Inneignarnóta | 0 ml | | 0 | | | | Engar upplýsingar | Engin lýsing |
1 | Sérpöntun-rauðvín | 750 ml | 1850 | 13 | | Rolf Johansen & Co ehf | | Rauðvín | Engin lýsing |
6 | Albert Bichot Saint-Emilion | 750 ml | 2797 | 12.5 | 2006 | Bakkus ehf. | Frakkland | Rauðvín | Engin lýsing |
22 | Cordier Margaux Collection Privée | 750 ml | 2190 | 12 | 1997 | Karl K. Karlsson ehf. | Frakkland | Rauðvín | Engin lýsing |