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
import os.path
import urllib.request
from PIL import Image
# for x in range(-225, -228):
# for y in range(85, 90):
# https://map.smpearth.com/tiles/world_the_end/flat/-8_2/z_-227_87.png
{
"name": "locatesnow",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"keywords": [],
{
"name": "locatesnow",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"keywords": [],
@samyok
samyok / index.html
Created April 24, 2020 22:45
Items on circle
<ul class='circle-container'>
<li><img src='http://lorempixel.com/100/100/city'></li>
<li><img src='http://lorempixel.com/100/100/nature'></li>
<li><img src='http://lorempixel.com/100/100/abstract'></li>
<li><img src='http://lorempixel.com/100/100/cats'></li>
<li><img src='http://lorempixel.com/100/100/food'></li>
<li><img src='http://lorempixel.com/100/100/animals'></li>
<li><img src='http://lorempixel.com/100/100/business'></li>
<li><img src='http://lorempixel.com/100/100/people'></li>
</ul>
@samyok
samyok / Valorant.md
Created May 22, 2020 04:13
How to get around "We couldn't install a required dependency. Please try again, restart your computer or reach out to us at Riot Support"

Search for "Command Prompt" in your search bar IMPORTANT: Click on "Run as administrator" Copy this and right click inside your terminal:

sc delete vgc
sc delete vgk
sc stop vgk

and relaunch Valorant.

@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.
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 / 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
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 / [...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,
}),