Skip to content

Instantly share code, notes, and snippets.

@arye321
arye321 / database.rules.json
Created August 13, 2021 08:58 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
attach to console:
docker exec -it {img name} /bin/bash
or
docker exec -it {img name} /bin/sh
--network=host
docker run --name <name> -d -i -t ubuntu /bin/sh
docker run -i -t lazylion2/ubunto1:2 /bin/bash
docker images
@arye321
arye321 / jupyter remote.txt
Last active April 16, 2022 06:45
jupyter remote
jupyter notebook --generate-config
jupyter notebook password
jupyter-lab --ip 0.0.0.0 --port 8888 --no-browser
jupyter-lab --ip 0.0.0.0 --port 8888 --no-browser --allow-root
--ContentsManager.allow_hidden=True
open port 8888:
iptables -I INPUT -p tcp --dport 8888 --syn -j ACCEPT
@arye321
arye321 / 0 linux shit.txt
Last active September 26, 2023 17:26
linux shit
pip 3 install:
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
nano ~/.bashrc
// add at the end of file :
alias pip="pip3"
reset terminal
sudo passwd
@arye321
arye321 / auto walk - Copy.ahk
Last active December 14, 2021 06:10
Autohotkey Rust game autowalk
*XButton1::
GetKeyState, state, Shift
if (state = "D"){
send {w up}
send {shift up}
}
else{
send {w down}
send {shift down}
@arye321
arye321 / lines.txt
Last active February 9, 2022 07:45
"dota_chatwheel_message_antimage_laugh" "Ha ha ha ha ha ha ha ha ha ha ha ha!"
"dota_chatwheel_label_antimage_laugh" "Laugh"
"dota_chatwheel_message_antimage_thank" "I'll give them a drubbing they'll not soon forget!"
"dota_chatwheel_label_antimage_thank" "I'll give them a drubbing..."
"dota_chatwheel_message_antimage_deny" "Are you even trying?"
"dota_chatwheel_label_antimage_deny" "Are you even trying?"
"dota_chatwheel_message_antimage_1" "Magic is an abomination."
"dota_chatwheel_label_antimage_1" "Magic is an abomination."
"dota_chatwheel_message_antimage_2" "A disappointment."
"dota_chatwheel_label_antimage_2" "A disappointment."
@arye321
arye321 / general lines.txt
Created March 24, 2022 09:10
12v12 general
dp1 "Applause",
"Crash_and_Burn",
"Crickets",
"Party_Horn",
"Rimshot",
"Charge",
"Drum_Roll",
"Frog",
dp2 "Headshake",
"Kiss",
"hero_chat_wheel"
{
"dota_chatwheel_message_antimage_laugh" "Ha ha ha ha ha ha ha ha ha ha ha ha!"
"dota_chatwheel_label_antimage_laugh" "Laugh"
"dota_chatwheel_message_antimage_thank" "I'll give them a drubbing they'll not soon forget!"
"dota_chatwheel_label_antimage_thank" "I'll give them a drubbing..."
"dota_chatwheel_message_antimage_deny" "Are you even trying?"
"dota_chatwheel_label_antimage_deny" "Are you even trying?"
"dota_chatwheel_message_antimage_1" "Magic is an abomination."
"dota_chatwheel_label_antimage_1" "Magic is an abomination."
@arye321
arye321 / 0.md
Last active April 7, 2023 06:13
next+tailwind+yarn

yarn create next-app .

yarn add --dev tailwindcss postcss autoprefixer

yarn tailwindcss init -p

put in tailwind.config.js

content: [
@arye321
arye321 / [...nextauth].js
Created April 21, 2023 06:46
nextauth google mongo
import NextAuth from "next-auth";
import GoogleProvider from "next-auth/providers/google";
import { MongoDBAdapter } from "@next-auth/mongodb-adapter";
import clientPromise from "../../../lib/mongodb";
if (!process.env.GOOGLE_CLIENT_ID){
throw new Error("Please add GOOGLE_CLIENT_ID to .env.local")
}