Skip to content

Instantly share code, notes, and snippets.

View WolfangAukang's full-sized avatar
🇵🇸
GitHub fariĝis banala interkona retejo

P. WolfangAukang

🇵🇸
GitHub fariĝis banala interkona retejo
View GitHub Profile
@WolfangAukang
WolfangAukang / smartgit.desktop
Last active January 4, 2017 20:08 — forked from alefteris/smartgit.desktop
Smartgit desktop file working on GNOME3
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Name=Smartgit
Exec=env /opt/smartgit/bin/smartgit.sh
Icon=/opt/smartgit/bin/smartgit-64.png
@WolfangAukang
WolfangAukang / blum-algorithm.py
Created April 26, 2017 20:45
Code based on Manuel Blum's algorithm for memorizing passwords, using the Linotype standard.
#Blum's algorithm for memorizing passwords.
#Made by Pedro Rodríguez de Oliveira (WolfangAukang), 2015.
#Linotype ordered matrix, with the variant of the numeric digits
linotype = [['e','t','a','o','i','n'],['s','h','r','d','l','u'],['c','m','f','w','y','p'],['v','b','g','k','q','j'],['x','z','0','1','2','3'],['4','5','6','7','8','9']]
#String receptor
def blumcrypto(strToCode):
strToCode = [x.lower() for x in list(strToCode)]
print (blumcryptoEncr([x.lower() for x in list(strToCode)])) #We will work with lowercase letters
[Unit]
Description=Swaylock after suspension
After=suspend.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/lock-screen.sh
@WolfangAukang
WolfangAukang / keyindicator-nox
Created May 11, 2017 18:01
i3blocks extension that gets the indicated keyboard led status without using xset (useful for Sway, which uses Wayland)
#!/usr/bin/env python
from sys import argv
from evdev import InputDevice, ecodes
# usage: keystate-nonx [-h] [-i INPUT_DEVICE_CODE] [-oc OUTPUT_COLOR] [-ic INPUT_COLOR] [-b BLOCK_INSTANCE]
INSTANCE = "CAPS"
EVENT_NUMBER = "0"
COLOR_OFF = "#222222"
@WolfangAukang
WolfangAukang / netcat.py
Last active May 23, 2017 21:59
Black Hat Python book Netcat with Argparse
from argparse import ArgumentParser
import sys
import socket
import getopt
import threading
import subprocess
upload = False
def generate_argument_parser():

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@WolfangAukang
WolfangAukang / iis_logs_grok_pattern.conf
Created January 26, 2018 20:02
IIS Logs Grok Pattern
#Based on fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
#More info on https://stackify.com/how-to-interpret-iis-logs/
IISDATETIME %{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{HOUR}:%{MINUTE}:%{SECOND}
IISLOGS %{IISDATETIME:timestamp} (-|%{IP:server_ip}) (-|%{WORD:method}) (-|%{NOTSPACE:uri_stem}) (-|%{NOTSPACE:uri_query}) (-|%{NUMBER:server_port}) (-|%{WORD:service_name}) (-|%{IP:client_ip}) (-|%{NOTSPACE:agent}) (-|%{NOTSPACE:referrer}) (-|%{NUMBER:status}) (-|%{NUMBER:sub_status}) (-|%{NUMBER:win32_status}) (-|%{NUMBER:seconds_taken})
@WolfangAukang
WolfangAukang / alb_grok_pattern.txt
Created January 3, 2020 15:27
AWS Application Load Balancer Grok Pattern
%{NOTSPACE:protocol}%{SPACE}%{TIMESTAMP_ISO8601:date}%{SPACE}%{NOTSPACE:loadbalancer_id}%{SPACE}%{IP:client_ip}:%{NOTSPACE:client_port}%{SPACE}(-|%{IP:target_ip}:%{NOTSPACE:target_port})%{SPACE}%{NUMBER:request_processing_time}%{SPACE}%{NUMBER:target_processing_time}%{SPACE}%{NUMBER:response_processing_time}%{SPACE}%{NOTSPACE:elb_status_code}%{SPACE}(-|%{NOTSPACE:target_status_code})%{SPACE}%{NUMBER:received_bytes}%{SPACE}%{NUMBER:sent_bytes}%{SPACE}\"%{DATA:request}\"%{SPACE}\"%{DATA:user_agent}\"%{SPACE}(-|%{NOTSPACE:ssl_cipher})%{SPACE}(-|%{NOTSPACE:ssl_protocol})%{SPACE}%{NOTSPACE:target_group_arn}%{SPACE}\"%{DATA:trace_id}\"%{SPACE}\"(-|%{DATA:domain_name})\"%{SPACE}\"(-|%{DATA:chosen_cert_arn})\"%{SPACE}(-|%{NOTSPACE:matched_rule_priority})%{SPACE}%{TIMESTAMP_ISO8601:request_creation_time}%{SPACE}\"(-|%{DATA:actions_executed})\"%{SPACE}\"(-|%{DATA:redirect_url})\"%{SPACE}\"(-|%{DATA:error_reason})\"%{SPACE}\"(-|%{DATA:target_ip_lists})\"%{SPACE}\"%{NOTSPACE:target_status_code_list}\"
@WolfangAukang
WolfangAukang / COLEMAK_README.md
Last active March 30, 2023 17:04
US layout with the Colemak variant swapping Backspace with CapsLock.

Want to use Colemak with Backspace with Capslock on a Wayland system?

Yeah, I have grown frustrated in finding a way to get this running. I need CapsLock in my life.

Here you go, this script will work.

Just make a backup of the previous one (as superuser)

$ cp /usr/share/X11/xkb/symbols/us{,bak}
@WolfangAukang
WolfangAukang / docker-compose.yml
Last active October 28, 2020 13:31
Simplerisk Testing with Latest
version: '3.6'
services:
simplerisk:
environment:
- FIRST_TIME_SETUP=1
- FIRST_TIME_SETUP_PASS=rootpassword
- FIRST_TIME_SETUP_WAIT=10
- SIMPLERISK_DB_HOSTNAME=mariadb
image: wolfangaukang/simplerisk-minimal:latest