Skip to content

Instantly share code, notes, and snippets.

View chankruze's full-sized avatar
🎯
Focusing

Chandan Kumar Mandal chankruze

🎯
Focusing
View GitHub Profile
clear
echo " _______ ________ __"
echo " | |.-----.-----.-----.| | | |.----.| |"_
echo " | - || _ | -__| || | | || _|| _|"
echo " |_______|| __|_____|__|__||________||__| |____|"
echo " |__| W I R E L E S S F R E E D O M"
echo " --------------------------------------------------"
echo " https://github.com/chankruze "
echo " --------------------------------------------------"
git clone https://github.com/openwrt/openwrt.git -b openwrt-18.06

Installing Jenkins

  1. Install Java
$ sudo apt update
$ sudo apt install openjdk-8-jdk
  1. Add the Jenkins Debian repository
$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
@chankruze
chankruze / weather.html
Created March 10, 2019 16:28
Change Graphics Based on Season
<img src="<?php current_season() ?>" alt="" />
<script>
function validate(form) {
// validation code here ...
if(!valid) {
alert('Please correct the errors in the form!');
return false;
}
// content/body from terminal
echo -e "We detected unusal game modification. This is the first and last warning to you.\n Game Name : Assassin's Creed Odyssey.\n Hack Used : WeMod, Cheat Engine" | mail -a "From: Anti-Cheat <support@ubisoft.com>" -a "Subject: You Are Warned For Hacking" nishantbarh639@gmail.com
// content/body from a file
cat email-body.txt | mail -a "From: Paige <paige@hr.cia.gov>" -a "Subject: We Want To Hire You !" madhusudanbej2@gmail.com
@chankruze
chankruze / build-kde-connect.md
Last active March 25, 2019 01:14
Guide To Compile KDE Connect For Linux
git clone https://invent.kde.org/kde/kdeconnect-kde.git
software-properties-gtk #Enable Source Code Option
sudo apt-get build-dep kdeconnect
cd kdeconnect-kde
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install
  • Logout And Login Fresh (otherwise /home will be busy)
  • Temporarily mount the new partition
     sudo mkdir /mnt/tmp
     sudo mount /dev/sda5 /mnt/tmp
    
  • Copy home to the new location
    sudo rsync -avx /home/ /mnt/tmp
    
sudo apt-get update
sudo apt-get install indicator-cpufreq

After installation, press ALT + F2 and type the command:

indicator-cpufreq
sudo apt-get install vsftpd
sudo apt-get install openssl

Generating the SSL certificate and RSA key file

openssl req -x509 -nodes -days 365 -newkey rsa:1024 --keyout /etc/vsftpd/vsftpd.pem --out /etc/vsftpd/vsftpd.pem
@chankruze
chankruze / opera-vpn.md
Created March 30, 2019 21:54 — forked from spaze/opera-vpn.md
Opera VPN behind the curtains is just a proxy, here's how it works

When setting up (that's immediately when user enables it in settings) Opera VPN sends few API requests to https://api.surfeasy.com to obtain credentials and proxy IPs, see below, also see The Oprah Proxy.

The browser then talks to a proxy de0.opera-proxy.net (when VPN location is set to Germany), it's IP address can only be resolved from within Opera when VPN is on, it's 185.108.219.42 (or similar, see below). It's an HTTP/S proxy which requires auth.

When loading a page with Opera VPN enabled, the browser sends a lot of requests to de0.opera-proxy.net with Proxy-Authorization request header.

The Proxy-Authorization header decoded: CC68FE24C34B5B2414FB1DC116342EADA7D5C46B:9B9BE3FAE674A33D1820315F4CC94372926C8210B6AEC0B662EC7CAD611D86A3 (that's sha1(device_id):device_password, where device_id and device_password come from the POST /v2/register_device API call, please note that this decoded header is from another Opera installation and thus contains