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
# install brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# create ssh key | |
ssh-keygen | |
# sync ssh key with github | |
brew install gh | |
gh auth login |
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
{ | |
"Working Directory" : "\/Users\/samyok", | |
"Prompt Before Closing 2" : false, | |
"Selected Text Color" : { | |
"Green Component" : 0.92142927646636963, | |
"Blue Component" : 0.93115901947021484, | |
"Red Component" : 0.90730977058410645 | |
}, | |
"Rows" : 25, | |
"Ansi 11 Color" : { |
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
tap "adoptopenjdk/openjdk" | |
tap "cloudflare/cloudflare" | |
tap "homebrew/bundle" | |
tap "mhzawadi/cbonsai" | |
tap "ngrok/ngrok" | |
tap "oncletom/brew" | |
tap "oven-sh/bun" | |
tap "sdkman/tap" | |
tap "supabase/tap" | |
tap "zegervdv/zathura" |
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
# nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# node, yarn, pm2 | |
nvm install 16 |
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
# brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# brew install google chrome, discord, spotify | |
brew install --cask google-chrome | |
brew install --cask discord | |
brew install --cask spotify | |
# terminal, fish, fisher, gh |
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
import NextAuth from "next-auth" | |
import GithubProvider from "next-auth/providers/github" | |
export default NextAuth({ | |
// Configure one or more authentication providers | |
providers: [ | |
GithubProvider({ | |
clientId: process.env.GITHUB_ID, | |
clientSecret: process.env.GITHUB_SECRET, | |
}), |
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 rm -rf phpBB3; | |
if [ -f "phpBB-3.2.9.zip" ]; then | |
echo "phpBB 3.2.9 already exists. Installing with current zip file."; | |
sleep 1; | |
else | |
wget https://github.com/Nepaltechguy2/scioly-gallery-docker/releases/download/0.1/phpBB-3.2.9.zip; | |
fi | |
unzip phpBB-3.2.9.zip; | |
echo "Getting gallery code"; |
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
rancher: | |
network: | |
dns: | |
nameservers: | |
- 1.1.1.1 | |
- 1.0.0.1 | |
interfaces: | |
eth0: | |
dhcp: true | |
gateway: 192.168.0.1 |
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
require('dotenv').config(); | |
const Discord = require('discord.js'); | |
const client = new Discord.Client(); | |
client.on('ready', e => { | |
console.log("Started bot"); | |
}) | |
const emojis = { |
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
'use strict' | |
/** | |
* Discord Console Self bot | |
* | |
* Open chrome console on Discord using Ctrl+shift+i | |
* Go to the network tab, send a message and copy the 'Authorize' header sent by the app. | |
* Paste it in authHeader below. | |
* | |
* Paste the entire script in the console. |
NewerOlder