Skip to content

Instantly share code, notes, and snippets.

Ido Kanner ik5

  • :::1
Block or report user

Report or block ik5

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ik5 / config
Created Feb 8, 2019
my ~/.ssh/config
View config
Host *
ControlPath ~/.ssh/sockets/master-%l-%r@%h:%p
ControlMaster auto
ServerAliveInterval 25
Compression yes
IdentityFile ~/.ssh/id_rsa
#ControlPersist yes
UseRoaming no
ik5 / checksum.go
Created Jan 27, 2019
example of using golang's sha512 for checksum
View checksum.go
package main
import (
// CalcChecksum takes a slice of bytes and calculate it as a checksum
// it is using SHA512 for that (128 bytes for result)
func CalcChecksum(buff []byte) []byte {
ik5 / peek.go
Created Jan 8, 2019
How to reuse stream in golang
View peek.go
package utils
import (
// PeekReadCloser return a copy of a reader without loosing the original content
ik5 / wav_duration.go
Created Nov 21, 2018
fast example to see if a wav duration is a minute or more
View wav_duration.go
package main
import (
ik5 / testing_hash_functions.go
Created Nov 18, 2018
Some non cryptographic hashing algorithms I tested
View testing_hash_functions.go
package main
import (
ik5 /
Created Nov 12, 2018
Simple port scanner example written in python 3
#!/usr/bin/env python3
Example on how to do TCP port scanner in Python
import socket
def scan(address, port, timeout=3):
'''TCP Port Scanner'''
ik5 /
Created Nov 12, 2018
Simple port scanner example written in Perl 5
#!/usr/bin/env perl
use warnings;
use strict;
use v5.20;
use IO::Socket::INET;
use experimental qw( switch );
ik5 / scan.go
Last active Nov 12, 2018
Simple port scanner example written in go
View scan.go
package main
import (
const (
ik5 / index.js
Created Oct 26, 2018
Get OSM details on long and lat in go and javascript
View index.js
.then((data) => { return data.json() } )
.then((data) => { console.table(JSON.stringify(data)) } )
.catch((err) => { console.error(err) } )
ik5 / scan.rb
Last active Aug 27, 2018
simple example for naive TCP port scanner in Ruby
View scan.rb
#!/usr/bin/env ruby
require 'socket'
def tcp_connect(address, port, timeout: 20)
# making sure we are talking with IP
connected = false
addr = Socket.getaddrinfo(address, nil)
sock_addr = Socket.pack_sockaddr_in(port, addr[0][3])[0][0]), Socket::SOCK_STREAM, 0).tap do |socket|
You can’t perform that action at this time.