Skip to content

Instantly share code, notes, and snippets.

View figassis's full-sized avatar

Assis Ngolo figassis

View GitHub Profile

Contrato Arrasador 3

Atualizado em: 11/07/2012

Entre nós [nome da empresa] e você [nome do cliente]

Sumário:

Nós faremos o melhor para satisfazer suas necessidades e atender suas expectativas, mas é importante registrar tudo por escrito para que todos conheçam suas responsabilidades (quem faz o quê) e saibam o que acontece quando algo dá errado. Neste contrato você não encontrará termos jurídicos complicados ou textos longos e incompreensíveis. Nós não temos interesse em fazê-lo assinar algo que poderá se arrepender depois. O que nós queremos é o melhor para os dois lados, agora e no futuro.

# update linux and install dev tools
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install git libcurl libcurl-devel openssl-devel openssl
# install some depenencies for cuda
sudo yum -y install mesa-libGLU-devel-9.0-0.9.19.amzn1.x86_64 libXi-devel-1.6.1-3.7.amzn1.x86_64 libXmu-devel-1.1.1-2.8.amzn1.x86_64 libX11-devel-1.5.0-4.10.amzn1.x86_64 mesa-libGLU-devel-9.0-0.9.19.amzn1.x86_64
# jansson library
wget ftp://fr2.rpmfind.net/linux/epel/testing/6/x86_64/jansson-2.6-1.el6.x86_64.rpm
sudo yum -y install jansson-2.6-1.el6.x86_64.rpm
@figassis
figassis / Castle.xml
Created August 21, 2016 20:46 — forked from bemasher/Castle.xml
Example of parsing xml in golang.
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>
@figassis
figassis / fix-wordpress-permissions.sh
Created November 4, 2016 15:18 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@figassis
figassis / trello.md
Created March 11, 2017 17:43 — forked from eric1234/trello.md
Trello Guidelines

A few quick guidelines on my conventions when using Trello. These are not rules. Trello doesn't enforce a structure allowing each project to adapt to it's needs. But this is a good place to start:

Lists

  • Unquoted - Any card being added to the project which is not in the statement of work and not a bug related to work covered by the statement of work goes here. The goal of this list is to avoid scope creep. If scope is being added we want it to be an explicit decision with an explicit cost estimation. The person creating the card should try to estimate the cost (or get someone to do so for them). The client can then choose to move it to the Todo list if they want to increase the scope. If they choose to hold off for now this list provides an excellent idea source for future rounds of development.
  • Todo - These are tasks that need to be done which are not in active development.
  • In Progress - These are tasks that are actively being worked on by a developer. If you are not actively w
<?
$entities = array('image', 'photo', 'text', 'source', 'site', 'traffic', 'money', 'book', 'e-book', 'file', 'smartphone', 'camera', 'notebook', 'cities', 'distances', 'cars', 'mobile', 'book', 'sex', 'love', 'classifieds', 'ads', 'alcohol', 'travel');
$verbs = array('sell', 'buy', 'rent', 'exchange', 'free', 'give', 'book', 'clean', 'find', 'classify', 'compare');
echo '<table style="width: 100%">';
foreach ($entities as $entity)
{
echo '<tr>';
foreach ($verbs as $verb)
echo "<td style='font-size: 14px; padding: 5px; text-align: center'>$verb $entity</td>";
echo '</tr>';
@figassis
figassis / lista-de-nacionalidade.txt
Created July 31, 2019 08:23 — forked from lpirola/lista-de-nacionalidade.txt
Lista de países em português com suas respectivas nacionalidades
Antígua e Barbuda - Antiguano
Argentina - Argentino
Bahamas - Bahamense
Barbados - Barbadiano, barbadense
Belize - Belizenho
Bolívia - Boliviano
Brasil - Brasileiro
Chile - Chileno
Colômbia - Colombiano
Costa Rica - Costarriquenho
@figassis
figassis / slice-batch-in-parallel.go
Created February 3, 2020 17:01 — forked from VojtechVitek/slice-batch-in-parallel.go
Golang - Loop over slice in batches (run something in parallel on a sub-slice)
package main
import "fmt"
func main() {
slice := make([]int, 159)
// Split the slice into batches of 20 items.
batch := 20
@figassis
figassis / goinstall.sh
Last active May 13, 2020 17:40 — forked from jpillora/install-go.sh
Install latest version of Go in Linux
#!/bin/bash
mkdir -p $HOME/go
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer
. ~/.bash_profile
echo "Go is installed and your GOPATH is '$HOME/go'"
echo "Please reload this shell or enter the command '. ~/.bash_profile'"
@figassis
figassis / proto3.md
Last active March 30, 2022 16:59 — forked from shankarshastri/LearnXInYMinProtocolBuffer.proto
Protocol Buffer CheatSheet

Proto3 Cheat Sheet

Information From: https://developers.google.com/protocol-buffers/docs/proto3

A few rules

  • Declaring Message In Protocol Buffer:

  • As you can see, each field in the message definition has a unique number.

  • Field numbers identify fields in message binary format. Should not be changed once message is in use