Skip to content

Instantly share code, notes, and snippets.

View raj-sharma-git's full-sized avatar

raj raj-sharma-git

  • Pune
View GitHub Profile
@raj-sharma-git
raj-sharma-git / gist:a8eb8e582cc59a847c91613d9834c54b
Created October 21, 2024 17:13 — forked from gagarine/gist:a187b44ecff35f68b3f14b257d97c44c
MacOS: remove the Firefox message "Your browser is being managed by your organisation"
In the terminal launch the following command and restart Firefox:
sudo defaults write /Library/Preferences/org.mozilla.firefox EnterprisePoliciesEnabled -bool FALSE
To know more about policies => https://support.mozilla.org/en-US/products/firefox-enterprise/policies-customization-enterprise/policies-overview-enterprise
@raj-sharma-git
raj-sharma-git / adb-dns.bat
Created August 26, 2023 07:23 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@raj-sharma-git
raj-sharma-git / post-receive.sh
Created January 13, 2023 08:24 — forked from benfrain/post-receive.sh
post-receive hook for multiple branches
#!/bin/bash
while read oldrev newrev ref
do
branch=`echo $ref | cut -d/ -f3`
if [ "master" == "$branch" ]; then
git --work-tree=./path/under/root/dir/live-site/ checkout -f $branch
echo 'Changes pushed live.'
fi