Skip to content

Instantly share code, notes, and snippets.

View ImBIOS's full-sized avatar
🔐
Code with conscience. Launch with guts.

Imamuzzaki Abu Salam ImBIOS

🔐
Code with conscience. Launch with guts.
View GitHub Profile
@ImBIOS
ImBIOS / learn-rust.txt
Created September 18, 2025 03:43
Best rust learning to get started
1. The Rust Book
2. rustlings (a GitHub repo)
3. Rust by Example
4. the official rust documentation

𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗮𝗻𝗱 𝗥𝗲𝗮𝗰𝘁𝗝𝗦 (𝗙𝗿𝗼𝗻𝘁-𝗘𝗻𝗱)

  • What is the difference between var, let, and const in JavaScript?
  • How does the JavaScript event loop work?
  • Explain closures in JavaScript with an example.
  • What are promises, and how do they differ from async/await?
  • What is the difference between shallow and deep copying in JavaScript?
  • Explain the difference between == and === in JavaScript.
  • What is the virtual DOM, and how does React use it?
  • Explain the purpose of React hooks. How does useEffect work?
  • What is the difference between controlled and uncontrolled components in React?
{
"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