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 / Twitter 280characters-iphone.js
Last active October 15, 2017 16:11
iPhoneでもTweetDeckで280文字のツイート
javascript:(function(){TD.services.TwitterClient.prototype.makeTwitterCall=function(b,e,f,g,c,d,h){c=c||function(){};d=d||function(){};b=this.request(b,{method:f,params:Object.assign(e,{weighted_character_count:!0}),processor:g,feedType:h});return b.addCallbacks(function(a){c(a.data)},function(a){d(a.req,"",a.msg,a.req.errors)}),b};twttrTxt=Object.assign({},twttr.txt,{isInvalidTweet:function(){return!1},getTweetLength:function(){return twttr.txt.getTweetLength.apply(this,arguments)-140}})})()
@okanon
okanon / centos_pythoninstall.md
Created October 15, 2017 17:02
CentOS6.5 latest Python2 and Python3 install except pyenv

Latest Python2 and Python3 install CentOS6.5 except Pyenv

Install

Python2.6.6 is installed by default in CentOS 6.5. Since python2.6.6 is used in yum, Install the latest python 2 and python 3 including pip, without breaking this environment. At this time, except pyenv.

  1. When installing pip, curl: (35) SSL connect error error occurs, so upgrade libcurl to the latest version as follows. And, in order to fix zipimport.ZipImportError: can not decompress data; zlib not available which occurs when installing pip as well, execute yum upgrade after installing the package.
@okanon
okanon / js_organization_chart.md
Last active October 20, 2017 02:43
JavaScriptで組織図を作るフレームワーク

JavaScript Organization chart Module

jQuery OrgChart

@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.

@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 / 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_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 / 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 / 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&%22).replace(/%3C/g,%
22<%22).replace(/%3E/g,%22>%22)+%22%3C/pre%3E%22);
c?d.charset=c:0;
void(document.close());
@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" ;;