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

Ubuntu GPU Server Setup

Quick and smooth setup of Ubuntu GPU server, including proper installation of Nvidia driver.

Estimated time: < 1 hour

  1. Download the “alternative” server image from Ubuntu: Alternative downloads | Ubuntu
  2. Create a bootable USB stick on macOS | Ubuntu
  3. Go to BIOS, disable secure boot. Then boot UEFI. Install Ubuntu, overwrite full partition, add SSH Server. Finish installation and login.
  4. You can now ssh in with password. Login and install nvidia driver. Since secure boot is disable, nvidia installation should go smoothly.
@alsyundawy
alsyundawy / move-var-part-ubuntu.md
Last active May 21, 2024 19:41 — forked from iambryancs/move-var-part-ubuntu.md
Move /var to another partition in Ubuntu

Move /var to another partition in Ubuntu

Create partition with fdisk or gdisk

fdisk -l
create a new GPT partition table by typing
gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.5

Partition table scan: