Skip to content

Instantly share code, notes, and snippets.

@clucle
clucle / save.js
Last active May 8, 2024 02:47
pure js save text and json object to file
function saveTextToFile() {
const saveText = "tmp";
// file setting
const text = saveText;
const name = "sample.json";
const type = "text/plain";
// create file
const a = document.createElement("a");
@lavantien
lavantien / modern-software-engineering-resources.md
Last active May 8, 2024 02:46
Modern Software Engineering Resources

Modern Software Engineering

Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.

Wayback Machine (archive of the internet), Anna's Archive (open ebooks/papers library), 1337x (archive of all media).

  • Z. (down) Notes below. Avoid all funnel sales and paid bootcamps at all cost, and don't ever work free for someone (take home projects, one way interview, etc.), you're just feeding the scammers and grifters while wasting your time and resources. Also don't forget proper OpSec (don't talk about your personal details, identifiable pictures/location/voice/metadata; aware of social engineering, sunk cost fallacy, FUD, FOMO, and identity theft; and do threat modeling, etc.), self defense gears, and physical/mental strength.
  • A. (go) Development Environment (10 items) (Linux, Neovim, Dev Tools, Languages, Configs, S
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Professional Enterprise
Professional Workstation
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
import torch
import glob
import numpy as np
import imageio
import cv2
import torch.utils.data as data
import torch.nn.functional as F
from torchvision.transforms import Compose
@danielchc
danielchc / docker-emby-bypass.md
Last active May 8, 2024 02:41
Emby Premiere: ByPass Docker container

Emby Premiere ByPass Docker container

❗ All the information provided on this tutorial are for educational purposes only. I'm not responsible for any misuse of this information. If you like the app buy it

Table of Contents

@wsgzao
wsgzao / rps.sh
Last active May 8, 2024 02:39
rps.sh
#!/bin/bash
# chkconfig: 2345 90 60
### BEGIN INIT INFO
# Provides: rps
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: enable rps config for ubuntu
# Description: enabele rps which is a kernel tweak for network performance
@camnwalter
camnwalter / hypixel-api-key.md
Last active May 8, 2024 02:35
API Keys After Hypixel's Changes

How to get a new API key after the Hypixel API changes

This key will last forever, and should be for personal use only. Providing a proxy like this to the public is strictly against Hypixel's API Policies.


  1. Go to the Hypixel Developer Dashboard, and log in using your forums account.
  2. Click "Create Development Key" to enable the "Create App" button in the top right.
  3. Create a new app. For this guide, we will make a personal app. Click the Personal API Key button, and fill out the form.
  • For the link field in the application, I just submitted my Cloudflare Workers URL generated in the next section of this guide. Just make sure the link is related to your project in some way.
  1. Once you submit the form, the key should be accepted shortly, just refresh the dashboard. Make sure to copy the api key Hypixel provides you for this application
@rambabusaravanan
rambabusaravanan / detect-js-framework.js
Last active May 8, 2024 02:33
Detect JS Framework used in a Website
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I)
if(!!window.React ||
!!document.querySelector('[data-reactroot], [data-reactid]') ||
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer')))
)
console.log('React.js');
if(!!document.querySelector('script[id=__NEXT_DATA__]'))
console.log('Next.js');
@o0-o
o0-o / arch-install.sh
Last active May 8, 2024 02:32
Install Arch Linux on MD/LUKS/LVM (Including /boot) + AppArmor or SELinux + Stock AwesomeWM
#!/usr/bin/env zsh
# WARNING: THIS SCRIPT WILL AGGRESSIVELY DESTROY ALL DATA ON ALL DRIVES
# ON THIS SYSTEM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
# This script assumes 3 drives (sda sdb and sdc) are present and the
# first 2 are identical in size. The majority of the operating system
# is installed onto a mirror of sda and sdb. Home is installed on sdc.
########################################################################
declare adm_user='o0-o'