- I have a
MacBook1,1, but its HDD died. - I need an instance of OS X mainly to build OS X binaries of some of my open-source software.
- Obtain installation medium
| #define QUEUE_SIZE 16 | |
| int main(int argc, char** argv) { | |
| queue_t example = {0, 0, QUEUE_SIZE, malloc(sizeof(void*) * QUEUE_SIZE)}; | |
| // Write until queue is full | |
| for (int i=0; i<QUEUE_SIZE; i++) { | |
| int res = queue_write(&example, (void*)(i+1)); | |
| assert((i == QUEUE_SIZE - 1) ? res == -1: res == 0); | |
| } |
| // Dump of all network properties for "csgo" as at 2016/08/23 | |
| // | |
| CAI_BaseNPC (type DT_AI_BaseNPC) | |
| Table: baseclass (offset 0) (type DT_BaseCombatCharacter) | |
| Table: baseclass (offset 0) (type DT_BaseFlex) | |
| Table: baseclass (offset 0) (type DT_BaseAnimatingOverlay) | |
| Table: baseclass (offset 0) (type DT_BaseAnimating) | |
| Table: baseclass (offset 0) (type DT_BaseEntity) | |
| Table: AnimTimeMustBeFirst (offset 0) (type DT_AnimTimeMustBeFirst) |
MacBook1,1, but its HDD died.| #It's not directly mentioned in the documentation on how to do this, so here you go. This command will tunnel everything including DNS: | |
| sshuttle --dns -vr user@yourserver.com 0/0 --ssh-cmd 'ssh -i /your/key/path.pem' |
You can change "MOK".priv/.der to any desired name; "CN=" MUST hold your username, signing the modules may not work otherwise (on shim, possibly due to a bug).
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=John Doe/"
NokiaTool is a simple Bash script (nokiatool.sh) that allows you to use an undocumented serial connection in USB-enabled MediaTek-based Nokia feature phones manufactured by Microsoft (even the most basic ones, like the new 105) in order to control them from your PC.
This project is an ongoing work and uses only some bits and pieces of information about the phone internals available to the public, so under any circumstances don't consider it stable or a replacement for official tools if any are present.
| # First we cut the video in how many parts we want | |
| # Step 1. cut the first part of the video and cut it to a separate file | |
| ffmpeg.exe -ss 00:00:00.000 -t 00:02:18.00 -i recording-full.flv -c:v copy -c:a copy recording-full-part1.flv | |
| # Step 2. cut the second part from original video | |
| ffmpeg.exe -ss 00:03:47.000 -i recording-full.flv -c:v copy -c:a copy recording-full-part2.flv | |
| # Step 3. create a file with your cut parts to concat into one video with these contents and name it whatever (i.e. videos.txt): | |
| file 'C:\Path\To\recording-full-part1.flv' |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>WinImage 9.0 KeyGen</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body style="text-align: center;"> | |
| <h1>WinImage 9.0 KeyGen</h1> |
| // Create Base64 Object | |
| var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r |
NDK (Native Develop Toolkit) is a toolchain from Android official, originally for users who writes native C/C++ code as JNI library. It's not designed for compiling standalone programs (./a.out) and not compatible with automake/cmake etc.
"Standalone" refers to two meanings:
By default, NDK uses android flavor directory structure when it's finding headers and libs, which is different from GNU flavor, so the compiler cannot find them. For Example: