Skip to content

Instantly share code, notes, and snippets.

View collinvandyck's full-sized avatar
🏠
Working from home

Collin Van Dyck collinvandyck

🏠
Working from home
  • Rippling
  • Durham, NC
View GitHub Profile
80808 Alloc - 41469 Frees - 193 HeapObjects - 0 HeapReleased - 221184 HeapInuse
80808 Alloc - 41740 Frees - 193 HeapObjects - 0 HeapReleased - 237568 HeapInuse
80808 Alloc - 42023 Frees - 193 HeapObjects - 0 HeapReleased - 237568 HeapInuse
80872 Alloc - 42306 Frees - 194 HeapObjects - 0 HeapReleased - 221184 HeapInuse
80872 Alloc - 42589 Frees - 194 HeapObjects - 0 HeapReleased - 237568 HeapInuse
80872 Alloc - 42872 Frees - 194 HeapObjects - 0 HeapReleased - 221184 HeapInuse
80872 Alloc - 43155 Frees - 194 HeapObjects - 0 HeapReleased - 221184 HeapInuse
80936 Alloc - 43438 Frees - 195 HeapObjects - 0 HeapReleased - 237568 HeapInuse
80872 Alloc - 43719 Frees - 194 HeapObjects - 0 HeapReleased - 237568 HeapInuse
80936 Alloc - 44001 Frees - 195 HeapObjects - 0 HeapReleased - 237568 HeapInuse
package main
import (
"fmt"
"runtime"
"time"
)
func main() {
go func() {
package main
import (
"fmt"
"time"
"runtime"
)
func loopit() {
for {
@ 9 Builder::setOne (7 bytes) inline (hot)
@ 14 Builder::setTwo (7 bytes) inline (hot)
@ 19 Builder::setThree (7 bytes) inline (hot)
@ 24 Builder::setFour (7 bytes) inline (hot)
@ 29 Builder::setFive (7 bytes) inline (hot)
@ 34 Builder::setSix (7 bytes) inline (hot)
@ 39 Builder::setSeven (7 bytes) inline (hot)
@ 44 Builder::setEight (7 bytes) inline (hot)
@ 49 Builder::setNine (7 bytes) inline (hot)
@ 54 Builder::setTen (7 bytes) inline (hot
58.215.76.67 - - [26/Jul/2015:08:29:58 +0000] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
58.215.76.67 - - [26/Jul/2015:08:29:58 +0000] "GET /pma/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
58.215.76.67 - - [26/Jul/2015:08:29:59 +0000] "GET /myadmin/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
185.81.152.171 - - [26/Jul/2015:10:02:00 +0000] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
185.81.152.171 - - [26/Jul/2015:10:02:01 +0000] "GET /pma/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
185.81.152.171 - - [26/Jul/2015:10:02:02 +0000] "GET /myadmin/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
46.172.71.251 - - [26/Jul/2015:10:23:28 +0000] "GET /rom-0 HTTP/1.1" 200 5399 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
61.19.114.147 - - [26/Jul/2015:10:44:58 +0000] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
61.19.114.147 - - [26/Jul/2015:10:44:59 +0000] "GET /pma/scripts/setup.php HTTP/1.1" 200 5399 "-" "-"
61.19.114.147 - - [26/
Information:java: An exception has occurred in the compiler (1.8.0). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
runtime: garbage collector found invalid heap pointer *(0xc2082a7d18+0x18)=0x1 s=nil
fatal error: invalid heap pointer
runtime stack:
runtime.throw(0xc96243)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7f9f661cca38 sp=0x7f9f661cca08
scanblock(0xc208251d18, 0x50, 0x9267f4)
/usr/local/go/src/runtime/mgc0.c:378 +0x551 fp=0x7f9f661ccb78 sp=0x7f9f661cca38
scanframe(0x7f9f661ccc80, 0x0, 0x1)
/usr/local/go/src/runtime/mgc0.c:740 +0x1c2 fp=0x7f9f661ccbe8 sp=0x7f9f661ccb78
@collinvandyck
collinvandyck / gist:c87357b077fe488db8c3
Last active August 29, 2015 14:16
is there something like this in the goland stdlib?
func adaptToChanErr(delegate func() error) chan error {
ch := make(chan error)
go func() { ch <- delegate() }()
return ch
}
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/microservices", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "lol no\n")
query := req.URL.Query()
query.Set("user_id", 1)
req.URL.RawQuery = query.Encode()