Skip to content

Instantly share code, notes, and snippets.

View jona7o's full-sized avatar
🎯
Focusing

Tobias Jonas jona7o

🎯
Focusing
View GitHub Profile
@jona7o
jona7o / gist:d2328ec40e206cd8cfac4fb5661c5419
Created December 2, 2020 17:11 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@jona7o
jona7o / covid19-widget.js
Last active April 18, 2021 04:16
covid19-widget
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
// Define URLs based on the corona.rki.de webpage
const newCasesApiUrl = `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_COVID19/FeatureServer/0/query?f=json&where=NeuerFall%20IN(1%2C%20-1)&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&outStatistics=%5B%7B%22statisticType%22%3A%22sum%22%2C%22onStatisticField%22%3A%22AnzahlFall%22%2C%22outStatisticFieldName%22%3A%22value%22%7D%5D&resultType=standard&cacheHint=true`;
const incidenceUrl = (location) =>
`https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,cases7_per_100k&geometry=${location.longitude.toFixed(
3
)}%2C${location.latitude.toFixed(
3
)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`;
@jona7o
jona7o / whatsapp_phone_enumerator_floated_div.js
Created December 17, 2019 19:58
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/****** I've created a Chrome extension from this script, take a look at https://github.com/LoranKloeze/WhatsAllApp ********/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
/******************** Keep in mind: this script is frozen. Check the url mentioned above. **********************************/
// Was this script of any use for you? Please consider a donation. It has taken me a lot of time to figure this
@jona7o
jona7o / helm-sa.yaml
Created March 18, 2019 13:28
helm service account k8s
apiVersion: v1
kind: ServiceAccount
metadata:
name: helm
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: helm
@jona7o
jona7o / initCognitoUser.sh
Created February 22, 2019 18:10
Bash script for the following cognito workflow: Sign Up User with Username and Mail --> Confirm User --> Login User --> Print Access Token
#!/bin/bash
debug=0
if [[ $# -eq 0 ]] ; then
echo 'usage: initCognitoUser [parameters]'
echo 'paramters:'
echo '-c --clientId: Cognito ClientId'
echo '-i --poolId: Cognito UserPoolId'
echo '-u --username: Username of new User'
echo '-p --password: Password of new User'
@jona7o
jona7o / .gitconfig
Last active September 18, 2018 18:20
~/.gitconfig go next/prev in git
[alias]
prev = checkout HEAD^1 --force
next = "!sh -c 'git log --reverse --pretty=%H master | awk \"/$(git rev-parse HEAD)/{getline;print}\" | xargs git checkout --force'"
@jona7o
jona7o / pull-all.sh
Last active September 19, 2018 10:32
Pull all git repositorys under a base bath
#!/bin/bash
# visit us @ innFactory.de
CUR_DIR=$(pwd)
GREEN='\033[0;32m'
NC='\033[0m'
echo "Pulling latest changes for all repositories..."
echo $CUR_DIR
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.19502738118171692</real>
@jona7o
jona7o / iterm2-solarized.md
Created October 8, 2017 15:35 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@jona7o
jona7o / index.html
Last active September 5, 2017 22:21 — forked from iamsaso/index.html
GraphiQL with JWT
<!--
* LICENSE AGREEMENT For GraphiQL software
*
* Facebook, Inc. (“Facebook”) owns all right, title and interest, including all
* intellectual property and other proprietary rights, in and to the GraphiQL
* software. Subject to your compliance with these terms, you are hereby granted a
* non-exclusive, worldwide, royalty-free copyright license to (1) use and copy the
* GraphiQL software; and (2) reproduce and distribute the GraphiQL software as
* part of your own software (“Your Software”). Facebook reserves all rights not
* expressly granted to you in this license agreement.