Skip to content

Instantly share code, notes, and snippets.

View protortyp's full-sized avatar
🚀

Christian Engel protortyp

🚀
  • Boston / Munich
  • 09:52 (UTC +02:00)
View GitHub Profile
@protortyp
protortyp / extensions.txt
Created July 16, 2019 19:43
Studio Code Extensions
aaron-bond.better-comments
ahmadawais.shades-of-purple
azaugg.vscode-python-docstring
bierner.emojisense
bierner.markdown-preview-github-styles
bungcip.better-toml
burkeholland.simple-react-snippets
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
CoenraadS.bracket-pair-colorizer
@protortyp
protortyp / caesar.py
Created October 12, 2019 16:27
Caesar Cipher in Python
#!/usr/bin/python
import sys
import optparse
dic = {
"a": ord("a") - 97,
"b": ord("b") - 97,
"c": ord("c") - 97,
"d": ord("d") - 97,
"e": ord("e") - 97,
#!/usr/bin/env python
import sys
import optparse
"""polybius.py: Encrypt and decrypt using the polybius cipher with a 6 by 6 key matrix."""
__author__ = "Christian Engel"
__license__ = "MIT"
__version__ = "1.0.0"
__maintainer__ = "Christian Engel"
@protortyp
protortyp / Code shortcuts
Created December 8, 2019 16:27
Studio Code keyboard shortcuts
// Override key bindings by placing them into your key bindings file.
[
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
"when": "inZenMode" },
{ "key": "shift+escape", "command": "closeReferenceSearchEditor",
"when": "inReferenceSearchEditor && !config.editor.stablePeek" },
{ "key": "escape", "command": "closeReferenceSearchEditor",
"when": "inReferenceSearchEditor && !config.editor.stablePeek" },
{ "key": "shift+escape", "command": "cancelSelection",
"when": "editorHasSelection && textInputFocus" },
@protortyp
protortyp / engel-pubkey.asc
Created December 21, 2019 17:23
My public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEXYpxrhYJKwYBBAHaRw8BAQdAhP7AdNuAGpW/V6khi+ju+bdLOysjVNOPnGpr
s05ZAOW0L0NocmlzdGlhbiBFbmdlbCA8ZW5nZWwuY2hyaXN0aWFuMTk5NEBnbWFp
bC5jb20+iJYEExYIAD4WIQQKKb7aMzFxPc8whPaTkVFyxy3kFwUCXYpxrgIbAwUJ
B4TOAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCTkVFyxy3kFxE1AQDjARbs
1CQ0zt6fhpjM3sWkTeywwbre58oY7eOzllScqwEAsrbspo8Yb/yqzPLlHn77y0xS
REpWMlpmfu2vcZJFjwm4OARdinGuEgorBgEEAZdVAQUBAQdAoveJeN5E1uwo+X9O
Ppg2CGZk2jOOFJ/m2aLolxEqDnoDAQgHiH4EGBYIACYWIQQKKb7aMzFxPc8whPaT
kVFyxy3kFwUCXYpxrgIbDAUJB4TOAAAKCRCTkVFyxy3kF+lZAP0Ugxtg2llAnkiZ
@protortyp
protortyp / getPubKey.js
Last active October 25, 2023 18:33
Attempting to get the public key
const ethers = require("ethers")
const pk =
"0x0471c746523d16e93d4738f882d9b0beebf66c68caa0f895db15686b57b878cfc7b3e09813ba94f1bbfaa91a06566d3d18bbf69d10bcc947325bbcd6fea97ed692"
const ad = "0xcD3edF915387E2555A829567cE0dBbC919834B82"
getPubKey = async () => {
const infuraProvider = new ethers.providers.JsonRpcProvider(
"https://ropsten.infura.io/v3/<projectID>"
)
@protortyp
protortyp / syslinks.md
Created January 23, 2020 22:14
Systemsicherheit Präsentation Links
@protortyp
protortyp / termux.properties
Created March 4, 2020 21:45
My top key configuration for the termux app
extra-keys = [ \
['ESC', 'TAB', 'HOME', 'END', 'UP', 'PGUP', 'PGDN', '/', '-'], \
['CTRL', 'ALT', '~', 'LEFT', 'DOWN', 'RIGHT', '*', '|', './'] \
]
@protortyp
protortyp / settings.json
Created March 5, 2020 09:21
VSCode Settings
{
"codesnap.transparentBackground": true,
"codesnap.boxShadow": "rgba(0, 0, 0, 0.1) 0px 4px 2px",
"html.suggest.html5": true,
"breadcrumbs.enabled": true,
"doxdocgen.cpp.tparamTemplate": "\\param}",
"doxdocgen.file.fileTemplate": "\\file",
"editor.cursorBlinking": "phase",
"editor.cursorSmoothCaretAnimation": true,
"editor.fontFamily": "Fira Code",
@protortyp
protortyp / gas
Last active January 7, 2021 07:12
Super simple ethereum gas price script
#!/bin/bash
URL1="https://ethgasstation.info/api/ethgasAPI.json"
URL2="https://www.gasnow.org/api/v1/gas/price"
# gas stuff
RES1=$(curl -s $URL1)
RES2=$(curl -k -s $URL2)
fastest1=$(echo $RES1 | jq ".fastest")