Skip to content

Instantly share code, notes, and snippets.

View chankruze's full-sized avatar
🎯
Focusing

Chandan Kumar Mandal chankruze

🎯
Focusing
View GitHub Profile
sudo apt-get update
sudo apt-get install indicator-cpufreq

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

indicator-cpufreq
  • 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
    
@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
// 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 <[email protected]>" -a "Subject: You Are Warned For Hacking" [email protected]
// content/body from a file
cat email-body.txt | mail -a "From: Paige <[email protected]>" -a "Subject: We Want To Hire You !" [email protected]
<script>
function validate(form) {
// validation code here ...
if(!valid) {
alert('Please correct the errors in the form!');
return false;
}
@chankruze
chankruze / weather.html
Created March 10, 2019 16:28
Change Graphics Based on Season
<img src="<?php current_season() ?>" alt="" />

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 -
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
::-webkit-scrollbar {
display: block;
width: 10em;
overflow: auto;
height: 2em;
width: 5px;
height: 8px;
background-color: #aaa; /* track color */
}
@echo off
title convert2webp
dir /b > filenames.txt
md converted
for /F "tokens=*" %%A in (filenames.txt) do (cwebp %%A -q 100 -o converted\%%A.webp)