This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "my home-manager flake"; | |
inputs = { | |
home-manager = { | |
url = "github:nix-community/home-manager/release-24.05"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
flake-utils.url = "github:numtide/flake-utils"; | |
zen-browser.url = "github:heywoodlh/flakes?dir=zen-browser"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# credit: https://askubuntu.com/a/1475182 | |
# invoke with: | |
# curl -L https://gist.githubusercontent.com/heywoodlh/b55eb33e248db2b8a7625c1fddc6b8d3/raw/ce517a862ae4b4dd0c7a60912df22c5bcb10d736/setup-clevis.sh -o /tmp/setup-clevis.sh | |
# sudo bash /tmp/setup-clevis.sh /dev/sda3 | |
disk="$1" | |
[[ ! -n "${disk}" ]] && echo "Usage: $0 /dev/sda3" && exit 1 | |
[[ -n "${disk}" ]] && [[ ! -e "${disk}" ]] && echo "Disk ${disk} does not exist. Exiting." && exit 1 | |
#install needed packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use flake | |
lefthook install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This Script is intended to be used for Querying remaining time and resetting Terminal Server (RDS) Grace Licensing Period to Default 120 Days. | |
## Developed by Prakash Kumar (prakash82x@gmail.com) May 28th 2016 | |
## www.adminthing.blogspot.com | |
## Disclaimer: Please test this script in your test environment before executing on any production server. | |
## Author will not be responsible for any misuse/damage caused by using it. | |
Clear-Host | |
$ErrorActionPreference = "SilentlyContinue" | |
## Display current Status of remaining days from Grace period. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "example nixos flake"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
home-manager = { | |
url = "github:nix-community/home-manager"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The arsenal, armory & library by Maderas (@hackermaderas, #CyberpunkisNow) 6/8/2019 | |
Original / 1st version here: https://pastebin.com/rMw4WbhX | |
___________________________________________________________________________________ | |
# Basic knowledge requirements for Red Teaming, PenTesting, Hacking & Cybersecurity | |
# These are the basic competencies expected (and tested for during the in-person technical interview) by one of the largest, most visible InfoSec companies # on Earth. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install F-Droid | |
if adb shell pm list packages | grep -q org.fdroid.fdroid | |
then | |
echo 'F-Droid already installed, skipping.' | |
else | |
echo 'Installing F-Droid.' | |
curl -o /tmp/F-Droid.apk https://f-droid.org/F-Droid.apk | |
adb install /tmp/F-Droid.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Socket address to listen on | |
listen = "[::]:8080" | |
# Allowed `Host` headers | |
# | |
# This _must_ be configured for production use. If unconfigured or the | |
# list is empty, all `Host` headers are allowed. | |
allowed-hosts = [] | |
# The canonical API endpoint of this server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, home-manager, nur, mullvad-browser-home-manager, ... }: | |
let | |
system = pkgs.system; | |
browser = if system == "aarch64-linux" then "firefox" else "mullvad-browser"; | |
noproxies = "localhost,127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10,.ts.net"; | |
socksProxy = "some-socks-proxy.example.ts.net"; | |
socksPort = 1080; | |
browser-settings = if browser == "mullvad-browser" then { | |
"browser.compactmode.show" = true; # enable compact bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: second | |
namespace: default | |
labels: | |
app.kubernetes.io/name: second | |
app.kubernetes.io/instance: second | |
spec: |
NewerOlder