❗ 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
Discover gists
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 |
#!/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 |
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.
- Go to the Hypixel Developer Dashboard, and log in using your forums account.
- Click "Create Development Key" to enable the "Create App" button in the top right.
- 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.
- 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
ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
// 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'); |
#!/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' |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
import { useEffect } from "react"; | |
const Keys = { | |
Backspace: "Backspace", | |
Tab: "Tab", | |
Enter: "Enter", | |
Shift: "Shift", | |
Control: "Control", | |
Alt: "Alt", | |
Pause: "Pause", |
The merge tool that ships with JetBrain's IntelliJ IDEA or WebStorm is really awesome and way better than FileMerge
. It is quite simple to configure SourceTree to use it as the default mergetool:
- Open the SourceTree preferences and select the
Diff
tab - Choose
Custom
both asVisual Diff Tool
and asMerge Tool
- Paste the following commands into the textfields:
- Diff Command:
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea diff