Skip to content

Instantly share code, notes, and snippets.

View protortyp's full-sized avatar
🚀

Christian Engel protortyp

🚀
  • Boston / Munich
  • 03:03 (UTC +02:00)
View GitHub Profile
@protortyp
protortyp / syslinks.md
Created January 23, 2020 22:14
Systemsicherheit Präsentation Links
@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 / 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 / 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" },
#!/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 / 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,
@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