I hereby claim:
- I am jessedearing on github.
- I am jessed (https://keybase.io/jessed) on keybase.
- I have a public key ASDHcM5dilzf0pRTuwAcQfzaPVtA7X4eT_hnyRk8ztRYcgo
To claim this, I am signing this object:
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
"regexp" | |
"sync" |
File.open(‘hello.txt’, ‘r’) do |f| | |
while line = f.gets | |
puts line | |
end | |
end |
try(FileInputStream input = new FileInputStream(“file.txt”)) { | |
int data = input.read(); | |
while(data != -1) { | |
System.out.print((char) data); | |
data = input.read(); | |
} | |
} |
connection, err := net.Dial("tcp", "example.com:80") | |
if err != nil { | |
// Do something to handle the error | |
return | |
} | |
defer connection.Close() |
sshClient, err := setUpSSHClient(host) | |
if err != nil { | |
log.Panic(err) | |
} | |
defer sshClient.Close() | |
lsofOut, err := runCmd(sshClient, "sudo lsof -i tcp:"+port+" | tail -1 | awk '{ print $2; }'") | |
lsofOut = strings.Trim(lsofOut, "\n\r ") | |
if err != nil { | |
log.Panic(err) |
db, err := sql.Open("mysql", user+":"+password+"@tcp("+host+":3306)/information_schema") | |
if err != nil { | |
log.Fatal(err) | |
} | |
defer db.Close() | |
hostWithPort := getHost(db) | |
if hostWithPort == nil { | |
log.Println("Could not find query with that ID") | |
return |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"log" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/jmoiron/sqlx" | |
) |
user jessed staff; | |
worker_processes 2; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
package main | |
import ( | |
"fmt" | |
"log" | |
"database/sql/driver" | |
"github.com/go-sql-driver/mysql" | |
) |