Skip to content

Instantly share code, notes, and snippets.

@weiserr
weiserr / index.html
Created January 21, 2017 21:01 — forked from nolanlawson/index.html
Put and fetch a cat icon
<html>
<body>
<pre id="display"></pre>
<script src="//cdn.jsdelivr.net/pouchdb/latest/pouchdb.min.js"></script>
<script src="index.js"></script>
</body>
</html>
@weiserr
weiserr / application.yml
Last active August 7, 2022 12:04
Let's Encrypt on Ubuntu for Spring-Boot applications
server:
port: 8443
ssl:
# this should match with the used ${DEST}
key-store: file:./keystore.p12
key-store-password: password
keyStoreType: PKCS12
keyAlias: tomcat
@weiserr
weiserr / gistColaboration.md
Created October 10, 2016 15:44 — forked from maglietti/gistColaboration.md
How to collaborate on a gist

To colaborate on a gist:

  1. Clone your gist repo locally
  2. Add your friend’s fork as a remote e.g. if your friend is named Cindy: git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310
  3. Fetch your friend’s commits: git fetch cindy/master
  4. Merge your friend’s changes into your repo: git merge cindy/master
  5. Push the changes back to GitHub: git push origin/master
@weiserr
weiserr / gitignore2svnignore.sh
Created October 10, 2016 12:13 — forked from iegik/gitignore2svnignore.sh
Oneliner to convert svn:ignore into .gitignore
#!/bin/bash
cat .gitignore | sed 's/^/\.\//g;s/\(.*\)\/\([0-9a-zA-Z\*\?\.]*\)$/svn propedit svn:ignore "\2" \1 /mg' | bash
@weiserr
weiserr / colorized_maven.sh
Created February 10, 2016 09:41
Colorized Maven Output
# Wrapper function for Maven's mvn command.
mvn-color()
{
# Formatting constants
BOLD=$(echo -e "\e[1m")
TEXT_RED=$(echo -e "\e[31m")
TEXT_GREEN=$(echo -e "\e[32m")
TEXT_YELLOW=$(echo -e "\e[33m")
TEXT_BLUE=$(echo -e "\e[34m")
RESET_FORMATTING=$(echo -e "\e[0m")
@weiserr
weiserr / README.md
Last active June 22, 2024 13:17
Postfinance YNAB Export

PostFinance YNAB 4 Export

This scripts allows the export of PostFinance account flow data for YNAB 4 using Tampermonkey. The export is not based on the CSV generated by the Post as it does not adhere to the standard but makes use of the data loaded on the client side for doing said CSV export.

Installation

If Tampermonkey is installed you can click on the RAW view of the postfinance-ynab.user.js file of this Gist. Tampermonkey should ask you whether or not you would like to install this script.

Usage

@weiserr
weiserr / get-mails.sh
Last active September 19, 2016 15:06
Aquire Atlassian Stash user E-Mail addresses
curl -u $user:$password -X GET -H "Accept: application/json" -H "Content-Type: application/json" "http://$stashurl/rest/api/1.0/admin/users?limit=500" | sed 's/\}/\n/g' | grep emailAddress | sed 's/.*emailAddress\":\"//' | sed 's/",\"id\".*//' | grep . | sort -fu