Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanu561993 committed Jun 8, 2020
0 parents commit 79ea205
Show file tree
Hide file tree
Showing 126 changed files with 6,215 additions and 0 deletions.
Binary file added .vs/SharpChisel/v16/.suo
Binary file not shown.
33 changes: 33 additions & 0 deletions Go/chisel-32/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

*.swp
.idea/
chisel
bin/
release/
*.orig
debug

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
3 changes: 3 additions & 0 deletions Go/chisel-32/COMMANDS_TO_COMPILE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set GOARCH=386
set CGO_ENABLED=1
go build --buildmode=c-shared -ldflags="-s -w" -o main.dll main.go
17 changes: 17 additions & 0 deletions Go/chisel-32/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# build stage
FROM golang:alpine AS build-env
LABEL maintainer="[email protected]"
RUN apk update
RUN apk add git
ENV CGO_ENABLED 0
ADD . /src
WORKDIR /src
RUN go build \
-ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(git describe --abbrev=0 --tags)" \
-o chisel
# container stage
FROM alpine
RUN apk update && apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=build-env /src/chisel /app/chisel
ENTRYPOINT ["/app/chisel"]
21 changes: 21 additions & 0 deletions Go/chisel-32/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Jaime Pillora <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 79ea205

Please sign in to comment.