Skip to content

Instantly share code, notes, and snippets.

View chankruze's full-sized avatar
🎯
Focusing

Chandan Kumar Mandal chankruze

🎯
Focusing
View GitHub Profile
@chankruze
chankruze / sources.list
Created January 26, 2018 14:37 — forked from pichuang/sources.list
Kali Linux source.list /etc/apt/sources.list
deb http://kali.cs.nctu.edu.tw/ /kali main contrib non-free
deb http://kali.cs.nctu.edu.tw/ /wheezy main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali-dev main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali-dev main/debian-installer
deb-src http://kali.cs.nctu.edu.tw/kali kali-dev main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali kali main/debian-installer
deb-src http://kali.cs.nctu.edu.tw/kali kali main contrib non-free
deb http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free
deb-src http://kali.cs.nctu.edu.tw/kali-security kali/updates main contrib non-free
@chankruze
chankruze / buildtwrp.sh
Created March 2, 2018 11:47 — forked from bigbiff/buildtwrp.sh
Build TWRP for devices
#!/bin/bash
TWRPCM10REPO=/data/repos/cm10-twrp
TWRPCM101REPO=/builds/cm10.1-twrp
TWRPOUTDIR=/home/bigbiff/twrp
cm101devices=('n7100' 't0ltecan' 't0lte' 't0ltetmo' 't0lteatt' 't0ltespr' 't0ltevzw' 't03gduoszn' 't0lteskt')
cm10devices=('quincyatt' 'quincytmo')
contains() {
local i j=$1
@chankruze
chankruze / who_is_largest.py
Created July 24, 2018 05:17
Find the largest number among 3 user inputed numbers
# Created BY Chankruze
# Initial Values
num_01 = 0
num_02 = 0
num_03 = 0
while True:
try:
# Note: Python 2.x users should use raw_input, the equivalent of 3.x's input
@chankruze
chankruze / index.html
Created August 22, 2018 08:33 — forked from levonlee/index.html
HTML: Add an announcement box on the top of the website
<body>
<div class="alert-box">
<span class="badge">Announcement</span> Some Text
</div>
</body>
@chankruze
chankruze / index.html
Created September 5, 2018 19:11
Monitor Screen Lines/Pixels Effect
<p>initializing</p>
@chankruze
chankruze / Compile-Vanila.md
Last active October 21, 2024 16:07
How To Compile OpenWrt Firmware For Any Router

Checking out Source

  • clone latest source repository by git clone https://www.github.com/openwrt/openwrt -b branch_name
  • Now change directory to openwrt by cd openwrt.This is our <buildroot dir> for this guide.

Updating Feeds

  • Update feeds: ./scripts/feeds update -a
  • Make downloaded package(s) available in make menuconfig:
    • single package : ./scripts/feeds install <PACKAGENAME>
    • all packages : ./scripts/feeds install -a

Image Configuration

@chankruze
chankruze / Password_Verification.py
Created October 28, 2018 09:01
A simple hased password check script to demonstrate how servers check password when we enter it during log in.
import hashlib
print("# This is a demo on how servers checks your password when you enter it during login\n")
pass_in0 = input(">> Enter Your Demo Password\n")
hash_generate = hashlib.sha1(pass_in0.encode())
hex_gen0 = hash_generate.hexdigest()
print(">> Your Stored Hash is: "+ str(hex_gen0))
print("# This is stored in server when you signup for first time")
@chankruze
chankruze / made-with-love.html
Created December 9, 2018 14:20 — forked from oliveratgithub/made-with-love.html
Various HTML-snippets to add "Made with love" to your website
<!-- Example #1 - no styling -->
Made with ❤ in Switzerland
<!-- Example #2 - inline-styled ❤ -->
Made with <span style="color: #e25555;">&#9829;</span> in Switzerland
Made with <span style="color: #e25555;">&hearts;</span> in Switzerland
<!-- Example #3 - CSS-style class for ❤ -->
<style>.heart{color:#e25555;}</style>
Made with <span class="heart"></span> in Switzerland
@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)
::-webkit-scrollbar {
display: block;
width: 10em;
overflow: auto;
height: 2em;
width: 5px;
height: 8px;
background-color: #aaa; /* track color */
}