This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ASN bazinda VPN scripti | |
# 2018 Hazar | |
:local VPNAddrList "vpnize-auto"; | |
:local ASNlist { | |
202196="booking"; | |
43996="booking"; | |
14907="wiki"; | |
11820="wiki"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder