Skip to content

Instantly share code, notes, and snippets.

View leobrines's full-sized avatar
👽

Leo leobrines

👽
View GitHub Profile
@leobrines
leobrines / yowsup-wsp-latest-version.js
Created August 25, 2018 02:35
Yowsup utility to have the updated APK of WhatsApp, process it and obtain the version of WhatsApp and Classdex md5
#!/usr/bin/python3
#
# Yowsup utility to have the updated APK of WhatsApp, process it and obtain the version of WhatsApp and Classdex md5
# Using this data in env_android.py will decrease the probability that WhatsApp will ban you
#
# Install dependencies before use:
# sudo pip3 install Request requests http cookiejar bs4 apkutils
#
# Example output:
# WhatsApp Version: 2.17.296
@leobrines
leobrines / userconfig-highquality.cfg
Last active August 26, 2018 18:56
CS1.6 - High quality config
// CFG by 255
// Name
name "255"
// Rates and fps
rate 100000
fps_max 100
cl_updaterate 102
cl_cmdrate 101
@leobrines
leobrines / autoexec-bestfps.cfg
Created August 26, 2018 19:08
CS:GO Config for best fps and less distractions
// Launch Options
// -high -novid -nojoy -nod3d9ex -threads 2 (cantidad de nucleos del procesador) -refresh 60 (hercios del monitor) +exec autoexec.cfg
// NETCODE
// En un servidor tickrate 64 necesitaríamos 1200 * 64 = 76800 bytes.
// De ahi que los servidores de Valve tengan un rate por defecto de 80.000 bytes
// En un servidor tickrate 100, 1200*100 = 120000 bytes de rate.
// En un servidor tickrate 128*1200 = 153600 bytes de rate.
// Rates and fps
@leobrines
leobrines / .vimrc
Last active September 4, 2018 19:46
Vim Config | KISS Principle
" ------ Basic Commands -----------
set history=500
set nocompatible
set encoding=utf-8
set omnifunc=syntaxcomplete#Complete
set autoread
au BufReadPost *.pug set syntax=javascript
filetype plugin on
@leobrines
leobrines / pomo.sh
Created April 19, 2019 16:32
Pomodoro for Linuxers
#!/bin/bash
zenity --warning --text="25-minutes pomodoro started!"
sleep 1500
echo "Good job! finished pomodoro!" >> ~/finish.txt
gedit ~/finish.txt
rm ~/finish.txt
@leobrines
leobrines / practice.cfg
Created April 23, 2019 17:37
Pregame CFG for practice with grenades
// Server configuration
sv_cheats 1
mp_limitteams 0
mp_autoteambalance 0
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_roundtime_hostage 60
mp_maxmoney 99999
mp_startmoney 99999
@leobrines
leobrines / config.js
Created May 3, 2019 21:53
Enviroment configuration for NodeJS - "Twelve-Factor App" | https://12factor.net/config
const enviroment = {};
Object.assign(enviroment, process.env);
for (let [key, value] of Object.entries(enviroment)) {
switch (value) {
case "true":
enviroment[key] = true;
break;
case "false":
enviroment[key] = false;
@leobrines
leobrines / create-user.js
Created May 18, 2019 21:00
Get key from "DuplicateKeyError" MongoDB - NodeJS
try {
await db.collection('users').create({
name,
email,
phone,
password
})
} catch (error) {
if (error.code == 11000) {
const duplicated = error.match(/index:\s([a-z]+)/i);
@leobrines
leobrines / sockets_svq.inc
Created June 14, 2019 22:41
AMXX CS 1.6 Include - This enable to query a server for it's information like hostname, map or players count with sockets
#include <amxmodx>
#include <sockets>
#define MAX_INFO_LEN 1400
#define MAX_INFO_FORMAT 100
// A2S_INFO definitions for source according to http://developer.valvesoftware.com/wiki/Server_Queries#Source_servers_2
#define A2S_INFO "^xFF^xFF^xFF^xFF^x54Source Engine Query^x00"
#define A2S_INFO_LEN 25
@leobrines
leobrines / markdown.css
Created July 4, 2019 14:40
Github Markdown Styles - Taken from devtool sources https://guides.github.com/features/mastering-markdown/
.markdown-body {
font-size: 15px;
line-height: 1.7;
overflow: hidden; }
.markdown-body > *:first-child {
margin-top: 0 !important; }
.markdown-body > *:last-child {
margin-bottom: 0 !important; }
.markdown-body a.absent {
color: #c00; }