Skip to content

Instantly share code, notes, and snippets.

View lauborges's full-sized avatar
💭
I may be slow to respond.

Lau Borges lauborges

💭
I may be slow to respond.
View GitHub Profile
@gagarine
gagarine / win11-mouse-scroll-reverse.md
Last active November 2, 2024 07:23
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
---
version: '3.4'
services:
postgresql:
image: docker.io/library/postgres:12-alpine
restart: unless-stopped
network_mode: host
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]

Authentik Installation with Helm

  • postrges, redis 이미지는 bitnami 를 이용하기 때문에 arm 환경에서는 사용 불가

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • pwgen package (apt-get install pwgen)
  • geoIP Account

SECRET KEY

@anirban94chakraborty
anirban94chakraborty / tensorflow-gpu-in-jupyter-lab.md
Last active February 12, 2024 16:38
Install Tensorflow-GPU (for NVIDIA GPUs) for use in JupyterLab using Anaconda

Install Tensorflow-GPU (for NVIDIA GPUs) for use in JupyterLab using Anaconda

This tutorial is for computers with NVIDIA GPUs installed.

Tensorflow for GPU significantly reduces the time taken by Deep Neural Networks (like CNNs, LSTMs, etc) to complete each Epoch (compute cycle) by utilizing the CUDA cores present in the GPU for parallel processing.

The following steps are to be followed:

  1. Make sure that you have installed the latest drivers of your NVIDIA GPU for your OS.
@Sopamo
Sopamo / dslr-webcam-linux.md
Last active June 12, 2024 07:10
Use your dslr as webcam on linux

How to use your DSLR as a webcam on linux

This will automatically start your webcam once you connect it to your computer.

1. Follow this article to setup your webcam

DSLR Webcam setup for linux

2. Install gstreamer

Installation instructions

3. Create a bash file in /usr/bin/dslrwebcam.sh which starts the webcam

@wllmsash
wllmsash / assigning-static-ip-addresses-in-wsl2.md
Last active October 18, 2024 16:44
Assigning Static IP Addresses in WSL2

Assigning Static IP Addresses in WSL2

WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".

Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:

@crstauf
crstauf / github-gist-create.sh
Created October 29, 2020 21:08
Raycast Script Commands
#!/bin/bash
##################################################################
## Set GitHub username and personal access token and uncomment. ##
##################################################################
# GitHub username
# user=
# GitHub personal access token
@flasozzi
flasozzi / countdown.js
Created October 5, 2020 00:31
Simple countdown widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: calendar-alt;
// CREDITS
// Created by u/flasozzi
// Background image code by u/ben5292001
// READ THE INSTRUCTIONS BELOW
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active November 14, 2024 08:51
Building a react native app in WSL2