Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Tobias Jonas jona7o

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

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 Apr 18, 2021
covid19-widget
View covid19-widget.js
// 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 Dec 17, 2019
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
View whatsapp_phone_enumerator_floated_div.js
/****** 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 Mar 18, 2019
helm service account k8s
View helm-sa.yaml
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 Feb 22, 2019
Bash script for the following cognito workflow: Sign Up User with Username and Mail --> Confirm User --> Login User --> Print Access Token
View initCognitoUser.sh
#!/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 Sep 18, 2018
~/.gitconfig go next/prev in git
View .gitconfig
[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 Sep 19, 2018
Pull all git repositorys under a base bath
View pull-all.sh
#!/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
View MB_Color.itermcolors
<?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 Oct 8, 2017 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@jona7o
jona7o / index.html
Last active Sep 5, 2017 — forked from sasso/index.html
GraphiQL with JWT
View index.html
<!--
* 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.