Skip to content

Instantly share code, notes, and snippets.


Christopher Svanefalk csvan

View GitHub Profile
gerbsen /
Last active Nov 16, 2020 — forked from schaary/
Auto-launching ssh-agent in fish shell
# content has to be in .config/fish/
# if it does not exist, create the file
setenv SSH_ENV $HOME/.ssh/environment
function start_agent
echo "Initializing new SSH agent ..."
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
echo "succeeded"
chmod 600 $SSH_ENV
. $SSH_ENV > /dev/null
justinmc / anchor_smooth_scroll.js
Last active May 14, 2019
Anchor Smooth Scroll - Angular Directive
View anchor_smooth_scroll.js
* Anchor Smooth Scroll - Smooth scroll to the given anchor on click
* adapted from this stackoverflow answer:
angular.module('yourapp').directive('anchorSmoothScroll', function($location) {
'use strict';
return {
restrict: 'A',
replace: false,
thomasfr /
Last active Oct 29, 2020
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
# Allow connections to this package servers
mschmulen /
Last active Jul 17, 2017 — forked from anonymous/
LoopBack cheat sheet. git clone LoopBackCheatSheet

#LoopBack cheat sheet


LoopBack from api-example

Instantiate the sls-sample-app

slc example
cd sls-sample-app
slc install
You can’t perform that action at this time.