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{} |
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) |
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; |
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 |