Skip to content

Instantly share code, notes, and snippets.

#EXTM3U url-tvg="http://stream.cvmtv.site:5000/epg.xml,http://trada.info/epg.xml,http://stream.cvmtv.site:9981/xmltv/channels"
#EXTINF:-1 group-title="VIỆT NAM" tvg-id="quochoi" tvg-logo="https://quochoitv.vn/themes/quochoitv/images/logo-qhtv-new.png",Quốc Hội TV
http://stream.cvmtv.site/qhtv?token=live
@v-thomp4
v-thomp4 / gist:de5234e232d44bcdbd933a7b0f09cd9e
Last active December 28, 2022 09:42 — forked from opastorello/sublime text 4143 license key
sublime text 4143 license key
Download from the App Store an app called Hex Fiend it's free.
Open your Applications folder, find Sublime Text -> Show Package Contents -> Mac OS -> executable to change the hex in is: sublime_text
Edit that file with Hex Fiend
Find in Hex: 80 78 05 00 0f 94 c1
Replace with c6 40 05 01 48 85 c9
codesign --remove-signature Sublime\ Text.app/
Save
@v-thomp4
v-thomp4 / gist:c1fc1dabd4032636e6b75e75480dcd06
Created May 13, 2022 15:14
Apache 2.4.7 / Search permissions
chmod +x /
chmod +x /home/
chmod +x /home/sharkie/
wget -O --continue --progress=dot:mega --tries=0 URL
@v-thomp4
v-thomp4 / gist:a20f750d53592858e4b90da83a85e17e
Created November 26, 2021 07:17
SMTP: Mailserver response error
You have to enable login from other timezone / ip for your google account.
to do this follow the link https://g.co/allowaccess and allow access by clicking the continue button.
gradle.properties
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
@v-thomp4
v-thomp4 / gist:af7772b60532c28213bf8139adb79585
Created August 23, 2021 04:12
install openssh 8.x ubuntu 18.04
sudo apt update
sudo apt install build-essential zlib1g-dev libssl-dev
sudo mkdir /var/lib/sshd
sudo chmod -R 700 /var/lib/sshd/
sudo chown -R root:sys /var/lib/sshd/
wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.7p1.tar.gz
tar -xzf openssh-8.7p1.tar.gz
cd openssh-8.7p1/
sudo apt install libpam0g-dev libselinux1-dev libkrb5-dev
./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
@v-thomp4
v-thomp4 / gist:4a3af169c57449389af7f4ea31795541
Created August 17, 2021 11:46
Combining multiple commits before pushing in Git
git reset --soft HEAD~N
git commit -m 'Update'
git push -f
@v-thomp4
v-thomp4 / gist:ab7d6e720a66ebe02cac83eb8329dbb7
Created July 22, 2021 08:26
upgrade openssh ubuntu 18.04
sudo apt install libpam0g-dev libselinux1-dev
sudo apt install build-essential zlib1g-dev libssl-dev
sudo mkdir /var/lib/sshd
sudo chmod -R 700 /var/lib/sshd/
sudo chown -R root:sys /var/lib/sshd/
sudo useradd -r -U -d /var/lib/sshd/ -c "sshd privsep" -s /bin/false sshd
wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.0p1.tar.gz
tar -xzf openssh-8.0p1.tar.gz
cd openssh-8.0p1/
@v-thomp4
v-thomp4 / gist:750d6000bc34e9feb8a34261d4630d80
Created July 17, 2021 04:48
Remove trailing slashes in NGINX & WordPress
location /app {
try_files $uri $uri.html $uri/index.html $uri/index =404;
}