Skip to content

Instantly share code, notes, and snippets.

View ImBIOS's full-sized avatar
Working on something useful - stay tuned!

Imamuzzaki Abu Salam ImBIOS

Working on something useful - stay tuned!
View GitHub Profile
{
"basics": {
"name": "Imamuzzaki Abu Salam",
"label": "Full-stack Web Developer",
"image": "https://avatars.githubusercontent.com/u/41441643?v=4",
"summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles.",
"website": "https://imbios.dev",
"email": "[email protected]",
"location": {
"city": "Sragen",
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@ImBIOS
ImBIOS / wait_for_internet.sh
Created October 30, 2024 02:04
This Bash script is designed to help you automatically execute commands once an internet connection is detected. Ideal for developers, sysadmins, and power users, this script repeatedly pings a specified server (default: Google) until a successful response is received, then runs any command you specify. Use it to automate tasks that depend on in…
#!/bin/bash
# Check if a command is passed
if [ -z "$1" ]; then
echo "Started internet watchdog!"
else
echo "Usage: $0; <command>"
exit 1
fi
@ImBIOS
ImBIOS / .bashrc
Created July 30, 2024 01:43
Conda not working in Intel DevCloud
# @see https://community.intel.com/t5/Intel-DevCloud/Python-3/m-p/1591140/highlight/true#M9836
export PATH='/glob/development-tools/versions/oneapi/2024.1/oneapi/intelpython/envs/pytorch/bin/:'${PATH}
export PATH='/glob/development-tools/versions/oneapi/2024.1/oneapi/intelpython/condabin/:'${PATH}
@ImBIOS
ImBIOS / find_best_vscode_node.sh
Created July 30, 2024 00:58
Find Best PBS Node for VSCode Server
#!/bin/bash
# Function to assign a rank to a node based on its properties
get_node_rank() {
local properties="$1"
case "$properties" in
*xeon,spr,plat8480,ram512gb,netgbe,dual_gpu,hbm2e,gpu,max,max_1100*) echo 1 ;;
*xeon,spr,max9480,ram256gb,netgbe,batch,hbm*) echo 2 ;;
*xeon,icx,plat8380,ram2tb,net1gbe,batch*) echo 3 ;;
*xeon,icx,gold6348,ramgb,netgbe,jupyter,batch*) echo 4 ;;
@ImBIOS
ImBIOS / devcloud_free_with_properties.sh
Last active July 30, 2024 00:56
This bash script retrieves and displays the properties of all free nodes in a PBS (Portable Batch System) cluster.
for node in $(pbsnodes -l free | awk '{print $1}'); do
echo "$node"
pbsnodes "$node" | awk '/state = free/ {state=$0} /properties =/ {prop=$0} END {print " " state; print " " prop}'
echo ""
done
@ImBIOS
ImBIOS / addFillToSVGs.sh
Last active July 15, 2024 06:48
Automatically Add fill="currentColor" to SVG Files. This shell script recursively scans through a directory and its subdirectories to find all SVG files and adds fill="currentColor" to all path elements that don't already have a fill attribute. This is particularly useful for ensuring that SVG icons inherit the current text color when used in we…
#!/bin/bash
# Ensure the script runs in the directory where SVG files are located
cd /path/to/your/svg/files
# Loop through all SVG files in the current directory
for file in *.svg; do
# Add fill="currentColor" to each SVG file using sed
sed -i 's/<svg /<svg fill="currentColor" /g' "$file"
done
(
function() {
let div = '<div id="progress" style="position: fixed; z-index: 1000; background-color: #424c59; padding: 1em; bottom: 1em; left: 1em; border-radius: 4px; box-shadow: 1px 2px 12px 0 black">Clearing wishlist...</div>';
document.querySelector("body").innerHTML+=div;
let progress = document.getElementById("progress");
let promises = [], count = 0;
for (let id of g_Wishlist.rgAllApps) {
let form = new FormData();
form.append('sessionid', g_sessionID);