Skip to content

Instantly share code, notes, and snippets.

View arpitjindal97's full-sized avatar
🎯
Focusing

Arpit Agarwal arpitjindal97

🎯
Focusing
View GitHub Profile
@arpitjindal97
arpitjindal97 / arch_install.sh
Last active January 20, 2020 06:36
Arch Installation Notes
# Arch Installation Notes
https://wiki.archlinux.org/index.php/installation_guide
/dev/sda2 --- efi partition
/dev/sda6 --- linux partition
mkfs.ext4 /dev/sda6
mkdir -r /mnt/boot/efi
mount /dev/sda6 /mnt
montage $(for f in *;do for j in {0..4};do echo $f; done done) -tile 6x7 -auto-orient -geometry '425x520!+8+8' -page A4 ../arpit.pdf
echo "# To set default option of printer"
echo "lpoptions -d EPSON_L210_Series \n"
echo "# To print pdf"
echo "look at -P "
echo "lp -d HP_LaserJet_M1005 -P 4-4 -o media=a4 -o scaling=100 -o fit-to-page ../arpit.pdf"
# full page image aspect ratio ignored
@arpitjindal97
arpitjindal97 / file_rename.sh
Last active September 29, 2017 13:16
Rename files consecutively
count=1
if [ ! -d "temp1" ];then mkdir temp1; fi
for i in *;
do
if [ -f "$i" ];
then
ext=$(echo "$i" | awk -F"." '{print $NF}')
mv "$i" "temp1/img_$count.$ext";
str=""
get_ran()
{
str="35234708"
for i in `seq 1 7`
do
str=$str`expr $RANDOM % 10`
done
}
get_ran
@arpitjindal97
arpitjindal97 / arch_rpi.sh
Created September 25, 2017 18:13
Arch install for RPi
cd /home/arpit/Desktop
umount /dev/mmcblk0*
dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=2048
#echo -e "d\n\nd\nw" | grep fdisk /dev/mmcblk0
echo -e "o\nn\np\n1\n\n+100M\nt\nc\nn\np\n2\n\n\nw" | fdisk /dev/mmcblk0
mkdir root boot
@arpitjindal97
arpitjindal97 / mac_mnt.sh
Created September 25, 2017 18:14
Mount OSX partition on Linux
sudo mkdir /mac
sudo mount -t hfsplus -o force,rw /dev/sda2 /mac

Keybase proof

I hereby claim:

  • I am arpitjindal97 on github.
  • I am arpitjindal97 (https://keybase.io/arpitjindal97) on keybase.
  • I have a public key whose fingerprint is 6AE7 0B2D 3ADC D2C6 7237 06A0 8DE3 9E0C FDAB 3322

To claim this, I am signing this object:

@arpitjindal97
arpitjindal97 / torrc-exit
Last active October 22, 2023 12:32
Tor Exit Relay Configuration
ORPort 9001
Nickname arpitjindal97
ContactInfo 0xFDAB3322 Arpit Agarwal ₿18Nb7HJ6GSwMg4ofbCpeSMC7Z4NNzxNBSK
Address 103.30.143.19
RelayBandwidthRate 400 KBytes
RelayBandwidthBurst 700 KBytes
AccountingMax 5 GBytes
AccountingStart day 1:00
@arpitjindal97
arpitjindal97 / k8s-containerd-single-node.md
Last active May 10, 2020 19:16
Kubernetes with Containerd on Ubuntu
@arpitjindal97
arpitjindal97 / .zshenv
Last active April 23, 2023 15:31
Sample zshenv file
export GOPATH="$HOME/go"
export PATH="$HOME/.local/bin:$GOPATH/bin:$PATH"
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
plugins=(kubectl docker docker-compose gcloud)
git config --global core.editor "vim"
git config --global gpg.program gpg
# change accordingly