Skip to content

Instantly share code, notes, and snippets.

View kenkit's full-sized avatar
💭
Where the sky begins, the horizon ends. So too do beginings and endings.

๖̶̶̶ۣۣۜۜ͜ζ͜͡ Sage kenkit

💭
Where the sky begins, the horizon ends. So too do beginings and endings.
View GitHub Profile
@kenkit
kenkit / new.cpp
Created June 8, 2012 08:11
android emulator
/* system example : DIR */
#include <iostream>
#include <windows.h>
using namespace std;
int main ()
{
int i;
cout<<("Checking if processor is available...");
@kenkit
kenkit / admin.perl
Created July 5, 2012 10:49
admin finder perl
#!/usr/bin/perl
#*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
#
# ////////////////////////////////////
# dOcToR N!nja
# ////////////////////////////////////
#
# Title : PHPmyadmin Finder
# Category : Remote
@kenkit
kenkit / curl_range.md
Created December 6, 2017 00:27 — forked from mocchira/curl_range.md
HTTP GET with Range header by curl
  • normal(explicitly specified start AND end)
  curl -v -X GET -H "range: bytes=1-8" http://localhost:8080/bbb/test
  • specified ONLY start(end will be specified at the end of file)
  curl -v -X GET -H "range: bytes=10-" http://localhost:8080/bbb/test
  • specified ONLY one negative value(last N bytes of file will be retrieved)
@kenkit
kenkit / gist:6c7f14a79ff34101872d022152cf82ee
Created January 25, 2018 10:18 — forked from TimSC/gist:5251670
Generate an RSA key pair, sign a message and verify it using crypto++ 5.6.1 or later. By Tim Sheerman-Chase, 2013. This code is in the public domain and CC0.
//Generate an RSA key pair, sign a message and verify it using crypto++ 5.6.1 or later.
//By Tim Sheerman-Chase, 2013
//This code is in the public domain and CC0
//To compile: g++ gen.cpp -lcrypto++ -o gen
#include <string>
using namespace std;
#include <crypto++/rsa.h>
#include <crypto++/osrng.h>
#include <crypto++/base64.h>

Keybase proof

I hereby claim:

  • I am kenkit on github.
  • I am kenkit (https://keybase.io/kenkit) on keybase.
  • I have a public key ASBUosupVWREcXhPbkyCBq9O317uAb-fzkByDqCDwf6iPQo

To claim this, I am signing this object:

@kenkit
kenkit / PostUpload.c
Created April 23, 2018 18:44 — forked from jay/PostUpload.c
Use libcurl to upload POST data.
/* Use libcurl to upload POST data.
Usage: PostUpload <post_data_filename> <url>
Used this as a speed test in Win7 x64, see
https://github.com/curl/curl/issues/708
First test the speed in a web browser:
Go to http://testmy.net/mirror and choose the geographically closest mirror.
After the mirror is set click on 'Upload Test'.
@kenkit
kenkit / gist:bb948a0c98e279f64907087553442ba4
Created April 25, 2018 18:45 — forked from RangelReale/gist:3e6392289d8ba1a52b6e70cdd7e10282
How to compile ffmpeg + x264 using Visual Studio 2015
##### How to compile ffmpeg + x264 using Visual Studio 2015 #####
##### Building this way will make the DLLs compatible with SEH, so there will be no need to use /SAFESEH:NO when compiling your code #####
##### SOURCES:
### https://pracucci.com/compile-ffmpeg-on-windows-with-visual-studio-compiler.html
### https://gist.github.com/sailfish009/8d6761474f87c074703e187a2bc90bbc
### http://roxlu.com/2016/057/compiling-x264-on-windows-with-msvc
* Download "MSYS2 x86_64" from "http://msys2.github.io" and install into "C:\workspace\windows\msys64"
@kenkit
kenkit / repo-rinse.sh
Created July 6, 2018 18:41 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@kenkit
kenkit / refresh-viewport-height-demo.html
Created December 31, 2018 11:28 — forked from ayapi/refresh-viewport-height-demo.html
minimum example xterm.js refresh-viewport-height
<!doctype html>
<html>
<head>
<title>xterm.js demo</title>
<link rel="stylesheet" href="../src/xterm.css" />
<script src="../src/xterm.js" ></script>
<script src="../addons/fit/fit.js" ></script>
<style>
#term-box {
overflow: hidden;
@kenkit
kenkit / default.prop
Created May 25, 2019 14:30
HOW TO: Modify boot.img to allow usb debugging from recovery adb
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.sys.usb.config=adb
ro.adb.secure=0