Skip to content

Instantly share code, notes, and snippets.

View samyok's full-sized avatar
🌴
palo alto

Samyok Nepal samyok

🌴
palo alto
  • University of Minnesota, Twin Cities
  • Minneapolis, MN
  • LinkedIn in/samyok
View GitHub Profile
@samyok
samyok / setup.sh
Last active January 17, 2025 23:10
new mac setup
# 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
{
"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" : {
@samyok
samyok / Brewfile
Last active November 18, 2024 23:56
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"
# 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
# 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
@samyok
samyok / [...nextauth].js
Created February 12, 2022 22:34
nextauth
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,
}),
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";
@samyok
samyok / cloud-config.yml
Last active August 7, 2020 18:12
rancher cloud config
rancher:
network:
dns:
nameservers:
- 1.1.1.1
- 1.0.0.1
interfaces:
eth0:
dhcp: true
gateway: 192.168.0.1
require('dotenv').config();
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', e => {
console.log("Started bot");
})
const emojis = {
@samyok
samyok / selfbot.js
Created June 14, 2020 05:41 — forked from rigwild/selfbot.js
A simple Discord Self-bot using console
'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.