Skip to content

Instantly share code, notes, and snippets.

View alsyundawy's full-sized avatar
🏠
WFH | Kaum Rebahan Garis Keras Dan Militas

༺ Initial H ༻ alsyundawy

🏠
WFH | Kaum Rebahan Garis Keras Dan Militas
View GitHub Profile
@alsyundawy
alsyundawy / create-cloud-template.sh
Created August 4, 2025 12:17 — forked from chriswayg/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@alsyundawy
alsyundawy / create-cloud-template.sh
Created August 4, 2025 12:17 — forked from meramsey/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@alsyundawy
alsyundawy / upgrade.sh
Created August 4, 2025 09:49 — forked from pertsevds/upgrade.sh
Upgrade Pnetlab from_any_to_5.3.11 with reboot without confirmation
#!/bin/bash
# Script designed to upgrade PNETLab from almost any version to NEW_PNETLAB_VERSION version
# Requirement: Not having PNETLab 6.x installed for being able to upgrade to NEW_PNETLAB_VERSION
# This script avoids to make this upgrade process twice
# CONSTANTS
NEW_PNETLAB_VERSION=5.3.11
GREEN='\033[32m'
NO_COLOR='\033[0m'
@alsyundawy
alsyundawy / install-gcc4.8.5.sh
Created July 2, 2025 18:03 — forked from myh-st/install-gcc4.8.5.sh
Install gcc 4.8.5 from rpm
#!/bin/bash
echo "Please run as root"
echo ""
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=13TU6pnsx1dX5tHOQjgVh2URM9AMqeKcD' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=13TU6pnsx1dX5tHOQjgVh2URM9AMqeKcD" -O gcc48-c++-4.8.5-1.el6.x86_64.rpm && rm -rf /tmp/cookies.txt
rpm -i gcc48-c++-4.8.5-1.el6.x86_64.rpm
mv /usr/bin/gcc48 /usr/bin/gcc && mv /usr/bin/g++48 /usr/bin/g++
@alsyundawy
alsyundawy / swappiness.md
Created April 3, 2025 04:51 — forked from docapotamus/swappiness.md
Setting swappiness on Debian

Swappiness controls the tendancy the kernel wishes to swap.

Even with free memory the kernel may swap.

100 means aggressively swap 0 means wait until the last minute to swap

To check current swappiness cat /proc/sys/vm/swappiness

@alsyundawy
alsyundawy / dnsmasq OS X.md
Created December 23, 2024 11:49 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@alsyundawy
alsyundawy / glibc-2.17_centos6.sh
Last active December 12, 2024 04:59 — forked from harv/glibc-2.17_centos6.sh
update glibc to 2.17 for CentOS 6
#!/bin/sh
# Update glibc ke 2.17 untuk CentOS 6
# Unduh paket glibc
wget -c \
http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm \
http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm \
http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm \
http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
@alsyundawy
alsyundawy / invalid_tlds_remover.sh
Created October 16, 2024 16:19 — forked from ngadmini/invalid_tlds_remover.sh
tlds_validation.sh AND invalid_tlds_remover.sh
#!/usr/bin/env bash
# TAGS
# invalid_tlds_remover.sh v2.59
# AUTHOR
# [email protected]
# https://gist.github.com/ngadmini
# https://github.com/ngadmini
# TL;DR
# https://github.com/ngadmini/Grabbing-Blacklist-for-Bind9-RPZ/blob/196230c16a285a9c46748622749be98d9712543d/libs/grab_duplic.sh#L94
@alsyundawy
alsyundawy / untrust.sh
Created October 16, 2024 16:18 — forked from ngadmini/untrust.sh
intended to reduce porn-domains as listed in https://trustpositif.kominfo.go.id/assets/db/domains_isp
#!/usr/bin/env bash
# TAGS
# untrust.sh v3.0
# https://gist.githubusercontent.com/ngadmini/49161c90fa82c4e0a2bf25d2a6709077/raw
# AUTHOR
# [email protected]
# https://github.com/ngadmini
# TL;DR
# intended to reducing adult domains, explicit adult-gambling domains, upperCase, non-ASCII, invalid-TLDs
# and domains ended with port number in the blacklisted domains as listed in : "$uri_1"
@alsyundawy
alsyundawy / gist:6d2a30e445aaa1cb3fae2d6ed683edf8
Created October 12, 2024 07:07 — forked from skanga/gist:39353a02142cbc26cc8cd339ffcfe2dc
Upgrade TLS on Centos 5 by building WGET, CURL and OPENSSL from scratch
# Download, compile and install openssl
mkdir ~/src/
cd ~/src/
wget https://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -zxvf openssl-*.tar.gz
cd openssl-*
./config -fpic shared
make
sudo make install