This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener('fetch', event => { | |
return event.respondWith( | |
new Response(event.request.headers.get('CF-Connecting-IP')) | |
) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
let fs = require('fs'), | |
http = require('http'), | |
HOSTNAME =process.env.HOSTNAME || '0.0.0.0', | |
PORT = process.env.PORT || 8080, | |
ACK_HTTP_CODE = 200, | |
ACK_CONTENT_TYPE = 'text/plain', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const repos = require('./gitlab.json'); | |
const { execSync } = require('child_process'); | |
repos.reduce((previous, repo) => { | |
execSync('git clone ' + repo.ssh_url_to_repo); | |
}, undefined) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# One liner to clone all your group projects | |
# with a NodeJS interpreter. You need to substitute | |
# two things in this one liner: group, token. | |
curl -s https://gitlab.com/api/v4/groups/group/projects?private_token=token&search=&per_page=999 > gitlab.json && node -e "const repos = require('./gitlab.json'); const { execSync } = require('child_process'); repos.reduce((previous, repo) => { execSync('git clone ' + repo.ssh_url_to_repo); }, undefined)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* RSA hash function reference implementation. | |
* Uses BigInteger.js https://github.com/peterolson/BigInteger.js | |
* Code originally based on https://github.com/kubrickology/Bitcoin-explained/blob/master/RSA.js | |
* | |
* @namespace | |
*/ | |
var RSA = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("script inserted"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generated by Slic3r 1.3.0-dev on Sat Jan 30 21:21:01 2016 | |
avoid_crossing_perimeters = 0 | |
bottom_solid_layers = 3 | |
bridge_acceleration = 750 | |
bridge_flow_ratio = 1 | |
bridge_speed = 40 | |
brim_width = 0 | |
complete_objects = 0 | |
default_acceleration = 2000 | |
dont_support_bridges = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
IFS=$'\n' | |
for a in `find -type f -size 1M -not -path '*.svn*'`; do | |
grep -inH "$1" $a | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <windows.h> | |
#include <winsock2.h> | |
int pid = 0; | |
STARTUPINFO lpStartupInfo; | |
PROCESS_INFORMATION lpProcessInformation; | |
BOOL CALLBACK EnumChildWindowsProc(HWND hwnd, LPARAM lparam){ | |
DWORD p; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int incomingByte = 0; | |
int nov = 12; | |
int numberOfBytes = 0; | |
int rta = 13; | |
void getLastByte(){ | |
for(int i = 0; i < numberOfBytes; i++){ | |
incomingByte = Serial.read(); | |
} | |
} |
NewerOlder