This file contains hidden or 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
#!/bin/sh | |
OVPNCONF="/root/ovpn/client.ovpn" | |
RUNNING=$(ps aux | grep -o "openvpn \-\-config" | wc -l) | |
case "$1" in | |
start) | |
if [ $RUNNING -eq 0 ]; then | |
echo -n > /var/log/ovpn_autostart.log | |
nohup openvpn --config "$OVPNCONF" > /var/log/ovpn_autostart.log 2>&1 & | |
else |
This file contains hidden or 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
#!/bin/bash | |
#---------------------------------------------------------------------# | |
# evm # | |
# # | |
# easy virtualbox management bash script # | |
# # | |
# Script : evm # | |
# Version : 1.0.1 # | |
# Author : Yasin KARABULAK <[email protected]> # | |
# Date : 2017-08-30 # |
This file contains hidden or 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
<?php | |
/***************************************** | |
* | |
* array search Copyright (C) 2009 - 2017 Yasin KARABULAK (YsnSoftware) All Rights Reserved | |
* email: [email protected] | |
* | |
*******************************************/ | |
class arraySearch | |
{ |
This file contains hidden or 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
<?php | |
$username="admin"; | |
$password="1234"; | |
$protocol="https"; | |
//~ our log in data | |
$post = array( | |
'username' => urlencode($username), | |
'password' => urlencode($password) | |
); | |
$post_string = http_build_query($post); |
This file contains hidden or 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/php | |
<?php | |
$sleep_militime=150000; | |
class top_info{ | |
private static function top_command(){ | |
exec("/usr/bin/top -b -n1",$out); | |
return $out; | |
} |
This file contains hidden or 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
#!/bin/bash | |
#--------------------------------------------------------------------- | |
# screenrec.sh | |
# | |
# ffmpeg shellscript screen recorder | |
# | |
# Script: screenrec.sh | |
# Version: 1.1.0 | |
# Author: Yasin KARABULAK <[email protected]> | |
# |
This file contains hidden or 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
<?php | |
//~ exec("ls -m /etc/letsencrypt/live",$out); | |
///explode(",",$out); | |
//~ print_r($out); | |
//~ $out=implode("",$out); | |
//~ $out=explode(",",$out); | |
//~ print_r($out); | |
function get_web_sites(){ | |
exec("find /var/www -maxdepth 1 -type l",$out); |
This file contains hidden or 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
#!/bin/bash | |
if [ -z $1 ]; then | |
find -type d -name .git -exec echo {} \; -exec git --git-dir={} --work-tree=$PWD/{}/.. fetch --all \; -exec git --git-dir={} --work-tree=$PWD/{}/.. pull origin master \; | |
else | |
find $1 -type d -name .git -exec echo {} \; -exec git --git-dir={} --work-tree=$PWD/{}/.. fetch --all \; -exec git --git-dir={} --work-tree=$PWD/{}/.. pull origin master \; | |
fi |
This file contains hidden or 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
#!/bin/bash | |
# chmod +x ip.sh | |
# ./ip.sh will give your ip and much more | |
PAGE=$(wget -qO- https://ysnteknoloji.com/geoip/location.php) | |
tarih=$(echo $PAGE | grep -oP "Tarih\s*:\K([0-9\.\s:]*)") | |
ip=$(echo $PAGE | grep -oP "IP\s*:\K([0-9\.]*)") | |
echo -e "Tarih\t\t" $(echo $PAGE | grep -oP "Tarih\s*:\K([0-9\.\s:]*)") | |
echo -e "IP\t\t" $(echo $PAGE | grep -oP "IP\s*:\K([0-9\.]*)") | |
echo -e "Enlem\t\t" $(echo $PAGE | grep -oP "Enlem\s*:\K([0-9\.]*)") | |
echo -e "Boylam\t\t" $(echo $PAGE | grep -oP "Boylam\s*:\K([0-9\.]*)") |
This file contains hidden or 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 | |
if [ -z $1 ]; then | |
echo "sertifika ve ovpn oluşturulacak ismi yazınız !" | |
else | |
if [ ! -d /root/ovpn ]; then | |
mkdir /root/ovpn | |
fi | |
cd /etc/openvpn/easy-rsa/ |
OlderNewer