Skip to content

Instantly share code, notes, and snippets.

@nabijaczleweli
nabijaczleweli / bench.rs
Created October 8, 2017 16:35
Lookup-table vs format!()-based [u8]->String
#![feature(test)]
extern crate test;
use std::iter::FromIterator;
use test::Bencher;
pub fn hash_string_format(bytes: &[u8]) -> String {
use std::fmt::Write;
let mut result = String::with_capacity(bytes.len() * 2);
@nabijaczleweli
nabijaczleweli / EnVar_plugin.zip
Last active March 11, 2020 22:23
EnvVarUpdate.nsh with patches
@nabijaczleweli
nabijaczleweli / deploy.sh
Last active May 14, 2020 14:28
Rust project documentation deployment script for TravisCI, insert into after_success section
if ( [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_BRANCH" = "trunk" ] || [ "$TRAVIS_BRANCH" = "develop" ] ) && [ "$TRAVIS_SECURE_ENV_VARS" = "true" ] && [ "$TRAVIS_RUST_VERSION" = "stable" ] && [ "$TRAVIS_COMMIT_RANGE" ] && ! [ "$TRAVIS_TAG" ]; then
(
echo "Update docs for commits $TRAVIS_COMMIT_RANGE";
echo;
git log "$TRAVIS_COMMIT_RANGE" --pretty=oneline;
) >> "$TRAVIS_BUILD_DIR/../DOC_UPDATE_MSG";
mkdir -p ~/.ssh && cp gh_rsa ~/.ssh/id_rsa && chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa;
git clone -b doc "git@github.com:$TRAVIS_REPO_SLUG.git" "$TRAVIS_BUILD_DIR-doc";
mkdir -p target;
cargo doc;
@nabijaczleweli
nabijaczleweli / msg
Created June 11, 2016 12:33
Skype scam message from "Mr.Andelko Horvat"
This is an Automated Message sent via Skype©
Hello My Friend,
I offer my friendship and believe you will accept me with good heart, was pushed to contact you and see how best we can assist each other. You don’t know me but I believe God want us to know each other now, I am Mr.Andelko Horvat, citizen of Croatia, An accountant, Barclays Bank Ghana Branch. I believe it is the wish of God for me to come across you. I am having an important business discussion I wish to share with you which I believe will interest you because, it is in connection with your last name and you are going to benefit from it.
A citizen of your country.Jedrzej had a fixed deposit with my bank in 2006 for 36 calendar months, valued at US$15,000,000.00 (Fifteen Million US Dollars) He was among the death victims of deadly earthquake in China in 2008. He was in China on a business trip and that was how he met his end. http://news.bbc.co.uk/2/hi/7410166.stm .
My bank management is yet to know about his death, I knew about it because he wa
@nabijaczleweli
nabijaczleweli / BarbersAndRebarbs-v0.2.0.tgz.asc
Last active May 8, 2016 20:01
BarbersAndRebarbs release v0.2.0
This file has been truncated, but you can view the full file.
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2
owEsV2OQLjqUHNu2bd+xbeuObZvf2LZt27btO7Zt7dut/ZFU0NUn1Umqz4mHBwWC
Au7+hgWOodC8B566NgLSYMwsJYyCAirNZNQAAr3S1rXB1XDrTXMP/U1+o5UmI0eQ
UvpFCftVHhw2HlPPtrlCg1YulmulNl0o1ZFSJScvbZqxWyjd0nWBpVNs2w5zIWz1
hIqkz2QTdl8Ka4Vyi8KwUHJHzvc9C2rTzPe1AOVD2/bVnOJ7nc3Zh+NaztN9Nedr
Hp/KSLjp2X2f5drlOnR+vk4ZfZndmFnBxKFl2snwF9GjohvnetpDwI616og+isyu
S328Uvmv8Qoo9irOYFa9s3QTc+nXqpqQpRDu4XwQ1N1erbaRQ9uuaqzWrtV1d+y0
L2jqX/bcOlk33TOtPsbHOX9f6e9uWF7d8CLh4G39vMMwAd1MaTymHJB+CkQfUn3W
p:\Rust\effective-sniffle\despayre>make -j10
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable main.cpp -o main.o -I./include/reaver
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable parser/lexer.cpp -o parser/lexer.o -I./include/reaver
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable parser/parser.cpp -o parser/parser.o -I./include/reaver
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable semantics/delayed_variable.cpp -o semantics/delayed_variable.o -I./include/reaver
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable semantics/files.cpp -o semantics/files.o -I./include/reaver
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable semantics/semantics.cpp -o semantics/semantics.o -I./include/reaver
g++ -c -Os -Wall -std=c++1z -MD -Wno-unused-parameter -g -pthread -Wno-unused-variable semantics/ty
@nabijaczleweli
nabijaczleweli / bt.log
Last active April 24, 2016 14:00
effective-sniffle recursive rule backtrace
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
@nabijaczleweli
nabijaczleweli / email.md
Created March 15, 2016 15:16
Tech Stack Survey

Hi Jędrzej,

I'm an Outreach Specialist for G2 Crowd, a user review site for business software. I came across your profile on GitHub when I was searching for Python developers and I'm curious whether you could share a little of your expertise.

We're looking to increase the number of reviews we have on our site for several developer tools so we're sending out Amazon gift cards in exchange for software reviews. The gift cards range from $10 to $25 per review.

You can see what software we're looking for reviews for and how much we're paying for them here.