Skip to content

Instantly share code, notes, and snippets.

View rochajg's full-sized avatar
🧨
...

Jordan Rocha rochajg

🧨
...
View GitHub Profile
@rochajg
rochajg / logs.sh
Created April 1, 2024 16:00
[Stardew Valley] Error log when loading Always On Server on SMAPI 4.0.4
[02:24:48 TRACE SMAPI] Always On Server (from Mods/Always On Server/Always On Server.dll)...
[02:24:48 TRACE SMAPI] Rewrote Always On Server.dll for OS...
[02:24:48 TRACE SMAPI] Rewrote Always On Server.dll to fix FarmerTeam.SetLocalReady method, Game1.getCharacterFromName method, HUDMessage..ctor method, Object..ctor method, OverlaidDictionary.get_Values method, StardewValley.Network.IWorldState type, StardewValley.Network.OverlaidDictionary/ValuesCollection type...
[02:24:48 TRACE SMAPI] Broken code in Always On Server.dll: reference to StardewValley.Farmer.eventsSeen (field returns NetStringHashSet, not NetIntList), reference to StardewValley.Farmer.mailReceived (field returns NetStringHashSet, not NetStringList), reference to StardewValley.Farmer.set_CombatLevel (no such property), reference to StardewValley.Farmer.set_FarmingLevel (no such property), reference to StardewValley.Farmer.set_FishingLevel (no such property), reference to StardewValley.Farmer.set_ForagingLevel (no such pro
@rochajg
rochajg / index.html
Last active August 30, 2022 03:01
vYRogZr
<body style="margin: 0;">
<script>
const boardWidth = window.innerWidth - 20;
const scaleHeight = window.innerHeight - 113;
const scaleWidth = Math.floor(boardWidth / 4.1111);
const embd = document.createElement("a");
embd.dataset.pinDo = "embedBoard";
embd.dataset.pinLang = "pt";
embd.dataset.pinBoardWidth = boardWidth;
embd.dataset.pinScaleHeight = scaleHeight;
CREATE DATABASE IF NOT EXISTS `library`;
USE `library`;
--
-- Table structure for table `author`
--
DROP TABLE IF EXISTS `author`;
CREATE TABLE `author` (
`id` int NOT NULL AUTO_INCREMENT,
from typing import Optional
import os
import re
import json
import requests
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
import random # To generate random number
import datetime # To get current date/time
import time # To generate sleep process
from multiprocessing import Pool
THREADS_COUNT = 10
cases = [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
alert("JS Inject working...");
@rochajg
rochajg / StandardJS_Instructions.md
Last active November 1, 2019 19:30
How to setup the main lint to StandardJS

How to setup StandardJS lint

The npm packages

First install this packages as dev dependencies

npm i -D eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard

#or

yarn add -D eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
.....
...... ......
#########. ....
######### ...
,#######/ ...
.. ..
.. ...
.. ################# ..
.. .####################### ..
.. .########################### ..
@rochajg
rochajg / robot.js
Last active October 24, 2019 23:39
const https = require("https");
const print = function() {
return new Promise((resolve, reject) => {
const url =
"https://gist.github.com/RochaJG/d817d739f2bef3e5099d5568d67dc6f7/raw/882f84f7e62bd0d433eeabc88fc99231289939d0/roboto.color.node.json";
https.get(url, res => {
res.setEncoding("utf8");
let body = "";
@rochajg
rochajg / installing-postman.md
Created October 10, 2019 19:21 — forked from ba11b0y/installing-postman.md
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being depracated. Download postman from https://dl.pstmn.io/download/latest/linux

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz

If any version is installed before, remove it.

sudo rm -rf /opt/Postman