Skip to content

Instantly share code, notes, and snippets.

View mariusrugan's full-sized avatar

Marius Rugan mariusrugan

View GitHub Profile
@mariusrugan
mariusrugan / 000_default.conf
Last active August 3, 2017 16:29
sslabs A+ nginx config
server {
listen 80 default_server;
listen [::]:80 default_server;
access_log off;
log_not_found off;
server_name _;
return 444;
}
### Keybase proof
I hereby claim:
* I am mariusrugan on github.
* I am mariusrugan (https://keybase.io/mariusrugan) on keybase.
* I have a public key whose fingerprint is D253 140D CB16 06F3 AC5D 3721 4986 3BA9 BD71 54B7
To claim this, I am signing this object:
@mariusrugan
mariusrugan / download.sh
Last active December 14, 2015 11:58
Plowshare single thread implementation for downloading from one source file (file with links) Removes the link downloaded from the source file and keeps a backup of the source file.
#!/bin/bash
#
#
PD_MAX_RETRIES="--max-retries=2"
PD_TIMEOUT="--timeout=60"
PD_OUTPUT="-o /media/disk1/plowshare/download"
PD_TEMP="--temp-rename --temp-directory /media/disk1/plowshare/temp"
PD_VERBOSE="-v 2"
@mariusrugan
mariusrugan / speedtest.sh
Created May 15, 2012 09:27
CURL download benchmark
#!/ffp/bin/bash
SOURCES=(
"http://ns0.multikabel.net/100mb.nul"
"http://servermars.nl/100mb.bin"
"http://speedtest.tweak.nl/100mb.bin"
"http://cachefly.cachefly.net/100mb.test"
"http://mirror.leaseweb.com/speedtest/100mb.bin"
"http://mirror.de.leaseweb.net/speedtest/100mb.bin"
"http://178.238.129.83/bigtest.tgz"
@mariusrugan
mariusrugan / LICENSE.txt
Created November 30, 2011 16:32 — forked from jed/LICENSE.txt
communicate with jsonp
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.