Skip to content

Instantly share code, notes, and snippets.

View CesarChaMal's full-sized avatar

Cesar Francisco Francisco Chavez Maldonado CesarChaMal

View GitHub Profile
@Toonidy
Toonidy / nt-unlimited-garage-space.md
Last active September 17, 2024 09:24
Nitro Type/Math 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.

@mikepfeiffer
mikepfeiffer / stress.sh
Created January 27, 2019 21:05
Install Stress Utility on Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
@ianchan85
ianchan85 / sublimetext
Created September 14, 2017 16:38
Sublime text 3 license
----- BEGIN LICENSE -----
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
@B-Galati
B-Galati / Makefile
Last active May 31, 2024 00:51
Example of Makefile for php script
.PHONY: help clean build vendor node_modules test php-cs-fixer
SYMFONY_ENV ?= dev
SYMFONY_CONSOLE_ARGS ?= --env=dev
SYMFONY_ASSETS_INSTALL ?= relative
COMPOSER_ARGS ?=
PHP=php
ifneq ($(SYMFONY_ENV), dev)
COMPOSER_ARG = --optimize-autoloader --no-dev --no-suggest --no-interaction --classmap-authoritative
@rilwis
rilwis / remove-resources.php
Created June 1, 2016 05:52
Remove scripts and styles for metabox.io
<?php
// Remove styles of plugin
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
add_filter( 'bbp_default_styles', '__return_empty_array' );
// Remove bbPress scripts on non-bbPress pages
add_filter( 'bbp_default_scripts', function ( $scripts )
{
return is_bbpress() ? $scripts : [ ];
} );
@bennadel
bennadel / unbind-scope-event.htm
Created November 21, 2014 12:50
Unbinding Scope.$on() Event Handlers In AngularJS
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Unbinding Scope.$on() Event Handlers In AngularJS
</title>
<link rel="stylesheet" type="text/css" href="./demo.css"></link>
@Dyrcona
Dyrcona / quickpick
Last active August 9, 2024 13:47
A bash script to batch git cherry-pick of many commits from a single source branch. It can become a new git command if you save it in your path with a name like git-quickpick. Then, you can run it like so `git quickpick foo/bar'. Very handy, that.
#!/bin/bash
# Author: Thomas Berezansky <[email protected]>
# Author: Jason Stephenson <[email protected]>
#
# Feel free to use and to share this script in anyway you like.
# This script is intended as a shortcut for the git cherry-pick
# command when you have several commits that you want to cherry-pick
# into your local branch from another branch. It often results in a
@trodrigues
trodrigues / gist:1023167
Created June 13, 2011 16:51
Checkout only certain branches with git-svn
If you want to clone an svn repository with git-svn but don't want it to push all the existing branches, here's what you should do.
* Clone with git-svn using the -T parameter to define your trunk path inside the svnrepo, at the same time instructing it to clone only the trunk:
git svn clone -T trunk http://example.com/PROJECT
* If instead of cloning trunk you just want to clone a certain branch, do the same thing but change the path given to -T:
git svn clone -T branches/somefeature http://example.com/PROJECT