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 / 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
# ngadimin@warnet-ersa.net
# 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
# ngadimin@warnet-ersa.net
# 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
@alsyundawy
alsyundawy / CentOS-Base.repo
Created October 12, 2024 06:46 — forked from yogeshlonkar/CentOS-Base.repo
CentOS 5.x yum repos
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
@alsyundawy
alsyundawy / Debian-Netplan.md
Last active October 10, 2024 04:35 — forked from amanjuman/sh.md
Debian 12 Netplan.io

Install Packages

sudo apt install netplan.io openvswitch-switch

Configure Netplan

nano /etc/netplan/network.yaml
network:
@alsyundawy
alsyundawy / dist-upgrade-buster-to-bookworm.sh
Created August 26, 2024 08:04 — forked from rrottmann/dist-upgrade-buster-to-bookworm.sh
Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Debian 10
apt-get -y update
apt-get -y upgrade --without-new-pkgs
apt-get -y full-upgrade
cat > /etc/apt/sources.list <<"EOF"
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/bullseye-security bullseye-security/updates main
deb-src http://security.debian.org/bullseye-security bullseye-security/updates main