Skip to content

Instantly share code, notes, and snippets.

View Ashraf-wan's full-sized avatar
😆
Holiday!!!

Ashraf wan Ashraf-wan

😆
Holiday!!!
View GitHub Profile
@Ashraf-wan
Ashraf-wan / auto-install.sh
Created February 5, 2022 09:27
Panda3d installer for raspberry pi
sudo apt install build-essential libavformat-dev libavcodec-dev libswscale-dev libsquish-dev libeigen3-dev libopenal-dev libfreetype6-dev zlib1g-dev libx11-dev libjpeg-dev libvorbis-dev libogg-dev libassimp-dev libode-dev libssl-dev libgles2-mesa-dev -y
git clone https://github.com/panda3d/panda3d.git
cd panda3d
python3 makepanda/makepanda.py --everything --installer --threads=2 --use-gles2
sudo dpkg -i panda3d1.11_1.11.0_armhf.deb
@Ashraf-wan
Ashraf-wan / workplace.sh
Last active December 28, 2021 08:16
Shell script for my workplace
docker run -d parrotsecurity/kali-workplace:2022 /bin/bash
docker run -d -p 8080:3000 parrotsecurity/ubuntu-workspace
@Ashraf-wan
Ashraf-wan / loop.py
Created October 20, 2021 05:19
loop for gc shell to not terminate shell while you not using it
import time
def loop():
print("loop")
time.sleep(10)
loop()
loop()
@Ashraf-wan
Ashraf-wan / gcp.sh
Last active December 9, 2021 15:19
Shell script for automating gcp shell setup for work.
#!/bin/bash
sudo apt update && sudo apt install zsh -y
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
u="$USER
sudo passwd $u
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh -y