Skip to content

Instantly share code, notes, and snippets.

View gmile's full-sized avatar
🦆
Poco a poco cresc.

Ievgen Pyrogov gmile

🦆
Poco a poco cresc.
View GitHub Profile
@gmile
gmile / archive_a_folder.sh
Last active December 20, 2015 14:39
Collection of shell scripts
tar -czf folder_name.tar.gz folder_name/
package main
import (
client "ttt_client"
)
func main() {
game := new(client.Game)
game.Join() // should be game.Join('127.0.0.1', ':1234')
}
package main
import "net/rpc"
type Region struct {
X, Y int
}
func main() {
client, _ := rpc.Dial("tcp", ":8080")
package main
import "net"
import "bufio"
func main() {
conn, err := net.Dial("tcp", ":8080")
if err != nil {
println("There was an error:", err)
  1. Format the USB with "Master boot record set", providing it with a "MYDISK" title (see 1, 2)
  2. run diskutil list
Eugenes-MacBook-Pro:haystack gmile$ diskutil list
/dev/disk0
 #:                       TYPE NAME                    SIZE       IDENTIFIER
 0:      GUID_partition_scheme                        *750.2 GB   disk0
 1:                        EFI                         209.7 MB   disk0s1
 2:                  Apple_HFS Macintosh HD            749.3 GB   disk0s2
require 'pry'
require 'ffaker'
require 'active_record'
database = 'test'
config = {
adapter: 'mysql2',
encoding: 'utf8',
username: 'root',