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 <windows.h> | |
HWND hwnd; | |
LRESULT CALLBACK WndProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam); | |
int CALLBACK wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) | |
{ | |
MSG Msg; | |
WNDCLASSEX WndClsEx = {0}; |
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
# cat /env/nv/bootchooser.system1.boot | |
mmc0.root-a | |
# cat /env/nv/bootchooser.system2.boot | |
mmc0.root-b |
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 | |
set -e | |
if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then | |
echo "USAGE: $0 kernel-recipe [defconfig path]" | |
exit 1 | |
fi | |
recipe=$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
#define _GNU_SOURCE | |
#include <sound/asound.h> | |
#include <linux/ioctl.h> | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#define report(...) fprintf(stderr, __VA_ARGS__) | |
static void decode_pcm_state(snd_pcm_state_t state) | |
{ |
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
puts("أهلًا يا عالم!"); |
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
long fslurp(char **buf, long *len, FILE *fp) | |
{ | |
size_t new_len; | |
long size, start = ftell(fp); | |
if (start == -1 || fseek(fp, 0, SEEK_END) == -1) | |
return -1; | |
if ((size = ftell(fp)) == -1) | |
return -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
[API] | |
access_token=ADD_YOUR_TOKEN_HERE | |
access_token_secret=ADD_YOUR_TOKEN_HERE | |
api_key=ADD_YOUR_KEY_HERE | |
api_secret=ADD_YOUR_KEY_HERE | |
[SEARCH] | |
lastid= |
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
export PREFIX=/opt/cross/gcc-mips | |
export PATH=${PREFIX}/bin:${PATH} | |
../binutils-2.28/configure --target=mipsel-elf --prefix=$PREFIX | |
../gcc-7.1.0/configure --target=mipsel-elf --prefix=$PREFIX --without-headers --with-gnu-as --with-gnu-ld --disable-shared --enable-languages=c --disable-libssp |
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
/* | |
for i in `seq 100000`; do ./a.out $i ; done && echo ' All is well!' | |
*/ | |
#include <assert.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <pthread.h> | |
void *interp(void *param) { | |
(void)param; |
NewerOlder