This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Pre-requisite | |
| ================== | |
| 1) Create an Environment (if you don't already have on) and enable it for your request | |
| 2) Add a new Header with key as "Authorization" and value as "{{hmacAuthHeader}}" | |
| 3) Add the following Pre-request Script that computes the hmacAuthHeader variable and adds it to the environment | |
| 4) Fill your CLIENT_KEY and SECRET_KEY with valid values | |
| */ | |
| function getPath(url) { | |
| var pathRegex = /.+?\:\/\/.+?(\/.+?)(?:#|\?|$)/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.
Install the following packages:
apt-get install -y strongswan xl2tpd
Configure strong swan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| If 2fa is enabled on github switch to ssh instead of https on linux | |
| 1. generate an ssh keypair on your linux box | |
| ssh-keygen -t {rsa|dsa} | |
| 2. add the public key to github: profile - settings - ssh keys | |
| 3. switch from https to ssh | |
| Check your repo remote: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # scala install | |
| wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
| sudo dpkg -i scala-2.11.7.deb | |
| # sbt installation | |
| echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 | |
| sudo apt-get update | |
| sudo apt-get install sbt |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.zuhlke.lsapi; | |
| import org.bouncycastle.crypto.PBEParametersGenerator; | |
| import org.bouncycastle.crypto.digests.SHA3Digest; | |
| import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator; | |
| import org.bouncycastle.crypto.params.KeyParameter; | |
| import org.bouncycastle.crypto.prng.DigestRandomGenerator; | |
| import java.util.Base64; |
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
Press minus + shift + s and return to chop/fold long lines!
NewerOlder