Skip to content

Instantly share code, notes, and snippets.

View IslamAlam's full-sized avatar
🎯
Focusing

Islam Mansour IslamAlam

🎯
Focusing
  • ETH Zürich – Microwaves and Radar Institute - German Aerospace Center (DLR)
  • Munich, Germany
View GitHub Profile
make[3]: Entering directory '/home/user/openwrt/target/linux'
make[4]: Entering directory '/home/user/openwrt/target/linux/ipq60xx'
rm -rf /home/user/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic
mkdir -p /home/user/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic
xzcat /home/user/openwrt/dl/linux-5.15.112.tar.xz | tar -C /home/user/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic -xf -
cp -fpR "/home/user/openwrt/target/linux/generic/files"/. "/home/user/openwrt/target/linux/ipq60xx/files"/. /home/user/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/linux-5.15.112/
find /home/user/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/linux-5.15.112/ -name \*.rej -or -name \*.orig | xargs -r rm -f
if [ -d /home/user/openwrt/target/linux/generic/patches ]; then echo "generic patches directory is present. please move your patches to the pending directory" ; exit 1; fi
Applying /home/user/openwrt/target/

Keybase proof

I hereby claim:

  • I am IslamAlam on github.
  • I am imansour (https://keybase.io/imansour) on keybase.
  • I have a public key whose fingerprint is 8DB1 06E9 669B C9BE A59A 57B4 19B9 A443 3217 4E18

To claim this, I am signing this object:

#! Title: d3Host List by d3ward
#! Expires: 1 days
#! Description: Simple and small list with the most popular advertising, analytics and social advertising services
#! Homepage: https://github.com/d3ward/toolz
#! License: CC BY-NC-SA
#! Source: https://github.com/d3ward/toolz/blob/master/src/d3host.txt
# This list cover all the tests on https://d3ward.github.io/toolz/src/adblock
#
# Type : Stable
@IslamAlam
IslamAlam / gist:c1f24a5e2e53a7919b3e59f46084ed16
Created April 28, 2021 12:13
SmartGit Open in VSCode Menu
Menu Item Name: Open in VSCode
Command: C:\Users\ge49gar\AppData\Local\Programs\Microsoft VS Code\Code.exe
Arguments: ${filePath}
@IslamAlam
IslamAlam / pihole-macvlan-synology-docker.txt
Last active April 27, 2021 07:43 — forked from xirixiz/pihole-macvlan-synology-docker.txt
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 10.1.0.10 in this example
# DHCP scope reservation for macvlan: 10.1.0.210/28 (Details below)
## Network: 10.1.0.210/28
## HostMin: 10.1.0.211
## HostMax: 10.1.0.224
## Hosts/Net: 14
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo)
@IslamAlam
IslamAlam / 01_dmesg.txt
Last active May 5, 2021 20:42
Openwrt ea9500 wifi issue
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.98 (vivek@ubuntu) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15798-95359dac82)) #0 SMP Mon Feb 15 15:54:28 2021
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Linksys EA9500
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] Normal zone: 288 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
@IslamAlam
IslamAlam / gitignore_per_git_branch.md
Last active March 26, 2020 11:44 — forked from wizioo/gitignore_per_git_branch.md
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.

@IslamAlam
IslamAlam / compose-caddy.yml
Created January 30, 2020 19:16 — forked from pascalandy/compose-caddy.yml
Traefik V2 / my docker compose files
version: "3.3"
services:
caddy:
image: abiosoft/caddy:1.0.3-no-stats
container_name: caddy
hostname: caddy
restart: unless-stopped
volumes:
@IslamAlam
IslamAlam / install_jupyter.sh
Last active July 24, 2020 07:57
This is a script for machine learning tool and install jupyter notebook and lab for easy machine learning algorithms developments
#!/bin/bash
cd /data/inst/anaconda/bin
source activate
# conda update -y -n base -c defaults conda
conda create -n jupyter -c rapidsai -c nvidia -c numba -c pytorch -c conda-forge -c defaults python=3.6
conda install -y -n jupyter -c rapidsai -c nvidia -c numba -c pytorch -c conda-forge -c defaults \
@IslamAlam
IslamAlam / README.md
Last active December 8, 2019 16:06
Effortless and Simple Post Install Script for Ubuntu, Linux Mint, Debian, Elementary-OS & derivatives ubuntu-post-install

Install your choice of Ubuntu/Debian/Mint or its derivative as you would

Step 1: Get the script

Without Git

Run this in Terminal

With Git