Skip to content

Instantly share code, notes, and snippets.

@a1is3n
a1is3n / oracle-11g-docker.sh
Created July 2, 2024 09:03 — forked from rponte/oracle-11g-docker.sh
Docker: Building and running Oracle Database 11gR2 Express Edition in a Docker container
# based on
# https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance
# more infos:
# https://docs.docker.com/v17.09/edge/engine/reference/commandline/run/
# building it
cd ~/docker-images/OracleDatabase/SingleInstance/dockerfiles/11.2.0.2
docker build --force-rm=true --no-cache=true --shm-size=1G --build-arg DB_EDITION=xe -t "oracle/database:11.2.0.2-xe" -f Dockerfile.xe .
@a1is3n
a1is3n / asnvpn.rsc
Created June 7, 2024 15:12 — forked from hazarkarabay/asnvpn.rsc
Mikrotik'te ASN bilgisinden IP range bulan ve address list'e ekleyen script.
# ASN bazinda VPN scripti
# 2018 Hazar
:local VPNAddrList "vpnize-auto";
:local ASNlist {
202196="booking";
43996="booking";
14907="wiki";
11820="wiki";
@a1is3n
a1is3n / RemoveZeroTier.ps1
Created April 22, 2024 13:14 — forked from wise-io/RemoveZeroTier.ps1
PowerShell script to uninstall ZeroTier One silently
# Removes ZeroTier One
$Paths = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
$ZeroTierOne = Get-ChildItem -Path $Paths | Get-ItemProperty | Where-Object { $_.DisplayName -like 'ZeroTier One' } | Select-Object
$VirtualNetworkPort = Get-ChildItem -Path $Paths | Get-ItemProperty | Where-Object { $_.DisplayName -like 'ZeroTier One Virtual Network Port' } | Select-Object
if ($ZeroTierOne) {
Write-Output 'Uninstalling ZeroTier One...'
foreach ($Ver in $ZeroTierOne) {
$Uninst = $Ver.UninstallString
cmd /c $Uninst /qn
@a1is3n
a1is3n / InstallZeroTier.ps1
Created April 22, 2024 09:14 — forked from wise-io/InstallZeroTier.ps1
Installs Latest ZeroTier One Client
<#
.SYNOPSIS
Installs ZeroTier
.DESCRIPTION
Install ZeroTier and join/configure ZeroTier network
.EXAMPLE
./ios-InstallZeroTier.ps1
.NOTES
This script will install PowerShell 7 if it is not present.
A UAC prompt will appear during install if -UI is used.
@a1is3n
a1is3n / dhcp121.py
Created March 29, 2024 20:55 — forked from casebeer/dhcp121.py
Generate DHCP Option 121 hex routing configurations
'''
Generate DHCP Option 121 hex routing configurations
Static routes pushed over DHCP
1) Set option 121.
2) Value is the concatenation of hex route data.
3) Each route has the form:
{prefix_length}{destination_prefix}{router}
Reference URL: http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html
top -cd2
vmstat 3 ---The command vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity
vmstat -m ---Display Memory Utilization Slabinfo
vmstat -a ---Get Information About Active / Inactive Memory Pages
mpstat ---Display the utilization of each CPU individually using mpstat
w ---Find Out Who Is Logged on And What They Are Doing
uptime ---Tell How Long The System Has Been Running
@a1is3n
a1is3n / postfix commands
Created November 8, 2023 09:06 — forked from rushipkar90/postfix commands
postfix commands
Ref Links:
=============
https://jvulinux.wordpress.com/2014/12/26/commands-to-check-spamming-in-postfix-mail-server/
https://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html
=============
Commands to check spamming in POSTFIX mail server
1. To see the mail queue:
@a1is3n
a1is3n / shell-setup.ps1
Created December 24, 2022 22:13 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@a1is3n
a1is3n / router.cfg
Created August 26, 2022 10:26 — forked from marfillaster/router.cfg
MikroTik RouterOS v7 dual DHCP WAN recursive failover w/ PCC load-balancing; and recursive ECMP
# feb/11/2022 11:00:55 by RouterOS 7.2rc3
# software id = 9QK9-C798
#
# model = RB5009UG+S+
# serial number = XXXXXXXXXX
/ip settings set allow-fast-path=no
/interface bridge add admin-mac=FF:FF:FF:FF:FF:FF auto-mac=no name=bridge
@a1is3n
a1is3n / disable-apparmor
Created December 3, 2021 10:15 — forked from shqear93/disable-apparmor
Disable AppArmor completely without breaking snapd
#!/usr/bin/env bash
# It was a nightmare when! aftrer installing docker i couldn't expose any port
# so far because apparmor was preventing docker from controlling the network
# I spent days looking for the solution till I found this documentation <3 :
# https://wiki.debian.org/AppArmor/HowToUse
sudo mkdir -p /etc/default/grub.d
echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=0"' \
| sudo tee /etc/default/grub.d/apparmor.cfg
sudo update-grub