Skip to content

Instantly share code, notes, and snippets.

View validatedev's full-sized avatar
🎯
Focusing

Mert Can Demir validatedev

🎯
Focusing
View GitHub Profile
@ifvictr
ifvictr / README.md
Last active March 6, 2024 20:23
An Arc boost that lets you message ChatGPT from the Command Bar.
@niutech
niutech / hosts
Last active October 12, 2025 04:19
/etc/hosts file for blocking Microsoft Edge tracking domains (and more)
0.0.0.0 a-0001.a-msedge.net
0.0.0.0 a-0002.a-msedge.net
0.0.0.0 a-0003.a-msedge.net
0.0.0.0 a-0004.a-msedge.net
0.0.0.0 a-0005.a-msedge.net
0.0.0.0 a-0006.a-msedge.net
0.0.0.0 a-0007.a-msedge.net
0.0.0.0 a-0008.a-msedge.net
0.0.0.0 a-0009.a-msedge.net
0.0.0.0 a-msedge.net
@nadiaholmquist
nadiaholmquist / 0-pam-touchid-setup.md
Last active June 26, 2024 00:09
Permanent setup for sudo with Touch ID for macOS

Permanent sudo Touch ID setup for macOS

Want to use Touch ID with sudo but annoyed that the change gets reset every time macOS updates? Here's a hacky solution to fix that!

Installation

  1. Compile pam-touchid-setup.c
    clang -o pam-touchid-setup pam-touchid-setup.c
    
#!/usr/bin/env bash
# References:
#
# * <https://github.com/smvarela/fedora-postinstall>.
# * <https://mutschler.eu/linux/install-guides/fedora-post-install/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/basic-system-configuration/System_Locale_and_Keyboard_Configuration/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/kernel-module-driver-configuration/Working_with_Kernel_Modules/>.
# * <https://wiki.archlinux.org/index.php/silent_boot>.
# * <https://rpmfusion.org/Howto/NVIDIA>.
#!/usr/bin/env python3
'''
always getting the most recent frame of a camera
================================================
Usage:
------
freshest_camera_frame.py
@xnumad
xnumad / pre-installed-chrome-extensions
Last active April 16, 2024 10:22
Simplest way to get rid of pre-installed Chrome extensions
Sadly, the usual uninstallers of those programs DO NOT remove their "enforcement of pre-installing" extensions into Google Chrome web browser. ("Another program on your computer added an extension that may change the way Chrome works.")
This guidance only contains instructions for Google Chrome.
Enter about://extensions into the adress bar of Google Chrome.
Click on "Details" for the respective extension you want to stop from being pre-installed.
Copy the extension ID from the URL (the text after "id=").
Now remove all these in the registry existing keys at the following paths:
- HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions\<id>
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\<id>
- HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\Extensions\<id>
@nerzhulart
nerzhulart / Windows Defender Exclusions for Developer.ps1
Last active October 10, 2025 11:29 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@stvhwrd
stvhwrd / launchpad-reset.md
Last active June 3, 2024 17:52
Delete and rebuild LaunchPad on Mac OS X to improve appearance and eliminate obsolete app icons

####First - reset LaunchPad:

defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

####Second - rebuild the database:

rm ~/Library/Application\ Support/Dock/*.db; killall Dock
@xbeta
xbeta / README.md
Last active October 7, 2025 02:19
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks
@jonpugh
jonpugh / git-pull-recursive.rb
Last active October 20, 2021 03:20
Lots of repos? Try "git-pull-recursive" to run "git pull" on all subfolders with a .git folder inside. Thanks to http://snipplr.com/view/62314/perform-git-pull-on-subdirectory-recursive/
# For use in Chef:
# Adds a command: git-pull-recursive
file "/usr/local/bin/git-pull-recursive" do
owner "root"
group "root"
mode "0755"
action :create
content 'find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;'
end