Skip to content

Instantly share code, notes, and snippets.

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

raj sharma raj-sharma-git

View GitHub Profile
@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