Version:
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
This was made with commands:
#include "base94.h" | |
void base94_encode(const unsigned char *plain, unsigned char *code) { | |
// high * 2^64 | low | |
unsigned long long value | |
= ((unsigned long long)plain[1] << 56) | ((unsigned long long)plain[2] << 48) | |
| ((unsigned long long)plain[3] << 40) | ((unsigned long long)plain[4] << 32) |
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
#include <cstdio> | |
struct Foo | |
{ | |
Foo() | |
{ | |
puts("Hello, "); | |
} | |
}; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
/* For supporting Linux and other systems that don't have mach-o headers */ |
''' | |
INSTALLING | |
curl --create-dirs -o ~/.lldb/cfdata.py https://gist.githubusercontent.com/ikonst/364af37c44e5f549b722/raw/cfdata.py \ | |
&& echo 'command script import ~/.lldb/cfdata.py' >> ~/.lldbinit | |
USING | |
(lldb) cfdata_save some_cfdata /Users/john/foo | |
(lldb) cfdata_save some_nsdata /Users/john/bar |
WARNING : Unauthorized access to this system is forbidden and will be | |
prosecuted by law. By accessing this system, you agree that your actions | |
may be monitored if unauthorized usage is suspected. |
public static Bitmap resizeBitmap2(RenderScript rs, Bitmap src, int dstWidth) { | |
Bitmap.Config bitmapConfig = src.getConfig(); | |
int srcWidth = src.getWidth(); | |
int srcHeight = src.getHeight(); | |
float srcAspectRatio = (float) srcWidth / srcHeight; | |
int dstHeight = (int) (dstWidth / srcAspectRatio); | |
float resizeRatio = (float) srcWidth / dstWidth; | |
/* Calculate gaussian's radius */ |
#!/bin/sh | |
RADARE="$(which rabin2)" #We need rabin2 | |
KERNELCACHE_FILE="$1" #This will be the path to a decompressed kernelcace, e.g: /tmp/kernel | |
OFFSETS_FILE="$2" #This is the path and name of the file where the offsets should be stored in, don't add .c or .h the script will do! | |
STRUCTNAME="$3" | |
H_FILE="$OFFSETS_FILE.h" # your_chosen_name.h | |
C_FILE="$OFFSETS_FILE.c" # your_chosen_name.c |
help | |
DiagShell builtin commands: | |
"time" time <command-line ...> | |
"echo" echo <arguments ...> | |
"waitfor" waitfor <timeout-milliseconds> <string-to-match> | |
"repeat" repeat <time-spec> <command line ...> | |
"alias" alias [<name>[=<command line>]] | |
"unalias" unalias <name> | |
"true" true |