Skip to content

Instantly share code, notes, and snippets.

View jedna's full-sized avatar

Jan Hrubes jedna

View GitHub Profile
@jedna
jedna / entrypoint.sh
Created August 3, 2020 08:52
Simple bash live reload for Go
#!/bin/bash
SERVER=/go/bin/api
# create directory for Delve logs, we use it to know that Delve
# debugger is running
mkdir -p /tmp/dlv_log
runServer() {
echo Running server
@jedna
jedna / .zshrc
Last active July 4, 2017 19:57
Git aliases
alias pull="git pull"
alias push="git push"
alias co="git checkout"
alias com="git commit -m"
alias fetch="git fetch"
alias st="git status"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
alias unstage="git reset HEAD --"
@jedna
jedna / laracast-theme.icls
Created February 17, 2017 07:08 — forked from gaejabong/laracast-theme.icls
Laracast theme updated
<scheme name="laracasts-theme-updated" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.7" />
<option name="EDITOR_FONT_SIZE" value="15" />
<option name="CONSOLE_FONT_NAME" value="Menlo" />
<option name="CONSOLE_FONT_SIZE" value="10" />
<option name="CONSOLE_LINE_SPACING" value="1.4" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<colors>
<option name="ADDED_LINES_COLOR" value="292d38" />
<option name="ANNOTATIONS_COLOR" value="8b999f" />
@jedna
jedna / track.js
Created February 17, 2017 06:58
Track outbound links with Google Universal Analytics.js
<script type="text/javascript">
function _gaLt(event) {
/* If GA is blocked or not loaded, or not main|middle|touch click then don't track */
if (!ga.hasOwnProperty("loaded") || ga.loaded != true || (event.which != 1 && event.which != 2)) {
return;
}
var el = event.srcElement || event.target;
@jedna
jedna / osx-10.11-setup.md
Created October 14, 2015 07:42 — forked from kevinelliott/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

@jedna
jedna / gist:3889135
Last active February 17, 2017 07:10 — forked from fprochazka/gist:3644347
Texy parser for wiki page on nette.org
<?php
/**
* Texy parser for wiki page.
*/
class Parser extends Nette\Object
{
/**
* @return void