Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
system=$(lsb_release --description)
system_name=$(lsb_release --id --short)
system_version=$(lsb_release --release --short)
system_main_version=${system_version%%.*}
is_debian=false
is_ubuntu=false
is_mint=false
@ChaosEngine
ChaosEngine / Samsung_SCX-3400_Series.ppd
Created September 2, 2018 11:13
Samsung SCX-3405W Cups PPD file
*PPD-Adobe: "4.3"
*%%%% PPD file for SCX-3200 with CUPS.
*%%%% Created by the CUPS PPD Compiler CUPS v1.5.0.
*FormatVersion: "4.3"
*FileVersion: "2.0.0"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "scx3200.ppd"
*Product: "(SCX-3200)"
*Manufacturer: "Samsung"
@christopher-talke
christopher-talke / deploy.sh
Last active June 17, 2025 00:44
Docker Deployment via Remote SSH
#!/bin/bash
# Basic Script to Automate Docker Deployment
# - Details for how this script works, see here:
# - https://gist.github.com/christopher-talke/11c655de511dd799a1d9c3cf156e7a94#gistcomment-2935112
# Created By: christopher.talke <[email protected]>
##### VARIABLES SECTION #####
@alexchiri
alexchiri / get-started-with-kind-in-wsl2-installation-instructions.md
Last active January 11, 2025 20:50
Get started with kind in WSL2 - installation instructions
@daehahn
daehahn / wsl2-network.ps1
Last active August 15, 2025 17:52
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@yebyen
yebyen / argo-setup.sh
Last active June 13, 2023 13:23
ArgoCD with Ingress, ingress-nginx, on KiND
#!/bin/bash
# from https://argoproj.github.io/argo-cd/getting_started/
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
cat <<EOF | kubectl apply -f -
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
@derjohn
derjohn / update-huawei-matebook-firmware-linux.md
Last active July 19, 2025 16:18
Update your Huawei Matebook Pro X (and others) from the Linux shell with fwupd

Huawei Matebook BIOS update with Linux

Tested with Huawei Matebook X Pro (MACH-WX9) This is more or less a step by step tutorial, written 02/2021. Sadly at the moment Huawei does not ship a package in Linux Vendor Firmware Service.

WARNING

Please note that you can damage ("brick") your device if something goes wrong or is done incorrectly. This is for the advanced user! I can only say that I flashed the new firmware 0.1.33 to my MACH-WX9 successfully.

Original docs

dennemann.blog THX!!!

@rafi
rafi / k3d-keycloak.md
Last active May 25, 2025 19:16
Keycloak and oauth2-proxy using k3d & ngrok:

K3d and Keycloak

Prerequisites

Ensure docker, k3d and ngrok are installed.

brew update
brew install --cask docker ngrok
brew install k3d
@sn0wcat
sn0wcat / project.md
Last active August 13, 2024 15:22
How to run dapr with NX

How to run dapr with nx

if you want to run a microservice in nx workspace with dapr, rename the serve target to e.g. x-serve target and use nx:run-commands executor to run dapr with the parameter yarn nx run yourproject-name:serve

Here is an example for project called timeline-microservice:

 "x-serve": {
 "executor": "@nrwl/js:node",