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
#!/bin/sh
# Go to home directory
cd ~
# https://stackoverflow.com/questions/22510705/get-the-latest-download-link-programmatically
# Determine latest version:
latestVer=$(curl 'https://repo.anaconda.com/archive/' |
grep -oP 'href="Anaconda3-\K[0-9]+\.[0-9]+' |
sort -t. -rn -k1,1 -k2,2 | head -1)
#!/bin/sh
LIST_OF_APPS="vim tightvncserver gparted snapd" #xfce4 xfce4-goodies
sudo apt update && sudo apt upgrade -y
sudo apt install -y $LIST_OF_APPS
# chromium-browser https://chromium.woolyss.com/
sudo add-apt-repository ppa:canonical-chromium-builds/stage
https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.19.325-Linux-x64.deb
#!/bin/sh
# Go to home directory
cd ~
# https://stackoverflow.com/questions/22510705/get-the-latest-download-link-programmatically
# Determine latest version:
latestVer=$(curl 'https://www.realvnc.com/download/file/viewer.files/' |
#!/bin/sh
apt install gnome-panel \
gnome-settings-daemon \
metacity \
nautilus \
gnome-terminal -y
apt install tigervnc-standalone-server \
tigervnc-xorg-extension \
tigervnc-viewer -y
**1\. Hardcode DNS server in docker daemon.json**
* Edit `/etc/docker/daemon.json`
{
"dns": ["10.1.2.3", "8.8.8.8"]
}
* Restart the docker daemon for those changes to take effect:
`sudo systemctl restart docker`
@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

@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 / 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 / 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 / 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