Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

azk_mochi azk-mochi

I may be slow to respond.
  • Tokyo, Japan
View GitHub Profile
View learning-english-article-template.tex
\documentclass[uplatex, dvipdfmx, b5j]{jsarticle}
azk-mochi /
Last active Oct 17, 2018
Cross-Compile to iOS (ARM64, iOS11)
#以下の設定でbison, nkf, sl, nyancatがビルドできた
#bison, nkf, sl, nyancat were successfully built with following settings:
export SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path)
export VER_MIN=11.2
export CC=$(xcrun --sdk iphoneos --find clang)
export CXX=$(xcrun --sdk iphoneos --find clang++)
export LD=$(xcrun --sdk iphoneos --find ld)
export AR=$(xcrun --sdk iphoneos --find ar)
azk-mochi / check-priv.cpp
Created Jul 20, 2018
Check whether root or not
View check-priv.cpp
#include <iostream>
#include <unistd.h>
using namespace std;
int main(void){
if(getuid() == 0){
cout << "You are root." << endl;
cout << "You are not root." << endl;
azk-mochi /
Last active Aug 6, 2018
Script to build LLVM+Clang for jailbroken iOS (ARM64)
#LICENSE: retain the following license
#BSD 3-Clause "New" or "Revised" License
#and this:
#Tested on LLVM 6.0.0 and Clang 6.0.0
#using XCode 9.1, iOS11.1 SDK
#make build directory
mkdir llvm-clang-ios