start new:
tmux
start new with session name:
tmux new -s myname
From - String | |
To - String/List of string | |
Message - String |
#!/usr/bin/env ruby | |
require 'ipaddr' | |
ARGV.each do |int| | |
puts "#{int} = #{IPAddr.new(int.to_i, Socket::AF_INET).to_s}" | |
end |
package main | |
import ( | |
"fmt" | |
"net" | |
) | |
func main() { | |
ifaces, err := net.Interfaces() | |
for _, iface := range ifaces { |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"github.com/milosgajdos83/tenus" | |
) |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"github.com/milosgajdos83/tenus" | |
) |
Host * | |
ControlPath ~/.ssh/sockets/master-%l-%r@%h:%p | |
ControlMaster auto | |
GSSAPIAuthentication=no | |
ServerAliveInterval 25 | |
Compression yes | |
IdentityFile ~/.ssh/id_rsa | |
#ControlPersist yes | |
UseRoaming no |
package main | |
import ( | |
"crypto/sha512" | |
"fmt" | |
) | |
// 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 { |
package utils | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"net/http" | |
) | |
// PeekReadCloser return a copy of a reader without loosing the original content |