Skip to content

Instantly share code, notes, and snippets.

View null2264's full-sized avatar

Ahmad Ansori Palembani null2264

View GitHub Profile
@null2264
null2264 / s3cmd.md
Last active May 29, 2024 16:11
s3cmd for cloudflare R2

Since there's no documentation on how to use R2 with s3cmd, it's annoyingly confusing to configure.


These are the easy parts:

  • Access Key -> Access Key ID
  • Secret Key -> Secret Access Key
  • Default Region Key -> Should always be set to auto
  • S3 Endpoint -> Endpoint (.r2.cloudflarestorage.com)
@null2264
null2264 / valhelsia6furniture.js
Last active December 26, 2023 11:08
Workaround for Valhelsia Furniture crafting recipe being broken by KubeJS (ironically) using KubeJS. For Valhelsia 6.
ServerEvents.recipes(e => {
e.forEachRecipe({ output: /valhelsia_furniture:\S+/ }, r => {
const recipeId = r.getId();
const jIngredients = r.json.get('key');
const keys = jIngredients.keySet();
const ingredients = {};
keys.forEach(key => {
let value = jIngredients.get(key);
const forge = value.get('forge_value');
@Mixin(PackType.class)
public class ResourcePackTypeExtender
{
@Shadow
@Final
@Mutable
private static PackType[] $VALUES;
@Invoker(value="<init>")
private static PackType create(String name, int ordinal, String directoryName)
@null2264
null2264 / finder.json
Last active June 29, 2022 01:35
Karabiner Complex Modifications
{
"title": "Finder Improved",
"comment": "Based on https://github.com/pqrs-org/KE-complex_modifications/blob/main/public/json/finder.json",
"rules": [
{
"description": "Use Return as Open",
"manipulators": [
{
"type": "basic",
"from": {
@null2264
null2264 / youtube.py
Created May 18, 2021 09:29
YouTube Notification using Discord Bot (Cog)
import asyncio
import discord
import xmltodict
from aiohttp import web
from discord.ext import commands
# THIS CODE IS MADE FOR TESTING,
@null2264
null2264 / cubari.json
Created April 16, 2021 10:35
Template for Cubari, https://cubari.moe
{
"chapters":{
"0":{
"title":"<Chapter Name>",
"volume":"<Chapter Volume Number>",
"groups":{
"<scanlator/translator group>":"/proxy/api/imgur/chapter/<imgur id>/"
},
"last_updated":"1618553820"
}
@null2264
null2264 / y3_math_t11.ipynb
Last active December 8, 2020 08:09
Y3_Math_T11.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.