Skip to content

Instantly share code, notes, and snippets.

View begoon's full-sized avatar
💭
Eating

Alexander Demin begoon

💭
Eating
View GitHub Profile
@begoon
begoon / sokoban.bin
Last active March 8, 2021 18:07
Sokoban for Radio-86RK
#!rk86
0000 31 00 40 af 32 54 00 0e 1f cd 09 f8 21 a0 02 cd
0010 18 f8 21 79 02 cd 18 f8 3a 54 00 3c cd 4f 02 cd
0020 03 f8 fe 08 ca 39 00 fe 18 ca 45 00 fe 20 ca 55
0030 00 fe 2e ca 6c f8 c3 12 00 21 54 00 35 f2 12 00
0040 36 3b c3 12 00 21 54 00 34 3e 3b be f2 12 00 36
0050 00 c3 12 00 00 3a 54 00 cd f3 00 cd 97 01 b7 ca
0060 8d 00 cd 03 f8 11 ff ff fe 08 ca a6 00 11 01 00
0070 fe 18 ca a6 00 11 b2 ff fe 19 ca a6 00 11 4e 00
0080 fe 1a ca a6 00 fe 20 ca 07 00 c3 5b 00 2a df 01
@begoon
begoon / brew-list.sh
Created January 6, 2021 19:35 — forked from eguven/brew-list.sh
List all packages installed using Homebrew and their sizes
brew list --formula | xargs -n1 -P8 -I {} \
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \
sort -h -r -k2 - | column -t
@begoon
begoon / 116 command line shortcuts for Windows.txt
Created March 5, 2013 09:38
116 command line shortcuts for Windows
1. Accessibility Controls - access.cpl
2. Accessibility Wizard - accwiz
3. Add Hardware Wizard - hdwwiz.cpl
4. Add/Remove Programs - appwiz.cpl
5. Administrative Tools - control admintools
6. Automatic Updates - wuaucpl.cpl
7. Bluetooth Transfer Wizard - fsquirt
8. Calculator - calc
9. Certificate Manager - certmgr.msc
10. Character Map - charmap
@begoon
begoon / gist:3559352
Created August 31, 2012 21:30
"highlight" package fails to compile
~ $ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install highlight
==> Downloading http://www.andre-simon.de/zip/highlight-3.9.tar.bz2
Already downloaded: /Users/alexander/Library/Caches/Homebrew/highlight-3.9.tar.bz2
/usr/bin/tar xf /Users/alexander/Library/Caches/Homebrew/highlight-3.9.tar.bz2
==> make PREFIX=/usr/local/Cellar/highlight/3.9 conf_dir=/usr/local/etc/highlight/
make PREFIX=/usr/local/Cellar/highlight/3.9 conf_dir=/usr/local/etc/highlight/
/usr/bin/make -C ./src -f ./makefile HL_DATA_DIR=/usr/local/Cellar/highlight/3.9/share/highlight/ HL_CONFIG_DIR=/usr/local/etc/highlight/
c++ -c -I ./include/ -I/usr/include/lua5.1 ./core/stylecolour.cpp
c++ -c -I ./include/ -I/usr/include/lua5.1 ./core/stringtools.cpp
c++ -c -I ./include/ -I/usr/include/lua5.1 ./core/xhtmlgenerator.cpp
@begoon
begoon / gist:3252006
Created August 3, 2012 22:08
Русско-английский словарь деловой переписки
  1. Господи, это опять вы.... - Thank you very much for your email.
  2. Если до завтра не предоставите документы, пеняйте на себя. Тут вам не детский сад.- We will do our best to proceed with your request however for the best result the documents should reach us not later than tomorrow.
  3. Вы читать умеете? - You can find this information below.
  4. Сколько можно напоминать!- Kind reminder
  5. Неужели так сложно подписать документ там, где нужно - Please sign in the place marked with yellow sticker
  6. Что у тебя в школе было по математике? - Let's reconfirm the figures.
  7. Мы лучше сделаем это сами.- Thank you for your kind assistance.
  8. Я уже сто раз вам это присылал. - Kindly find attached.
  9. Ага, сейчас все брошу и побегу разбираться. - I’ll look into it and revert soonest.
  10. Да поймите же вы наконец - Please kindly review the matter again.
@begoon
begoon / translate-ru.css
Created May 6, 2012 18:48
Remove banners and other clunky elements from translate.ru
#contentBlock header {
display: none;
}
#ctl00_SiteContent_templatesBlock {
display: none;
}
#passportMenu {
display: none;
@begoon
begoon / tcp_proxy_profile.erl
Created December 13, 2011 12:35 — forked from arcusfelis/tcp_proxy_profile.erl
tcp_proxy profile
Eshell V5.8.4 (abort with ^G)
1> c(tcp_proxy, [debug_info, export_all]).
{ok,tcp_proxy}
2> fprof:apply(tcp_proxy, dump_binary, [1,<<"Test 3">>]).
[["000",49],
58,32,
["000",48],
58,32,
["54 65 73 74 20 33 ",
[32,[32," ",32,32,32],32," ",32,32,32],
@begoon
begoon / double.c
Created February 10, 2011 14:00
Tricky rounding of doubles
#include <stdio.h>
int main() {
double f = 1.15;
int a = f * 100.0;
int b = f * 100.0 + 0.1E-9;
printf("a = %d, b = %d\n", a, b);
return 0;
}
@begoon
begoon / pears_in_bucket.c
Created March 11, 2010 12:00
Problem about removal pears from the bucket
#include <stdio.h>
#include <stdlib.h>
/**
* There 16 pears in the bucket 4x4. How to remove 6 pears to guarantee
* even numbers of pears in each row and column.
*/
int b[16];
int f() {