Skip to content

Instantly share code, notes, and snippets.

View CesarChaMal's full-sized avatar

Cesar Francisco Francisco Chavez Maldonado CesarChaMal

View GitHub Profile
@CesarChaMal
CesarChaMal / nt-unlimited-garage-space.md
Created November 12, 2023 12:06 — forked from Toonidy/nt-unlimited-garage-space.md
Unlimited Garage Space by Ray-Adams

Copy and paste the code below into the URL section of a new bookmark.

javascript:(async(a,b='',c,d=JSON.parse(JSON.parse(localStorage['persist:nt']).user).garage)=>{if(!a)return;for(c=0;c<a*30;c++)b+=`garage%5B${c}%5D=${d[c]||''}&`;await fetch('api/v2/loot/arrange-cars',{'headers':{'Authorization':'Bearer '+localStorage.player_token,'Content-Type':'application/x-www-form-urlencoded'},'body':b,'method':'POST','mode':'cors'});alert`Logging you out... Please log back in to see changes.`;document.querySelector('a.dropdown-link[href="/"]').click()})(prompt`Number of garage sections (~30 max):`)

Demostration by Nate Dogg: https://youtu.be/20Q3JKX_3Hk?t=237

Credits to Ray-Adams for making this originally.

@CesarChaMal
CesarChaMal / stress.sh
Created October 23, 2023 14:07 — forked from mikepfeiffer/stress.sh
Install Stress Utility on Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
@CesarChaMal
CesarChaMal / Java Base64
Created December 12, 2022 00:16 — forked from dragon66/Java Base64
Java Base64 encoder decoder
/**
* Copyright (c) 2014 by Wen Yu.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Any modifications to this file must keep this entire header intact.
*/
@CesarChaMal
CesarChaMal / introrx.md
Created August 10, 2022 10:12 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@CesarChaMal
CesarChaMal / docker-compose-for-keycloak-h2-import-realm.yml
Created March 17, 2022 12:13 — forked from davidovs/docker-compose-for-keycloak-h2-import-realm.yml
Docker-compose for Keycloak (embedded H2 database) with import previously exported realm.
version: '3'
networks:
default:
services:
keycloak:
image: jboss/keycloak
restart: always
environment:
KEYCLOAK_VERSION: 6.0.1
KEYCLOAK_USER: admin
@CesarChaMal
CesarChaMal / README.md
Created July 21, 2020 10:46 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@CesarChaMal
CesarChaMal / manage-etc-hosts.sh
Created July 4, 2020 14:59 — forked from irazasyed/manage-etc-hosts.sh
Bash Script to Manage /etc/hosts file for adding/removing hostnames.
#!/bin/sh
# PATH TO YOUR HOSTS FILE
ETC_HOSTS=/etc/hosts
# DEFAULT IP FOR HOSTNAME
IP="127.0.0.1"
# Hostname to add/remove.
HOSTNAME=$1
@CesarChaMal
CesarChaMal / Email Server (Windows Only).md
Created May 14, 2020 11:07 — forked from raelgc/Email Server (Windows Only).md
Setup a Local Only Email Server (Windows Only)
import java.nio.charset.StandardCharsets
import java.nio.charset.Charset
def string = 'おっぱい - うほ'
def bytes = string.getBytes(StandardCharsets.UTF_8)
def toString = {byte[] bs, Charset cs -> new String(bs, cs) }
def toBytes = {String s, Charset cs -> s.getBytes(cs) }
@CesarChaMal
CesarChaMal / Basket.java
Created December 6, 2019 18:42 — forked from mauricioaniche/Basket.java
TDD for Professionals - Discount example
package module1.exercise.discount;
import java.util.List;
public class Basket {
private double amount;
private List<Item> items;
public Basket(List<Item> itemss) {