Skip to content

Instantly share code, notes, and snippets.

View HasanAbbadi's full-sized avatar
📚
Studyin'

Hasan Abbadi HasanAbbadi

📚
Studyin'
View GitHub Profile
@habernal
habernal / install-segoeui-fonts.sh
Last active October 18, 2025 18:01
Install MS Segoe UI fonts on Ubuntu
#!/bin/bash
# We install the fonts locally, not into /usr/share/fonts/truetype to avoid unnecessary sudo rights
DEST_DIR="${HOME}/.fonts/segoeui"
mkdir -p $DEST_DIR
# Download 15 *.ttf files
VARIANTS='segoeui segoeuib segoeuii segoeuiz segoeuil seguili segoeuisl seguisli seguisb seguisbi seguibl seguibli seguiemj seguisym seguihis'
for VARIANT in $VARIANTS; do
const Stations = [
{
id: "1",
name: "إذاعة صور من حياة الصحابة رضوان الله عليهم",
radio_url: "https://qurango.net/radio/sahabah",
name_en: "Sahaba Stories",
category: "منوعات",
category_en: "Others"
},
{
@ajitid
ajitid / .wslconfig
Last active June 1, 2025 05:11
Run GUI applications in WSL1
# C:/Users/zlksnk/.wslconfig
# [wsl2]
# kernel=<path> # An absolute Windows path to a custom Linux kernel.
# memory=<size> # How much memory to assign to the WSL2 VM.
# processors=<number> # How many processors to assign to the WSL2 VM.
# swap=<size> # How much swap space to add to the WSL2 VM. 0 for no swap file.
# swapFile=<path> # An absolute Windows path to the swap vhd.
# localhostForwarding=<bool> # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true).
@sundowndev
sundowndev / GoogleDorking.md
Last active December 9, 2025 20:22
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@JamieMason
JamieMason / group-objects-by-property.md
Created September 14, 2018 07:38
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;
@leafstorm
leafstorm / print-server.md
Created April 11, 2017 02:09
How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

Run these commands on the server:

dnf install cups hplip
systemctl start cups
firewall-cmd --zone=FedoraServer --add-service=ipp
firewall-cmd --zone=FedoraServer --add-service=ipp --permanent

Then go to the CUPS Web admin at http://[server]:631 and go to the "Administration" page.