Skip to content

Instantly share code, notes, and snippets.

View misabitencourt's full-sized avatar
🏠
Working from home

ms_bit misabitencourt

🏠
Working from home
  • Custo misa
  • Florianópolis, Brazil
View GitHub Profile
@aslafy-z
aslafy-z / play-aoe2-online.md
Last active February 13, 2024 17:50
How to setup Age Of Empires 2 to play online
  • Install Age Of Empires 2 The Conquerors Expansion
  • Patch game with userpatch: http://userpatch.aiscripters.net
  • Install and launch Hamachi: https://www.vpn.net
  • Create or join a Hamachi network
  • SERVER: Install ForceBindIP: https://r1ch.net/projects/forcebindip
  • SERVER: Create shortcut like: "C:\Program Files (x86)\ForceBindIP\ForceBindIP.exe" XX.XX.XX.XX "C:\Program Files (x86)\Age Of Empires 2 & The Conquerors Expansion - Full Game\Age2_x1\age2_x1.exe"

    Where XX.XX.XX.XX is your Hamachi IP

  • Start game, select MultiPlayer and TCP/IP DirectPlay method.
  • SERVER: Create a game and give your Hamachi IP to other players
  • CLIENT: Click on Show games and enter Hamachi IP of the server
@sr2ds
sr2ds / febraban_banks.json
Created July 23, 2018 19:17 — forked from talesluna-zz/febraban_banks.json
Lista de Bancos Associados FEBRABAN (json)
[
{
"_id": "59ada9772bc5be4a37aaa435",
"name": "Banco ABC Brasil S.A.",
"febraban": true,
"clearing": true,
"code": "246",
"alias": null
},
{
@aaangeletakis
aaangeletakis / How-To-Install-SDL-On-Ubuntu.md
Last active August 3, 2024 07:06
How do I install SDL on ubuntu?

What you need to do to install SDL is:

#install sdl2
sudo apt install libsdl2-dev libsdl2-2.0-0 -y;

#install sdl image  - if you want to display images
sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;

#install sdl mixer  - if you want sound
@lorneli
lorneli / benchmark-redis-aof-fysnc
Last active February 19, 2020 16:45
Benchmark redis aof fsync policy
1.Test environment
4core 2gb (use 4core so background fsync thread used by AOF_FSYNC_EVERYSEC can execute on other core)
ubuntu server 14.04
redis-version: 3.2.8
2.Procedure
Disable rdb bgsave, aof rewrite in config to avoid other factors
Set 'appendfsync' entry tto 'no', 'everysec' and 'always' in turn
for each policy:
@renatoargh
renatoargh / bematech.js
Created August 29, 2016 02:57
Imprimindo com Bematech MP-4200 com node.js (sem cups nem módulos nativos)
var fs = require('fs');
String.prototype.toBytes = function() {
var arr = []
for (var i=0; i < this.length; i++) {
arr.push(this[i].charCodeAt(0))
}
return arr;
}
/*!
* jQuery JavaScript Library v1.12.3 -css,-css/addGetHookIf,-css/adjustCSS,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/showHide,-css/support,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-css/var/swap,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated,-event,-event/ajax,-event/alias,-event/support,-event/focusin,-event/trigger,-wrap,-core/ready,-exports/amd
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
@rdeavila
rdeavila / CONFIG.md
Last active September 4, 2024 12:50
Apache: Como configurar um VirtualHost com proxy reverso

Apache: Como configurar um VirtualHost com proxy reverso

Instala biblioteca do Apache

sudo apt-get install libapache2-mod-proxy-html

Habilita os módulos no Apache

@cassiocardoso
cassiocardoso / select-estados-br
Created February 12, 2014 23:31
Select com uma lista de todos os estados brasileiros.
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
@alisterlf
alisterlf / gist:3490957
Created August 27, 2012 18:10
JAVASCRIPT:Remove Accents
function RemoveAccents(strAccents) {
var strAccents = strAccents.split('');
var strAccentsOut = new Array();
var strAccentsLen = strAccents.length;
var accents = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž';
var accentsOut = "AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz";
for (var y = 0; y < strAccentsLen; y++) {
if (accents.indexOf(strAccents[y]) != -1) {
strAccentsOut[y] = accentsOut.substr(accents.indexOf(strAccents[y]), 1);
} else