Skip to content

Instantly share code, notes, and snippets.

View officialpiyush's full-sized avatar
👾
Instructing machines

Piyush officialpiyush

👾
Instructing machines
View GitHub Profile
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 \
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:"
:set number
:set relativenumber
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set expandtab
:set softtabstop=4
:set mouse=a
call plug#begin()
#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)
#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)
#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);
@officialpiyush
officialpiyush / dark.css
Last active June 26, 2020 11:53
Dark CSS color theme for ionic projects
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;

Keybase proof

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:

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 *
@officialpiyush
officialpiyush / Dockerfile
Created July 25, 2019 18:17
Modmail Dockerfile
FROM alpine:3.10
WORKDIR /usr/src/modmail
COPY . .
ENV LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
RUN apk update \