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 / 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 / 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 / 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 / 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 / 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 / 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"