Skip to content

Instantly share code, notes, and snippets.

View zsiciarz's full-sized avatar

Zbigniew Siciarz zsiciarz

View GitHub Profile
@zsiciarz
zsiciarz / config.yml
Created October 26, 2021 17:07
Nameko with sentry_sdk
AMQP_URI: ${AMQP_URI:pyamqp://guest:guest@localhost}
SENTRY:
DSN: https://your.sentry.dsn
#!/bin/bash
set -euox pipefail
IFS=$'\n\t'
INTERPOLATED_COUNT=25
PHOTOS_DIR=$1
TEMPORARY_FRAMES_DIR=tmp_frames
echo "Making timelapse from photos in $PHOTOS_DIR..."
defmodule Functools do
def reduce(func, [head|tail], acc) do
reduce(func, tail, func.(head, acc))
end
def reduce(_func, [], acc) do
acc
end
def map(func, [head|tail]) do
@zsiciarz
zsiciarz / build-vim.sh
Created April 18, 2015 08:55
build-vim.sh
./configure --enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--enable-multibyte \
--with-x \
import functools
import types
@functools.singledispatch
def fmap(value, fun):
return value
@fmap.register(list)
#!/usr/bin/env sh
set -eu
IFS=$'\n\t'
PREFIX="workon siciarz.net"
gnome-terminal \
--maximize \
--working-directory=Development/siciarz.net \
--tab \
--title="editor" \

Keybase proof

I hereby claim:

  • I am zsiciarz on github.
  • I am zsiciarz (https://keybase.io/zsiciarz) on keybase.
  • I have a public key whose fingerprint is 0AA1 FE0C 36A6 04DC 2251 A1DD 3B83 919C CC13 C058

To claim this, I am signing this object:

@zsiciarz
zsiciarz / boxstarter.txt
Last active August 29, 2015 14:06
Boxstarter script
Install-WindowsUpdate -AcceptEula
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
choco install 7zip -version 9.22.01.20130618
choco install 7zip.install -version 9.22.01.20130618
choco install cmake -version 2.8.12
choco install Firefox -version 32.0.1
choco install git -version 1.9.4
choco install git.install -version 1.9.4
choco install javaruntime -version 7.0.67.20140907
@zsiciarz
zsiciarz / Demo.c
Created July 11, 2014 13:46 — forked from mikeando/Demo.c
#include "HMyClass.h"
#include <stdio.h>
void my_eh( const char * error_message, void * unused)
{
printf("my_eh: %s\n", error_message);
}
int main()
{
@zsiciarz
zsiciarz / problem1.rs
Created April 27, 2014 18:57
Euler problem #1 in Rust
fn solution1 () -> int {
let mut sum = 0;
for i in range(1, 1000) {
if i % 3 == 0 || i % 5 == 0 {
sum += i;
}
}
sum
}