Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
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}
\usepackage{bxpapersize}
\usepackage[right=91mm]{geometry}
\usepackage[dvipdfmx]{hyperref}
\usepackage{pxjahyper}
\title{}
\author{}
\date{}
@azk-mochi
azk-mochi / cross-compile-arm64.sh
Last active Oct 17, 2018
Cross-Compile to iOS (ARM64, iOS11)
View cross-compile-arm64.sh
#以下の設定で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
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;
}else
cout << "You are not root." << endl;
@azk-mochi
azk-mochi / llvm-clang6.0.0-build.sh
Last active Aug 6, 2018
Script to build LLVM+Clang for jailbroken iOS (ARM64)
View llvm-clang6.0.0-build.sh
#LICENSE: retain the following license
#BSD 3-Clause "New" or "Revised" License
#and this: https://github.com/leetal/ios-cmake/blob/master/LICENSE.md
#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
You can’t perform that action at this time.