Skip to content

Instantly share code, notes, and snippets.

Florin Pățan dlsniper

Block or report user

Report or block dlsniper

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
@dlsniper
dlsniper / custom.sh
Created Jul 16, 2018
Shell Script to perform tasks on binary
View custom.sh
#!/bin/env bash
# Compile the using one of these commands:
# for Go 1.10 or later
go build -gcflags "all=-N -l" -o /tmp/demo github.com/app/demo
# for Go 1.9 or earlier
# go build -gcflags "-N -l" -o /tmp/demo github.com/app/demo
View delve break.txt
Command failed: Internal debugger error: <nil> not a Bool
runtime.call32 (0x454a11)
C:/Go1.11/src/runtime/asm_amd64.s:522
runtime.gopanic (0x42c396)
C:/Go1.11/src/runtime/panic.go:494
go/constant.BoolVal (0x5e432a)
C:/Go1.11/src/go/constant/value.go:438
github.com/derekparker/delve/pkg/proc.evalBreakpointCondition (0x68649c)
D:/go/src/github.com/derekparker/delve/pkg/proc/breakpoints.go:190
github.com/derekparker/delve/pkg/proc.(*Breakpoint).CheckCondition (0x68605e)
View buffalo-error.txt
florin@Monzi10 [02:11:01 PM] [~/go/src/github.com/dlsniper]
-> % buffalo new buffy
--> /home/florin/go/src/github.com/dlsniper/buffy/.buffalo.dev.yml
--> /home/florin/go/src/github.com/dlsniper/buffy/assets/images/logo.svg
--> /home/florin/go/src/github.com/dlsniper/buffy/.babelrc
--> /home/florin/go/src/github.com/dlsniper/buffy/package.json
--> /home/florin/go/src/github.com/dlsniper/buffy/public/assets/.keep
--> /home/florin/go/src/github.com/dlsniper/buffy/webpack.config.js
--> /home/florin/go/src/github.com/dlsniper/buffy/assets/css/application.scss
--> /home/florin/go/src/github.com/dlsniper/buffy/assets/images/favicon.ico
@dlsniper
dlsniper / cmd.sh
Last active Jun 7, 2018
small repo track all packages
View cmd.sh
#!/usr/bin/env bash
go get -u smallrepo.com/sml
GOPATH=/path/to/gopath sml track cloud.google.com/go collectd.org dmitri.shuralyov.com/app/changes dmitri.shuralyov.com/html/belt dmitri.shuralyov.com/route/github dmitri.shuralyov.com/scratch dmitri.shuralyov.com/service/change dmitri.shuralyov.com/state dmitri.shuralyov.com/website/gido git.apache.org/thrift.git github.com/AaronO/go-git-http github.com/AlekSi/pointer github.com/AndreasBriese/bbloom github.com/BurntSushi/toml github.com/DataDog/datadog-go github.com/Knetic/govaluate github.com/NYTimes/gziphandler github.com/PuerkitoBio/gocrawl github.com/PuerkitoBio/goquery github.com/PuerkitoBio/purell github.com/PuerkitoBio/urlesc github.com/RoaringBitmap/roaring github.com/Shopify/sarama github.com/TrueFurby/go-callvis github.com/Unknwon/cae github.com/VividCortex/gohistogram github.com/Yawning/chacha20 github.com/adtac/go-akismet github.com/afex/hystrix-go github.com/alcortesm/tgz github.com/alecthomas/chroma github.com/alecthomas/gometalinter github.com/
@dlsniper
dlsniper / Gopkg.lock
Last active Mar 26, 2018
dependency versions
View Gopkg.lock
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[[projects]]
name = "github.com/aws/aws-sdk-go"
packages = [
"aws",
"aws/awserr",
"aws/awsutil",
"aws/client",
View 23796.md

This proposal would lead to interfaces forcing structs as types to implement them, whereas today it's possible to have the implementation be a completely different type, like a func or a string, for example, see https://play.golang.org/p/irTsnlldaea as an example for this.

package main

import "fmt"

type (
	demo    func()
	hello   string
View log.txt
2018-02-21 22:07:56,562 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2018-02-21 22:07:56,719 [ 157] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-181.3870.7, 20 Feb 2018 14:56)
2018-02-21 22:07:56,719 [ 157] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2018-02-21 22:07:56,719 [ 157] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1136-b11 (JetBrains s.r.o)
2018-02-21 22:07:56,719 [ 157] INFO - #com.intellij.idea.Main - JVM: 25.152-b11 (OpenJDK 64-Bit Server VM)
2018-02-21 22:07:56,720 [ 158] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:MaxJavaStac
@dlsniper
dlsniper / gopath.txt
Created Feb 10, 2018
my GOPATH (windows)
View gopath.txt
florin@laptop [08:47:45 AM] [~/go/src]
-> % cloc .
322132 text files.
201053 unique files.
182638 files ignored.
github.com/AlDanial/cloc v 1.76 T=2901.86 s (48.8 files/s, 17833.0 lines/s)
----------------------------------------------------------------------------------------
Language files blank comment code
----------------------------------------------------------------------------------------
View gopath.txt
florin@laptop [05:40:58 PM] [~/go/src]
-> % cloc .
486610 text files.
238318 unique files.
312871 files ignored.
github.com/AlDanial/cloc v 1.75 T=819.77 s (215.7 files/s, 70829.6 lines/s)
----------------------------------------------------------------------------------------
Language files blank comment code
----------------------------------------------------------------------------------------
@dlsniper
dlsniper / Dockerfile
Last active Jun 27, 2018
Dockerfile to test your Go code with the latest version of Go 1.10
View Dockerfile
FROM golang:1.10beta2
ADD . /go/src/github.com/<user>/<repo>
WORKDIR /go/src/github.com/<user>/<repo>
RUN go test -coverpkg=all -coverprofile cover.out ./...
You can’t perform that action at this time.