Skip to content

Instantly share code, notes, and snippets.

View rescenic's full-sized avatar
:electron:
AI Engineer

Muhammad Ridwan Hakim, S.T., CPITA, ITPMCP rescenic

:electron:
AI Engineer
View GitHub Profile
@rescenic
rescenic / wireguard-access-fix.ps1
Created April 22, 2026 11:42 — forked from robert-werner/wireguard-access-fix.ps1
Wireguard "Access Denied" fix on Windows 10+
$rule = New-Object System.Security.AccessControl.RegistryAccessRule(
"NT AUTHORITY\NETWORK SERVICE", # IdentityReference
[System.Security.AccessControl.RegistryRights]::FullControl, # RegistryRights
[System.Security.AccessControl.InheritanceFlags]::ContainerInherit, # InheritanceFlags
[System.Security.AccessControl.PropagationFlags]::None, # PropagationFlags
[System.Security.AccessControl.AccessControlType]::Allow # AccessControlType
)
$registry_keys = "Dhcp", "Tcpip", "Tcpip6", "TCPIPTUNNEL", "TCPIP6TUNNEL"
$registry_folder = "HKLM:\SYSTEM\CurrentControlSet\Services\{registry_key}"
# ===========================================
# ZSH Hacks - Dreams of Code
# ===========================================
# Add these to your .zshrc file
# ===========================================
# -------------------------------------------
# 1. Edit Command Buffer
# -------------------------------------------
# Open the current command in your $EDITOR (e.g., neovim)
import face_recognition
import cv2
import numpy as np
import argparse
import os
def apply_blur(image, region, light_blur=False):
"""Menerapkan efek blur dengan intensitas berbeda"""
try:
top, right, bottom, left = region
import face_recognition
import cv2
import numpy as np
import argparse
import os
def apply_blur(image, region, light_blur=False):
"""Menerapkan efek blur dengan intensitas berbeda"""
try:
top, right, bottom, left = region
#include <ArduLite.h>
// Sensors
Digital leftSensor(2, IN);
Digital rightSensor(3, IN);
// DC Motors
PWM leftMotor1(5);
PWM leftMotor2(6);
PWM rightMotor1(9);
#include<Servo.h>
Servo servo;
byte derajat = 0;
const byte TRIG_PIN = 5;
const byte ECHO_PIN = 4;
long durasi, jarak = 0;
const byte buzzer = 12;
@robert-werner
robert-werner / wireguard-access-fix.ps1
Last active April 22, 2026 11:42
Wireguard "Access Denied" fix on Windows 10+
$rule = New-Object System.Security.AccessControl.RegistryAccessRule(
"NT AUTHORITY\NETWORK SERVICE", # IdentityReference
[System.Security.AccessControl.RegistryRights]::FullControl, # RegistryRights
[System.Security.AccessControl.InheritanceFlags]::ContainerInherit, # InheritanceFlags
[System.Security.AccessControl.PropagationFlags]::None, # PropagationFlags
[System.Security.AccessControl.AccessControlType]::Allow # AccessControlType
)
$registry_keys = "Dhcp", "Tcpip", "Tcpip6", "TCPIPTUNNEL", "TCPIP6TUNNEL"
$registry_folder = "HKLM:\SYSTEM\CurrentControlSet\Services\{registry_key}"
@rescenic
rescenic / gist:4d705fd6ea0bdcc8c78790e647f804d1
Created November 9, 2024 13:52 — forked from dannysmith/gist:9780920
Installing Canvas LMS
# Download the source
git clone https://github.com/instructure/canvas-lms.git canvas
cd canvas
git checkout --track -b stable origin/stable
rbenv install –keep 1.9.3-p545
rbenv local 1.9.3-p545
brew install xmlsec1 postgresql
bundle install
# If you get this error: No source for ruby-1.9.3-p545 provided with debugger-ruby_core_source gem.