Skip to content

Instantly share code, notes, and snippets.

@kripul
kripul / cara pakai.md
Last active December 20, 2022 06:57
Custom RDP Port.
  • Jalankan script ini di RDP
  • Restart RDP
  • Login ke RDP dengan IP:5050
@ECHO OFF
cd.>%windir%\GetAdmin
if exist %windir%\GetAdmin (del /f /q "%windir%\GetAdmin") else (
echo CreateObject^("Shell.Application"^).ShellExecute "%~s0", "%*", "", "runas", 1 >> "%temp%\Admin.vbs"
"%temp%\Admin.vbs"
del /f /q "%temp%\Admin.vbs"
exit /b 2)
rem set PORT=30120
set /p PORT= what port do you want to add? :
#!/bin/sh
echo "First port used for proxy? Example 10000 "
read FIRST_PORT
echo "How many proxy do you want to create? Example 500"
read COUNT
IP4=$(curl -4 -s icanhazip.com)
IP6=$(curl -6 -s ip.nixpoin.com | cut -f1-7 -d':')
@kripul
kripul / digi.sh
Last active September 15, 2022 07:52
#!/bin/bash
#
# CREATED By NIXPOIN.COM
#
while :
do
echo "Apa yang ingin anda lakukan"
echo " 1) auth init"
echo " 2) auth switch"
@kripul
kripul / cekstl.sh
Last active November 26, 2021 14:58
#!/bin/bash
for i in 1 2 3 4 5
do
test="$(curl -m 6 icanhazip.com)"
if [[ -n $test ]]; then
logger "Koneksi normal"
else
logger "Koneksi hilang, merestart STL"
#!/bin/bash
#read -p "link file GZ : " linkgz
read -p "IP : " serverip
read -p "GATEWAY : " servergw
cat >/tmp/net.bat<<EOF
@ECHO OFF
cd.>%windir%\GetAdmin
#!/bin/sh
echo "First port used for proxy? Example 10000 "
read FIRST_PORT
echo "How many proxy do you want to create? Example 500"
read COUNT
IP4=$(curl -4 -s icanhazip.com)
IP6=$(curl -6 -s icanhazip.com | cut -f1-4 -d':')
This file has been truncated, but you can view the full file.
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
DROP TABLE IF EXISTS `db_province_data`;
DROP TABLE IF EXISTS `db_postal_code_data`;
-- --------------------------------------------------------
-- Table structure for `db_province_data`
-- --------------------------------------------------------
@kripul
kripul / ubuntuvnc.sh
Last active February 28, 2018 08:11
ubuntuvnc.sh
#!/bin/bash
DEBIAN_FRONTEND=noninteractive sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get upgrade -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal unzip -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install ubuntu-restricted-extras -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install vnc4server -y
vncserver :1
@kripul
kripul / lamp.sh
Last active February 1, 2018 05:10
install lamp ubuntu 16.04
#!/bin/bash
DEBIAN_FRONTEND=noninteractive sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql php-cli php-cgi php-curl php-gd -y