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 / 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 / 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 / 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 / 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 / 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 / binary-paths.patch
Last active May 9, 2022 15:56
Patch to enable test `protonvpn-nm-lib`. Currently, it fails because it needs to use DBus and can't be found in Nix sandbox. Credits to @NKJe for providing the patches at https://github.com/NixOS/nixpkgs/pull/129333
--- a/protonvpn_nm_lib/core/subprocess_wrapper.py
+++ b/protonvpn_nm_lib/core/subprocess_wrapper.py
@@ -44,11 +44,9 @@
binary_short_name => full secure path.
"""
# Look for root-owned directories in the system path in order
- for path in os.environ.get('PATH', '').split(os.path.pathsep):
+ for path in "@path@".split(os.path.pathsep):
if not os.path.isdir(path):
continue
@WolfangAukang
WolfangAukang / README.md
Created September 28, 2022 17:42
flake.nix for AWS SMTP script

This is a simple flake.nix for the SMTP key generator.

Steps: 1- Grab the Python script from here. Name it as main.py. 2- Set the secret key with SECRET_KEY=”insert_secret_key”. 3- Set the region with REGION=region-code-# (us-east-1, ca-central-1, etc…). 3- Run nix run .# -- $SECRET_KEY $REGION.

@WolfangAukang
WolfangAukang / flake.nix
Last active October 5, 2022 13:06
How to use Dhall through Flakes (Nix)
{
description = "Dhall example";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
@WolfangAukang
WolfangAukang / flake.nix
Last active August 9, 2023 17:03
How to use Jupyter playbooks through Flakes (Nix)
{
description = "Jupyter playbook example";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
@WolfangAukang
WolfangAukang / whitelist.yaml
Created May 6, 2023 14:17
clair-scanner Whitelist File Example
images:
simplerisk/simplerisk-minimal:
CVE-2019-19814: Debian kernel not solved yet