Skip to content

Instantly share code, notes, and snippets.

View gustavocp's full-sized avatar

Gustavo Pereira gustavocp

  • Ekz
  • Rio de janeiro
View GitHub Profile
server {
# address and port accepted by the server
listen 80; ## listen for ipv4
#listen [::]:80 default ipv6only=on; ## listen for ipv6
# server IP to compare against http requests, uncomment and set proper value.
# Enter the hostname or IP address you use to reach this server. If you run on your dev environment it might be localhost.
# Note: If your vb install is in a folder inside your domain <mysite>/forum/install/path please change location directives defined below to include the path first. e.G:
# vbulletin.com/forum
#
@gustavocp
gustavocp / gist:b285e3e2f161789e5a26
Last active August 29, 2015 14:06
topBarServerSoft
#################################
COLOCAR NO HTML ANTES DE <div id="topbar"
#################################
<style>
#serversoftBar {
height: 25px;
font-size: 12px;
color: #fff;
padding: 5px 10px 0px 0px;
@gustavocp
gustavocp / main.lua
Last active August 29, 2015 14:10 — forked from tariqkhatib/main.lua
starCtr = 0
stars = {}
currTransSpeed = 500
displayHeight = display.contentHeight
math.randomseed( os.time() )
local function removeMe() --remove stars after reaching end of screen
for i=1,1100 do
if stars[i] ~= nil then
if stars[i].y >= displayHeight then
#!/bin/bash
cd /root
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzf ioncube_loaders_lin_x86-64.tar.gz
cp ioncube/ioncube_loader_lin_5.3.so /usr/lib/php5/20090626/
file=/usr/lib/php5/20090626/ioncube_loader_lin_5.3.so
chmod 644 $file
echo zend_extension=$file > /etc/php5/conf.d/zend_extensions.ini
{
"keys": ["txtLogin", "txtPassword"] ,
"values": [
["T135549", "T135549"],
["T135550", "T135550"],
["T135551", "T135551"],
["T135552", "T135552"]
]
}
@gustavocp
gustavocp / gist:97aa149adea2463a593883f6ee6ceada
Created November 15, 2016 17:50
csv-carga-users-sample
T125770,T125770,2240
T128316,T128316,2241
T130011,T130011,2242
T133827,T133827,2243
T135549,T135549,2244
T136003,T136003,2245
T136444,T136444,2246
T136497,T136497,2247
T136685,T136685,2248
T136700,T136700,2249
@gustavocp
gustavocp / teste-rafa.csv
Created November 26, 2016 21:35
teste-rafa
Event Start Date End Date
Marketing Campaign 20150102 20150108
Sales Webinar 20141228 20150106
Staff Meeting 20141217 20141227
Company Retreat 20141110 20141230
Type,Count
Visitors,15654
Leads,4064
Customers,1987
Repeat Customers,976
{
"version": 1,
"variables": [{
"names": ["txtLogin", "txtPassword", "idUser"],
"values": [
["T141315", "T141315", "2266"],
["T141335", "T141335", "2267"],
["T229941", "T229941", "2277"],
["T229944", "T229944", "2278"]
]}
<?php
/**
* @var \App\View\AppView $this
*/
?>
<div class="tasks form">
<?= $this->Form->create($task) ?>
<fieldset>
<legend><?= __('Add Task') ?></legend>
<?php