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 / configuration.nix
Created March 24, 2022 21:53
Postfix setup for Amazon SES on NixOS
{ modulesPath, pkgs, ... }: {
# AWS Defaults
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ];
ec2.hvm = true;
# Server
networking.hostName = "nixos-testing";
boot.cleanTmpDir = true;
@WolfangAukang
WolfangAukang / README.md
Created February 11, 2022 21:20
Using custom kernels in Jupyter through Nix

Using custom kernels in Jupyter through Nix

Notes

  • Verify the kernel you are using has a ${path}/share/jupyter path, so it can be recognized by the command jupyter kernelspec list
  • Run nix-shell, and if everything is successful, check if the kernels are listed
@WolfangAukang
WolfangAukang / default.nix
Created January 24, 2022 13:35
Abricotine default file
{ stdenv, lib, fetchurl, copyDesktopItems, makeDesktopItem, makeWrapper
, writeShellScriptBin, electron }:
let
# This script is mandatory to make this application work
# without user intervention. The reasoning is specified below:
# https://github.com/NixOS/nixpkgs/issues/148152#issuecomment-983773905
exec_script = writeShellScriptBin "exec_script" ''
set -euo pipefail
@WolfangAukang
WolfangAukang / default.nix
Created October 23, 2021 23:44
Indigenous Desktop for Nix
{ stdenv, lib, fetchurl, unzip, makeDesktopItem, copyDesktopItems, makeWrapper, autoPatchelfHook,
alsa-lib, gtk3, libXdamage, libXScrnSaver, libXtst, nss }:
let
app_icon = fetchurl {
url = "https://indigenous.realize.be/themes/custom/indigenous_theme/logo.png";
sha256 = "sha256-j5As+yv/O7iADSzyS4rSe0/LSzok08urzFZVUQRywSI=";
};
in stdenv.mkDerivation rec {
@WolfangAukang
WolfangAukang / docker-compose-4.2.yml
Last active June 16, 2022 22:15
Selenium Grid on Docker Compose
version: "3.6"
services:
hub:
image: selenium/hub:4.2.2
environment:
GRID_MAX_SESSION: 16
GRID_BROWSER_TIMEOUT: 3000
GRID_TIMEOUT: 3000
networks:
@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
@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 / 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 / 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})

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: