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
" hight trailing spaces | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
au InsertLeave * match ExtraWhitespace /\s\+$/ |
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 <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/wait.h> | |
#include <sys/ioctl.h> | |
#include <pthread.h> | |
#define ALLOC_CTX _IO('t', 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 LOG_TAG "su" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <pwd.h> |
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
/* | |
FUSE: Filesystem in Userspace | |
Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu> | |
This program can be distributed under the terms of the GNU GPL. | |
See the file COPYING. | |
*/ | |
/** @file | |
* |
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/sh | |
#MIRROR=http://ftp.sjtu.edu.cn/ | |
MIRROR=https://mirrors.cloud.tencent.com/ | |
debootstrap --components=main,restricted,universe,multiverse --include=git-core,gnupg,flex,bison,gperf,build-essential,zip,curl,zlib1g-dev,gcc-multilib,g++-multilib,libc6-dev-i386,lib32ncurses5-dev,x11proto-core-dev,libx11-dev,libgl1-mesa-dev,libxml2-utils,xsltproc,unzip --arch=amd64 trusty trusty/ $MIRROR/ubuntu |
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> | |
void DumpHex(const void* data, size_t size) { | |
char ascii[17]; | |
size_t i, j; | |
ascii[16] = '\0'; | |
for (i = 0; i < size; ++i) { | |
printf("%02X ", ((unsigned char*)data)[i]); | |
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') { | |
ascii[i % 16] = ((unsigned char*)data)[i]; |
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 | |
IDA_PATH=/opt/idapro-7.4/ | |
base=`basename $0` | |
fn=$1 | |
if [ "$#" -ne 1 ]; then | |
exe=$IDA_PATH/$base | |
else |
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
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Initializing cgroup subsys cpuacct | |
[ 0.000000] Linux version 3.18.71 (f00l@work) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) ) #68 SMP PREEMPT Fri Aug 14 01:06:41 CST 2020 | |
[ 0.000000] CPU: AArch64 Processor [411fd070] revision 0 | |
[ 0.000000] Detected PIPT I-cache on CPU0 | |
[ 0.000000] alternative: enabling workaround for ARM erratum 832075 | |
[ 0.000000] cma: Reserved 64 MiB at 0x00000000fc000000 | |
[ 0.000000] psci: probing for conduit method from DT. | |
[ 0.000000] psci: PSCIv0.2 detected in firmware. | |
[ 0.000000] psci: Using standard PSCI v0.2 function IDs |
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 <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <pwd.h> | |
/* |
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 <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
/* | |
author: swing @ bestswngs@gmail.com | |
swpwn-pd@ubuntu:~/glibc-2.31$ uname -a | |
Linux ubuntu 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux | |
swpwn-pd@ubuntu:~/glibc-2.31$ cat /etc/issue |
OlderNewer