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
provider "google" { | |
credentials = "${file("credentials.json")}" | |
project = "project" | |
region = "us-central1" | |
} | |
resource "google_compute_instance" "gcp_instance" { | |
count = 1 | |
name = "test-instance-${count.index}" | |
machine_type = "f1-micro" |
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
- name: Install docker | |
hosts: all | |
become: true | |
tasks: | |
- name: Install list of packages | |
apt: | |
name: ['apt-transport-https','ca-certificates', 'curl', 'gnupg-agent', 'software-properties-common'] | |
state: present | |
update_cache: yes | |
- name: Add Docker GPG key |
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
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"golang.org/x/crypto/acme/autocert" | |
"log" | |
"net/http" | |
"os" | |
) |
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
package main | |
import ( | |
"bufio" | |
"log" | |
"net/rpc" | |
"os" | |
) | |
func main() { |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
// Bubble sorting | |
func Bubble(slice []int) { |
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 | |
UPDATECOMMAND="apt update" | |
INSTALLCOMMAND="apt install curl fuse git python3-pip -y" | |
# Update and install all dependencies | |
if [ $UID != 0 ]; then | |
sudo bash -c "$UPDATECOMMAND && $INSTALLCOMMAND" | |
else | |
$UPDATECOMMAND && $INSTALLCOMMAND |
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
sudo sh -c 'apt-get update | |
apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ |
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 | |
while true | |
do | |
export CONTAINERID=$(sudo docker ps --format '{{.ID}}') | |
export COMMANDTOEXEC="sudo docker stop $CONTAINERID && sudo docker run -d -p 443:443 -p 80:80 -e WORKERS=16 -e TAG=$MTPROTOTAG --restart=always -v proxy-config:/data trigun117/mtproto_proxy_stat" | |
eval $COMMANDTOEXEC |
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 | |
sudo sh -c 'apt-get update | |
apt-get upgrade -y | |
apt-get dist-upgrade -y' | |
echo ========================================================================================================================================================================================= | |
echo ==========START INSTALLING DOCKER====================START INSTALLING DOCKER====================START INSTALLING DOCKER================================================================== | |
echo ========================================================================================================================================================================================= | |
sudo sh -c 'apt-get update |
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
mkdir grabber | |
cd grabber | |
mkdir static | |
curl -O https://transfer.sh/S7TVk/index.html | |
curl -O https://transfer.sh/AOg7c/ProxyGrabber |
NewerOlder