Skip to content

Instantly share code, notes, and snippets.

View okanon's full-sized avatar
🍇
JELLY LAY

okanon okanon

🍇
JELLY LAY
View GitHub Profile
@okanon
okanon / bsopt.sh
Created January 31, 2019 01:03
What is the optimal buffering size?
#!/bin/bash
echo "creating file to work with"
dd if=/dev/zero of=/var/tmp/bsopt count=1145140
for buff in 1M 2M 4M 8M 16M 32M 64M 128M 256M
do
echo "---------------------------------------"
echo "Testing block size = $buff"
@okanon
okanon / fstab.sh
Last active January 29, 2019 03:25
update EFI
#!/bin/sh
repl=`grep -e "vfat" -n /etc/fstab | sed -e 's/:.*//g'`
echo -n "Input EFI Partition: "
read efip
DUUID=`blkid -o export $efip | grep -m 1 UUID`
echo $DUUID
@okanon
okanon / snapUtil.c
Created July 25, 2018 03:41
snaputil
/*
* Copyright 2017 Adam H. Leventhal. All Rights Reserved.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
@okanon
okanon / guid
Last active July 24, 2018 09:17
SemiRestore11 Using command "GUID"
#!/bin/bash
COMMAND=`basename $0`
while getopts mhv OPTION
do
case $OPTION in
m ) OPTION_m="TRUE" ;;
h ) OPTION_h="TRUE" ;;
v ) OPTION_v="TRUE" ;;
@okanon
okanon / viewsource.js
Last active April 20, 2018 15:18
Safari view html source
javascript:d=document;
c=d.charset%7C%7C0;
i=0;
o=d.documentElement;
d.write(%22%3Cpre%3E%22+(o.outerHTML%7C%7Co.innerHTML).replace(/&/g,%22&amp;%22).replace(/%3C/g,%
22&lt;%22).replace(/%3E/g,%22&gt;%22)+%22%3C/pre%3E%22);
c?d.charset=c:0;
void(document.close());
@okanon
okanon / opencv-3.4.1_en_US.md
Last active March 11, 2024 10:19
OpenCV 3.4.1 Install Ubuntu17.10

Installation OpenCV 3.4.1 on Ubuntu 17.10

Install

Before Installation

sudo apt install -y \
		x264 \
		fcitx-libs-dev fcitx-libs-qt5 \
		mesa-utils \
		libgtk2.0-dev \
		libxvidcore-dev \
@okanon
okanon / install_arm64_ubuntu.md
Last active April 20, 2018 15:29
Install iOSToolChain & iphoneos arm64 Clang on Ubuntu

Install iOSToolChain & arm64 Clang on Ubuntu16.04-17.10

PREREQUISITES:

See cctools/ld64 README + libssl-dev, git, bash, cmake and a jailbroken iOS device

USAGE:

Please ensure you have read and understood the Xcode license terms before building this toolchain: https://www.apple.com/legal/sla/docs/xcode.pdf.

@okanon
okanon / electra.md
Last active December 24, 2018 09:07
Fixed Electra 1.0.x "Error: topanga"

Fixed Electra 1.0.x "Error: topanga"

Download & Jailbreak Electra b11-3

Electra beta11-3

How to Use

  1. Download WinSCP or SCPcleint
    winscp
  2. SFTP connection to the device
  3. Forward rm_topanga.sh to /var/root directory
@okanon
okanon / install_x8664_gui_archlinux.md
Last active October 24, 2017 09:48
Install x86_64 ArchLinux GUI

Install GUI x86-64 ArchLinux And Japanese Settings

GUI-Installation

This Gist assumes that the installation of ArchLinux(CUI) is over. If installation is not finished please look at here and finish the installation.

  • Setup sudo

    First of all, install "sudo" so that you can operate with administrator privileges.
    pacman -S --noconfirm sudo
    
@okanon
okanon / hwto_install_archlinux_en.md
Last active July 11, 2020 11:28
Install x86_64 ArchLinux (late 2020)

How to Install x86_64 Arch Linux 2020 (Single Boot)

Pre-Installation

  • Set the keyboard layout and Font

    The default console keymap is US. To list available layouts, run ls /usr/share/kbd/keymaps/**/*.map.gz. To modify the layout, append a corresponding file name to loadkeys, omitting path and file extension.

    For example, run loadkeys jp106 to set a Japanese keyboard layout.