Skip to content

Instantly share code, notes, and snippets.

@PellePedro
PellePedro / protobuf
Created April 9, 2021 20:48
Building in Docker Container
FROM golang as build
# Build Arguments
ARG build
ARG version
# Install Dependencies
RUN apt-get update
RUN apt-get install -y git make curl unzip
@PellePedro
PellePedro / gist-reveal.it-slides.html
Created December 25, 2017 16:12 — forked from ryanj/gist-reveal.it-slides.html
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'>
<h2>Gist-Powered</h2>
<h1>Reveal.js</h1>
<h2>Slideshow Presentations</h2>
<br/>
<h1 class='fragment grow'><a style='color:deepskyblue;' href='http://gist-reveal.it'>gist-reveal.it</a></h1>
</section>
<section data-background-transition='zoom' data-transition='linear' id='try-it'>
<h2>Try it out!</h2>
<p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p>
@PellePedro
PellePedro / chat.go
Created August 16, 2016 16:26
simple golang chat server
package main
import (
"bufio"
"net"
)
type Client struct {
incoming chan string
outgoing chan string
@PellePedro
PellePedro / Base Setup
Last active April 30, 2018 18:26
Development Environment Setup
Alias for devops container
```
# Alias for .bashrc
eval "$(direnv hook bash)"
alias fdns='sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache'
alias dev='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/host pellepedro/devenv:latest bash'
alias godev='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/go/src/host pellepedro/devenv:latest bash'
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
@PellePedro
PellePedro / tcpdump & ngrep
Created September 20, 2013 16:44
tcpdump & ngrep
tcpdump advanced filters
========================
Sebastien Wains <sebastien -the at sign- wains -dot- be>
http://www.wains.be
$Id: tcpdump_advanced_filters.txt 36 2013-06-16 13:05:04Z sw $
Notes :
@PellePedro
PellePedro / IntelliJ Shortcuts
Last active December 22, 2015 10:58
IDE: IntelliJ Shortcuts
IntelliJ Shortcuts
https://github.com/thatha/IntelliJ-IDEA-Eclipse-on-Mac-Keymap/blob/master/Eclipse%20on%20Mac.xml
Ctrl + o Override Method
# F12 Show Methods in File
Alt Enter Quick fix
Alt Shift u/d Move selection
@PellePedro
PellePedro / Git Goodies
Last active December 22, 2015 10:38
System: Git Hints
Free Git client for OSX and Win
--------------------------------
http://www.sourcetreeapp.com/
Videos
--------------------------------
The Fringes of Git: https://www.youtube.com/watch?v=qh-R0-7Ii_U
Git From the Bits Up http://www.youtube.com/watch?v=MYP56QJpDr4
Advanced Git: Graphs, Hashes, and Compression, Oh My! https://www.youtube.com/watch?v=ig5E8CcdM9g