- Upload the script attached to your vps with its name as
modmail.sh
. - Run
chmod +x ./modmail.sh
- Then run
sudo ./modmail.sh
(Ignore sudo if logged in as a root user) - After the script has been completed successfully, just run
pipenv run python3 modmail/bot.py
andpipenv run python3 logviewer/app.py
to start the logviewer and the bot!
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
echo "Enter the region: " | |
read $REGION | |
echo "Enter the zone: " | |
read $ZONE | |
echo "Enter Firewall Rule Name: " | |
read $FIREWALL_RULE_NAME | |
gcloud container clusters create nucleus-backend \ |
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
echo "Enter Bucket Name:" | |
read BUCKET_NAME | |
echo "Enter Instance Name:" | |
read INSTANCE_NAME | |
echo "Enter VPC Name:" | |
read VPC_NAME | |
echo "Enter Zone Assigned:" |
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
:set number | |
:set relativenumber | |
:set autoindent | |
:set tabstop=4 | |
:set shiftwidth=4 | |
:set expandtab | |
:set softtabstop=4 | |
:set mouse=a | |
call plug#begin() |
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
#include<iostream.h> | |
#include<graphics.h> | |
void drawcircle(int x0, int y0, int radius) | |
{ | |
int x = radius; | |
int y = 0; | |
int err = 0; | |
while (x >= y) |
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
#include<graphics.h> | |
#include<iostream.h> | |
#include<math.h> | |
#include<conio.h> | |
class pixel | |
{ | |
public: | |
float dp; | |
int x1,y1,rad; | |
void circle(int x,int y,int rad) |
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
#include <iostream.h> | |
#include <graphics.h> | |
#include <dos.h> | |
void calculate(int *pk, int dx, int dy, int *x, int *y) { | |
++(*x); | |
if(*pk < 0) { | |
*pk = *pk + (2*dy); | |
} else if(*pk > 0) { | |
*pk = *pk + (2*dy) - (2*dx); |
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
body.dark { | |
--ion-color-primary: #428cff; | |
--ion-color-primary-rgb: 66, 140, 255; | |
--ion-color-primary-contrast: #ffffff; | |
--ion-color-primary-contrast-rgb: 255, 255, 255; | |
--ion-color-primary-shade: #3a7be0; | |
--ion-color-primary-tint: #5598ff; | |
--ion-color-secondary: #50c8ff; | |
--ion-color-secondary-rgb: 80, 200, 255; | |
--ion-color-secondary-contrast: #ffffff; |
I hereby claim:
- I am officialpiyush on github.
- I am piyushcodez (https://keybase.io/piyushcodez) on keybase.
- I have a public key ASBBbDc8X5y55i2R1ak1kRSppmRlqmcx0huUwUDClrlqEAo
To claim this, I am signing this object:
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
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y | |
apt-get -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev | |
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.31-9727-beta/softether-vpnserver-v4.31-9727-beta-2019.11.18-linux-x64-64bit.tar.gz | |
tar xzf softether-vpnserver-v4.31-9727-beta-2019.11.18-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.31-9727-beta-2019.11.18-linux-x64-64bit.tar.gz | |
cd vpnserver && sudo make | |
cd .. | |
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/ | |
sudo chmod 600 * |
NewerOlder