Skip to content

Instantly share code, notes, and snippets.

View azk-mochi's full-sized avatar
🤔
I may be slow to respond.

azk_mochi azk-mochi

🤔
I may be slow to respond.
  • Tokyo, Japan
View GitHub Profile
\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 May 3, 2023 16:58
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
azk-mochi / check-priv.cpp
Created July 20, 2018 10:12
Check whether root or not
#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 August 6, 2018 01:24
Script to build LLVM+Clang for jailbroken iOS (ARM64)
#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