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 / 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 / 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 / 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 / wlan.md
Last active June 29, 2024 01:49
AlpineLinux with wlan settings

AlpineLinux with wlan settings.

Install necessary drivers and software

First make sure your wireless drivers are loaded properly.
Install wpa_supplicant & dhcpcd.

apk add wpa_supplicant dhcpcd

Configuration

@okanon
okanon / travis.md
Last active December 25, 2019 14:44
Travis CI, OS X Directory structure

Travis CI, OS X Directory structure

The macOS Build Environment

This guide explains what packages, tools and settings are available in the Travis macOS CI environment (often referred to as the “CI environment”).

Directories

/User/travis/build/$NAME/$REPO_NAME
 - Travis build directory(current directory)

/Applications/Xcode.app

@okanon
okanon / libimobiledevice.md
Last active January 29, 2020 04:12
libimobiledevice tools on Linux

libimobiledevice tools on Linux

How to Build & Installation

cmake, libusb-1.0.0-dev, libfuse-dev, libbz2-dev, libssl-dev, libcurl4-openssl-dev, libxml2-dev and liblzma-dev is required.

Build

  1. libzip (libbz2 liblzma)
  2. libplist
  3. libimobiledevice (libssl libplist libusbmuxd)
  4. libusbmuxd (libplist)
@okanon
okanon / section.md
Last active February 26, 2020 14:14

Cydia deb controls item "Sections"

Addons
Administration
Carrier Bundles
Data Storage
Development

@okanon
okanon / Addons.png
Last active February 26, 2020 14:11
Cydia icons
Addons.png
@okanon
okanon / fuckin_nvidia.md
Last active March 19, 2025 03:42
グラボをNvidia Storeから個人輸入する際にハマった

グラボをNvidia Storeから個人輸入する際にハマった

結論

  • 無事購入できました:joy:
  • 代理店価格(日本価格)より1~2万円ほど安く購入できる
  • 初めて購入するときは結構沼るので注意が必要
  • 必ず在庫通知がメールに届くようにする
  • 万が一キャンセルされたときに、早く返金が欲しいならPaypal決済かつ銀行口座からの引き落としを使え

そんなところです

@okanon
okanon / angular-bootstrap.md
Last active July 10, 2020 06:31
Angular & Bootstrap tutorial

Angular & Play

Install

# Install angular/cli
npm install -g @angular/cli

# Create projects
ng new angular-bootstrap