Skip to content

Instantly share code, notes, and snippets.

View Albonycal's full-sized avatar
🎯
Focusing

Shrirang Kahale Albonycal

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Free Bugs
trap "tput reset; tput cnorm; exit" 2
clear
tput civis
lin=2
col=$(($(tput cols) / 2))
c=$((col-1))
est=$((c-2))
color=0
@Albonycal
Albonycal / EXTRACT
Last active February 28, 2021 15:34
put this in your bashrc or zshrc whatever.. You can extract files using function extract <filename>
function extract {
if [ -z "$1" ]; then
# display usage if no parameters given
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
echo " extract <path/file_name_1.ext> [path/file_name_2.ext] [path/file_name_3.ext]"
else
for n in "$@"
do
if [ -f "$n" ] ; then
case "${n%,}" in
@Albonycal
Albonycal / FTP
Created March 22, 2021 03:00
FTP
Install Pure-FTPd
First, install Pure-FTPd using the following command line in Terminal:
sudo apt install pure-ftpd
Basic Configurations
We need to create a new user group named ftpgroup and a new user named ftpuser for FTP users, and make sure this "user" has no login privilege and no home directory:
sudo groupadd ftpgroup
sudo useradd ftpuser -g ftpgroup -s /sbin/nologin -d /dev/null
FTP Home Directory, Virtual User, and User Group
@Albonycal
Albonycal / .zshrc
Created April 16, 2021 16:53
Albonycal zshrc
# Created by albonycal
# *** zshrc ***
#ENV
export XDG_CONFIG_HOME="$HOME/.config"
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export MANPAGER="nvim -c 'set ft=man' -"
export PATH=$PATH:~/go/bin
eval "$(ssh-agent -s)" >/dev/null
#starship prompt
# albony
# ***Picom***
#
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12)
@Albonycal
Albonycal / airtel_bom
Created April 12, 2023 13:58
CRAZY ROUTING
mtr -wr ndt-mlab1-bom02.mlab-oti.measurement-lab.org -6
Start: 2023-04-12T19:12:17+0530
HOST: norbert Loss% Snt Last Avg Best Wrst StDev
1.|-- 2401:4900:1c42:8fff::1 0.0% 10 18.5 20.0 15.7 32.5 5.3
2.|-- 2404:a800:2a00:101::1c1 0.0% 10 15.1 19.6 14.4 54.5 12.4
3.|-- 2404:a800::147 0.0% 10 144.1 144.2 139.7 161.4 6.8
4.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
5.|-- port-channel12.core2.fra1.he.net 30.0% 10 158.7 157.7 156.6 159.2 1.0
6.|-- ix-xe-7-0-0-0-0.tcore2.fr0-frankfurt.ipv6.as6453.net 0.0% 10 168.9 169.5 168.2 175.7 2.2
7.|-- if-ae-54-2.tcore1.fr0-frankfurt.ipv6.as6453.net 0.0% 10 176.3 177.7 174.0 182.4 2.7