Skip to content

Instantly share code, notes, and snippets.

View ruyaoyao's full-sized avatar
❣️

Shiny ruyaoyao

❣️
View GitHub Profile
@ruyaoyao
ruyaoyao / windows-keys.md
Created March 4, 2026 07:18 — forked from rvrsh3ll/windows-keys.md
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@ruyaoyao
ruyaoyao / guide.md
Created August 28, 2021 12:25 — forked from Karunamon/guide.md
Nintendo Switch reverting to stock with no NAND backup

Restoring your Switch to stock WITHOUT a NAND backup.

Procedure by Nevercholt Tech (https://www.youtube.com/watch?v=gVjF_MKjSv8) - transcribed by Karunamon

Note: This procedure is somewhat advanced and, if you screw up, you are likely to hard brick your switch. *Proceed with caution!

Also note that this is a full reset. All save data, installed apps, everything will be lost.

What you need

@ruyaoyao
ruyaoyao / .profile
Created December 18, 2019 10:17 — forked from bellbind/.profile
[nodejs][nvm] bash function of node with full `Intl` locales support by automatic installing the prebuilt "icu4c-data" package
[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM
function node {
rawnode=$(which node)
icu4cdata=$(dirname $(dirname $rawnode))/lib/node_modules/icu4c-data
[[ -d $icu4cdata ]] || npm install -g icu4c-data@$($rawnode -e '
console.log((v => v.icu_ver_major + v.icu_endianness)(
process.config.variables));')
NODE_ICU_DATA=$icu4cdata $rawnode "$@"
}
@ruyaoyao
ruyaoyao / MockFile.js
Created September 25, 2018 01:55 — forked from josephhanson/MockFile.js
Mock file for JavaScript based file upload - with basic test harness
// mock file
function MockFile() { };
MockFile.prototype.create = function (name, size, mimeType) {
name = name || "mock.txt";
size = size || 1024;
mimeType = mimeType || 'plain/txt';
function range(count) {
var output = "";
@ruyaoyao
ruyaoyao / RFReactSelect.js
Created July 26, 2018 05:37 — forked from leocristofani/RFReactSelect.js
How to integrate React Select with Redux Form
import React, { PropTypes } from 'react';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
RFReactSelect.defaultProps = {
multi: false,
className: ""
};
RFReactSelect.propTypes = {
@ruyaoyao
ruyaoyao / codecept.conf.js
Created July 13, 2018 06:34 — forked from reubenmiller/codecept.conf.js
Example of custom helper to perform conditional click (without throwing an error)
const outputFolder = './output';
exports.config = {
output: outputFolder,
helpers: {
Puppeteer: {
url: 'http://google.com',
show: true,
chrome: {}
},
@ruyaoyao
ruyaoyao / delete-git-recursively.sh
Created May 18, 2018 01:52 — forked from facelordgists/delete-git-recursively.sh
Recursively remove .git folders
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf
@ruyaoyao
ruyaoyao / installing-node-with-nvm.md
Created May 10, 2018 10:06 — forked from d2s/installing-node-with-nvm.md
Installing Node.js for Linux & macOS with nvm
@ruyaoyao
ruyaoyao / entering_range.scpt
Created February 8, 2018 03:36 — forked from hiilppp/entering_range.scpt
AppleScript to unlock your Mac's screen. (Use EventScripts to automatically trigger script when a Bluetooth device (e.g., your iPhone) enters your Mac's range: http://www.mousedown.net/mouseware/EventScripts.html)
-- You need to create a Keychain item whose name matches what you use in place
-- of "[keychain_item_name]" on line #7 (and whose password is identical to your
-- user account's password).
tell application "System Events"
if ((get name of every process) contains "ScreenSaverEngine") then
set pw to (do shell script "security find-generic-password -l \"[keychain_item_name]\" -w")
tell application "ScreenSaverEngine" to quit
delay 0.5
keystroke pw