Skip to content

Instantly share code, notes, and snippets.

View alberts-s's full-sized avatar
🦎

Alberts Saulītis alberts-s

🦎
View GitHub Profile
@stevenringo
stevenringo / reinvent-2017-youtube.md
Created December 3, 2017 23:01
Links to YouTube recordings of AWS re:Invent 2017 sessions

| Title | Description

@thomasst
thomasst / migrate-redis.py
Created May 14, 2015 18:26
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@toke
toke / mebus-433sensor.md
Last active August 29, 2015 14:06
Being sick at home on a saturday afternoon and some time to spare? Lets make sense out of bleeps....

Analyzing the Mebus Wireless Sensor

I have a Mebus Weather station from a discounter in my kitchen and an wireless sensor outside the kitchen window. It operates at 433.92MHz and it's blips and bits are not yet analyzed (at least by me). So lets try to read it.

I will use my crappy rtl2832 DVB Dongle (Rafael Micro R820T) for that. I'd buyed it some time ago for 1€. I'ts a little bit whiny about everything. Touch it – määää. Use it without an Powered HUB wäääää. But even that crappy thing is useful ;-)

I have some clue what to expect, so I don't start at zero. I assume the data is modulated as OOK. (On Off Keying) and I have an progam rtl_443 which can help me decode it.

@ValdikSS
ValdikSS / animetv.md
Last active October 25, 2020 18:09
AnimeTV

Коллективные просмотры аниме и мультиков.

Информация

Мы — компания людей, людящих смотреть аниме в компании и обсуждать его после просмотра. Чтобы присоединиться, заходите в любую из наших конференций:
XMPP / Telegram
Общайтесь и делитесь впечатлениями от просмотренного.

Коллективные просмотры анонсируются в Mastodon, в RSS-потоке, а также в конференциях.

Подключение к просмотру

@magnetikonline
magnetikonline / README.md
Last active July 7, 2024 05:27
Setting Nginx FastCGI response buffer sizes.
@justecorruptio
justecorruptio / 2048.c
Created April 4, 2014 03:49
Tiny 2048 in C!
M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2
@blackhalt
blackhalt / klase_Mega_Stylish.user.js
Created January 23, 2014 12:42
E-klase Mega Stylish
// ==UserScript==
// @name E-klase Mega Stylish
// @namespace BlackHalt
// @description E-klase Mega Stylish
// @include http://www.e-klase.lv/*
// @include http://e-klase.lv/*
// @version 1
// @grant none
// ==/UserScript==