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 <SDL.h> | |
int main(void) { | |
SDL_Init(SDL_INIT_AUDIO); | |
// the representation of our audio device in SDL: | |
SDL_AudioDeviceID audio_device; | |
// opening an audio device: |
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
# IDA Pro Keyboard shortcuts and tips: | |
###################################### | |
Ctrl+E - Return to entry point | |
Alt+M - Set bookmark | |
Ctrl+M - List bookmarks | |
Space - Toggle full screen/workflow view | |
Esc - Backup to parent function | |
Ctrl+X - Find All X-References | |
Ctrl+R - Change reference information e.g deltas etc. |
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
(function() | |
{ | |
if( location.href.match( /^https:\/\/store\.steampowered\.com\/account\/?$/ ) === null ) | |
{ | |
alert( 'Please run this on Steam\'s account page details: https://store.steampowered.com/account/' ); | |
return; | |
} | |
var freePackages = | |
[ |
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
void captureScreen() | |
{ | |
CGImageRef image_ref = CGDisplayCreateImage(CGMainDisplayID()); | |
CGDataProviderRef provider = CGImageGetDataProvider(image_ref); | |
CFDataRef dataref = CGDataProviderCopyData(provider); | |
size_t width, height; | |
width = CGImageGetWidth(image_ref); | |
height = CGImageGetHeight(image_ref); | |
size_t bpp = CGImageGetBitsPerPixel(image_ref) / 8; | |
uint8 *pixels = malloc(width * height * bpp); |