Skip to content

Instantly share code, notes, and snippets.

View dezren39's full-sized avatar
🕵️‍♂️
Processing..

Drewry Pope dezren39

🕵️‍♂️
Processing..
View GitHub Profile
@dezren39
dezren39 / window.location.href
Created October 16, 2022 11:49 — forked from cazepeda-zz/window.location.href
Bookmarklet to append a string to the end of a URL
window.location.href
====================
Bookmarklet to append a string to the end of the URL.
1. Create bookmark.
2. Edit bookmark URL(Chrome) / Location(Firefox) to include this code: javascript:window.location.href=window.location.href+'REPLACETHIS';
3. Now make use of that bookmarklet.
@dezren39
dezren39 / consul-firewalld.md
Created August 11, 2022 21:57 — forked from mbillow/consul-firewalld.md
Consul FirewallD Service Definition

Consul FirewallD Service Definition

A simple service definition for Consul agents; meant to simplify the installation process of Consul.

This is based on the information provided by Hashicorp in the Consul Docs.

Installation

  1. Download the XML file:
  • Either wget {raw_url} consul.xml
@dezren39
dezren39 / README.md
Created June 24, 2022 21:54 — forked from bernardomig/README.md
Setup podman and nvidia-container-runtime

How to setup nvidia-container-runtime and podman/runc

Podman is such a cool project! However, there is no easy way to setup the nvidia-container-runtime and podman so that we can run unprivileged container in a gpu host. This is specially interesting in environments with multiple people accessing the same host (strong isolation between containers!!!).

Steps to setup the whole system

  1. Install podman and friends (buildah and skopeo)

Ubuntu: add-apt-repository -y ppa:projectatomic/ppa && apt install podman buildah skopeo

@dezren39
dezren39 / README.md
Created June 15, 2022 18:34 — forked from eddiejaoude/README.md
Install Firefox addon/extension with no user interaction
@dezren39
dezren39 / README.md
Created June 15, 2022 18:33 — forked from skynode/README.md
Install Firefox addon/extension with no user interaction
import base64
import hashlib
from Crypto import Random
from Crypto.Cypher import AES
import sys
if len(sys.argv) != 4:
print: ("Usage: simple_decrypt <Plaintext-KMS-DEK> <IV> <Encrypted-BAK-filename>")
sys.exit(1)
$Path = $env:TEMP
$Installer = "chrome_installer.exe"
Invoke-WebRequest "https://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile $Path$Installer
Start-Process -FilePath $Path$Installer -Args "/silent /install" -Verb RunAs -Wait
Remove-Item $Path$Installer
@dezren39
dezren39 / README.md
Created May 14, 2022 04:59 — forked from matthewpi/README.md
NixOS on Fedora

NixOS on Fedora

Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.

These steps may not be required if NixOS/nix#2374 is resolved.

SELinux

These commands are required for both Fedora Workstation and Fedora Silverblue

gist:adasdas
git:(full-url)dezren39/rom:asdadas
https://<full-url>
@dezren39/rom:asdasda
asdadasd
read
take fleeting notes
make permanent notes
nightly
observe fleeting notes
make connections to existing zk
rewrite for permanent format with links & context
frequently work with slipbox
read over slipbox