Skip to content

Instantly share code, notes, and snippets.

View iqfareez's full-sized avatar
🎯
Locked in

Fareez Iqmal iqfareez

🎯
Locked in
View GitHub Profile
@iqfareez
iqfareez / End.gcode
Last active October 21, 2026 10:52
Artillery Hornet My Profile
G91; relative positioning
G1 Z1.0 F3000 ; move z up little to prevent scratching of print
G90; absolute positioning
G1 X0 Y200 F1000 ; prepare for part removal
M104 S0; turn off extruder
M140 S0 ; turn off bed
G1 X0 Y300 F1000 ; prepare for part removal
M84 ; disable motors
M106 S0 ; turn off fan
@iqfareez
iqfareez / Dockerfile1
Created July 28, 2026 01:23
Vscode bug #327633
FROM node:24-alpine AS frontend
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY resources/ ./resources/
COPY vite.config.js ./
@iqfareez
iqfareez / Microsoft.PowerShell_profile.ps1
Created September 30, 2025 03:07
My PowerShell alias function
# or stands for openrepo
function or {
$url = git config --get remote.origin.url
# Convert SSH URL to HTTPS if needed
if ($url -match "^git@(.+):(.+)$") {
$url = "https://$($matches[1])/$($matches[2] -replace '\.git$','')"
} elseif ($url -match "^https://") {
$url = $url -replace '\.git$',''
}
@iqfareez
iqfareez / app.py
Created May 23, 2024 00:40
Print all table and its row in an sqlite database
import sqlite3
import pandas as pd
# Connect to the SQLite database (Change to your db name)
conn = sqlite3.connect('quran_db.sqlite')
# Query to get all table names
query = "SELECT name FROM sqlite_master WHERE type='table';"
tables = pd.read_sql_query(query, conn)
[
{
"id": "4bca563ec5ca0cdd",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
@iqfareez
iqfareez / banks_malaysia.json
Created December 13, 2023 03:41
List of Bank in Malaysia (Taken from Bank Muamalat's IBG Transfer bank list)
[
"Affin Bank Berhad",
"Al Rajhi Banking & Investment Corporation (Malaysia) Berhad",
"Alliance Bank (M) Berhad",
"AmBank (M) Berhad",
"Bangkok Bank Berhad",
"Bank Islam Malaysia Berhad",
"Bank Kerjasama Rakyat Malaysia Berhad",
"Bank of America Malaysia Berhad",
"Bank of China (Malaysia) Berhad",
@iqfareez
iqfareez / README.md
Last active July 20, 2025 05:08
Flutter APK Renamer

This Bash script is designed to rename APK files generated by Flutter.

Before: app-arm64-v8a-release.apk
After: MyAwesomeApp-armeabi-v8a-v1.0.0.apk

Note

Version number if extracted from pubspec.yaml file

Usage

@iqfareez
iqfareez / script.sh
Last active February 15, 2023 11:06
Example running bash script from a URL
#!/bin/bash
echo "Hello, world!"
echo "This is a test script."
echo "Thanks for running me!"
@iqfareez
iqfareez / maker_pico_default.py
Created January 25, 2023 11:12
Default code for Maker Pi Pico W
import board
import digitalio
import neopixel
import simpleio
import time
import pwmio
# Initialize LEDs
# LEDs placement on Maker Pi RP2040