Skip to content

Instantly share code, notes, and snippets.

View iwanbk's full-sized avatar
🎯
Focusing

Iwan Budi Kusnanto iwanbk

🎯
Focusing
  • Bandung, Indonesia
  • 12:19 (UTC +07:00)
View GitHub Profile
@iwanbk
iwanbk / fast sock5 error
Last active July 19, 2024 13:44
fast sock5
2024-07-17T10:20:54Z ERROR server] Error with reply: Connection refused.
[2024-07-17T10:20:54Z ERROR server] Error with reply: Connection refused.
[2024-07-17T10:21:33Z ERROR server] Malformed request: early eof
[2024-07-17T10:21:33Z ERROR server] Malformed request: early eof
[2024-07-17T10:21:33Z ERROR server] Malformed request: early eof
[2024-07-17T10:21:33Z ERROR server] Malformed request: early eof
[2024-07-17T10:21:33Z ERROR server] Malformed request: early eof
[2024-07-17T10:21:33Z ERROR fast_socks5::server] transfer error: Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }
[2024-07-17T10:21:43Z ERROR server] Error with reply: Connection timeout.
[2024-07-17T10:21:43Z ERROR server] Error with reply: Connection timeout.
@iwanbk
iwanbk / NOTE.md
Created November 23, 2018 13:53 — forked from tcnksm/NOTE.md
Small note of gRPC Best Practice @ CoreOSFest 2017
@iwanbk
iwanbk / psql-srv.py
Created August 27, 2018 23:34 — forked from matteobertozzi/psql-srv.py
postgres "server" wire protocol example
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432
# Password:
# psql (9.1.10, server 0.0.0)
# WARNING: psql version 9.1, server version 0.0.
# Some psql features might not work.
# Type "help" for help.
#
# th30z=> select foo;
# a | b
# ---+---
@iwanbk
iwanbk / bashrc_add
Last active June 27, 2024 02:35
Go + Vim Init : main file is goinit.sh
export GOROOT=$HOME/go
export GOPATH=$HOME/pathgo
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$GOPATH/bin
http://web.archiveorange.com/archive/v/1XS1vAjrtSZXwtoV7Gzb
package main
import (
"fmt"
"github.com/iwanbk/ogric"
"log"
"os"
)
const myNick = "botku"
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i = 0; i < data.length; i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
@iwanbk
iwanbk / gist:5856778
Created June 25, 2013 08:03
SIPML5 log
State machine: c0000_Started_2_Outgoing_X_oINVITE
SIPml-...svn=179 (line 1)
ICE servers:[{"url":"stun:23.21.150.121:3478"},{"url":"stun:216.93.246.18:3478"},{"url":"stun:66.228.45.110:3478"},{"url":"stun:173.194.78.127:19302"}]
SIPml-...svn=179 (line 1)
onGetUserMediaSuccess
SIPml-...svn=179 (line 1)
createOffer
SIPml-...svn=179 (line 1)
==session event = m_stream_audio_local_added
SIPml-...svn=179 (line 1)
@iwanbk
iwanbk / kamailio.cfg
Created May 13, 2013 12:57
kamailio.cfg with SIP over websocket. Modified from kamailio 4.0.1 example
#!KAMAILIO
#
# Simple/sample kamailio.cfg for running a proxy/registrar with TLS and
# WebSockets support.
###!substdef "!DBURL!sqlite:///etc/kamailio/db.sqlite!g"
#!substdef "!DBURL!mysql://kamailio:kamailiorw@localhost/kamailio!g"
#!substdef "!MY_IP_ADDR!10.0.11.175!g"
#!substdef "!MY_DOMAIN!ubukam.lan!g"
#!substdef "!MY_WS_PORT!5065!g"
@iwanbk
iwanbk / split_string_by_line.lua
Created April 29, 2013 03:39
Split string by line in Lua
for line in yourString:gmatch("([^\n]*)\n?") do
-- do something
end