Skip to content

Instantly share code, notes, and snippets.

Avatar

Artyom Shalkhakov ashalkhakov

View GitHub Profile
@doublec
doublec / build-urweb.txt
Created Nov 23, 2018
Building a static urweb executable
View build-urweb.txt
# Build musl libc
$ git clone git://git.musl-libc.org/musl
$ cd musl
$ ./configure
$ make
$ sudo make install
$ export PATH=$PATH:/usr/local/musl/bin/
# build libz for musl
$ wget https://zlib.net/zlib-1.2.11.tar.gz
View c-sharp-parse-linkheader.cs
public class LinkHeader
{
public string FirstLink { get; set; }
public string PrevLink { get; set; }
public string NextLink { get; set; }
public string LastLink { get; set; }
public static LinkHeader LinksFromHeader(string linkHeaderStr)
{
LinkHeader linkHeader = null;
@heyman
heyman / gist:95ee0df663b2d4b9d6fb
Last active Oct 30, 2019
Installing Locust on Ubuntu 14.04
View gist:95ee0df663b2d4b9d6fb
sudo apt-get update
sudo apt-get install -y python-pip
sudo apt-get install -y python-dev
sudo apt-get install -y libzmq-dev
sudo pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install locustio
pip install pyzmq