Skip to content

Instantly share code, notes, and snippets.

View officialpiyush's full-sized avatar
👾
Instructing machines

Piyush officialpiyush

👾
Instructing machines
View GitHub Profile
@officialpiyush
officialpiyush / Install Modmail.md
Last active November 17, 2022 11:39
Install Modmail bot on your linux vps easily

Prerequesites

How To Run?

  • 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 and pipenv run python3 logviewer/app.py to start the logviewer and the bot!
@officialpiyush
officialpiyush / install_kshare.sh
Last active December 15, 2019 13:11
A Shell Script To Install Kshare
#!/bin/sh
# Author : Piyush Bhangale (ionadev) <bhangalepiyush@gmail.com>
echo "This Script Will Install KShare."
echo "This Will Require GIT pre-installed."
echo "Installing Deps"
apt install build-essential qt5-qmake qtbase5-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libqt5svg5-dev libqt5x11extras5-dev libxcb-cursor-dev libxcb-util0-dev libxcb-xfixes0-dev pkg-config qt5-default
echo "Cloning The KShare Repository"
git clone https://gitlab.com/ArsenArsen/KShare.git -b dev --recursive

Current Stable Version

  • The Below Configuration is for current stable ratelimited.me. However If You Want RLMEv3's config, just scrool down a bit!

How to install

  • Copy/paste the config into a text editor of your choice

  • Modify the values (especially YOUR_KEY_HERE with your uploader token)

  • Save as rlme.uploader in your uploaders folder in your KShare config folder (usually ~/.config/KShare)

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a,d , fib1 = 0, fib2 = 1, fib3 = 1;
cout << "Enter number";
//
// Created by Lab on 12/3/2018.
#include <conio.h>
#include <iostream>
using namespace std;
int main(){
int i,j,a[2][2];
cout << " Enter Matrix";
#include <conio.h>
#include <iostream>
using namespace std;
int main(){
int i,j,a[2][2],b[2][2],c[2][2];
cout << " Enter Matrix";
for(i=0 ; i < 2 ; i++){
#include <iostream>
using namespace std;
int main(){
int sum=0,a[5];
cout << "Enter Numbers!";
for(int i =0; i<5;i++){
cin >> a[i];
}
#include <iostream>
using namespace std;
int main(){
int a[5],max=0,min;
for(int i=0;i<5;i++){
cin >> a[i];
}
@officialpiyush
officialpiyush / activity.json
Created June 20, 2018 07:45
This Is A Activity Thing For Tournament Bot
[
{
"text": "Everyone",
"type": "WATCHING"
},
{
"text": "When Will Tournament Start",
"type": "WATCHING"
},