Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kisst on github.
  • I am kisst (https://keybase.io/kisst) on keybase.
  • I have a public key ASCcc4fTskxRF4R44DsiNx_hV2GJkRwboTsgUcZ7_QBlsgo

To claim this, I am signing this object:

á = a'
é = e'
í = i'
ó = o'
ö = o"
ő = =o
ú = u'
ü = u"
ű = =u
@kisst
kisst / vpn.md
Created October 24, 2018 12:28
VPN tunnel object
> [What's what section]
{ %string } => just some string
{ option1, option2 } => one of the listed
{ %seconds } => time in seconds
{ %number } => just some number
?{ %value } => optional value, depends on something else
!{ %value } => MUST provide data
{ %ip } => IP adress
{ %net } => Subnet in a form like 192.168.0.0/24
@kisst
kisst / init.vim
Created April 29, 2019 18:58
neovim
" Start
""" --------------
set bs=2 mouse=a shortmess=atI
set autoread autoindent number ruler hidden autochdir cursorline
set smartindent incsearch nowrapscan ignorecase smartcase
set fdm=marker
syntax on
syntax enable
@kisst
kisst / lambda-offload.py
Created August 3, 2019 15:47
Medium ...
import lambdalayer.mymodule
def lambda_handler(event, context)
mymodule.offloadedcode(event, context)
@kisst
kisst / usbg
Last active October 2, 2022 00:54
usbguard "gui"
#!/usr/bin/env python
import os
import re
import sys
DEVICE_LIST_RE = r"(\d{1,3}):\s(allow|block)\sid\s([0-9abcdef]{4}:[0-9abcdef]{4})\sserial\s\"(.*)\"\sname\s\"(.*)\"\shash\s\"([a-zA-Z0-9=+\/]{44})\"\sparent-hash\s\"([a-zA-Z0-9=+\/]{44})\"\svia-port\s\"(.{1,8})\"\swith-interface\s([^\"]*)\s\"(.*)\""
stream = os.popen('usbguard list-devices')
list = stream.read().strip().splitlines()
@kisst
kisst / aws_region_check.py
Created March 24, 2021 11:07
Recover the old view in the regional supported service table
#!/usr/bin/env python3
"""
The missing function for AWS region support
"""
from collections import defaultdict
import requests
import pandas as pd
list_of_regions = []
list_of_services = []
@kisst
kisst / code.py
Created August 24, 2021 10:21
rpi pico circuitpython demo
import board
import digitalio
import time
led = digitalio.DigitalInOut(board.GP25)
led.direction = digitalio.Direction.OUTPUT
def blink(count=1, delay=0.5):
for cv in range(count):
led.value = True
@kisst
kisst / im.list
Created October 23, 2021 13:51
active IM solutions
aim
band
bbmenterprise
bitmessage
cryptocat
discord
facebookmessanger
facetime
firechat
gadugadu
@kisst
kisst / typeit.py
Last active October 3, 2022 13:14
One directional VDI proof "copy/paste"
#!/usr/bin/env python3
"""
Type the content of the file given in parameter
"""
import time
import sys
import pyautogui
# validate that we have something to type
if not len(sys.argv) == 2: