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
@figassis
figassis / ssl.sh
Created March 14, 2017 19:43
Install SSL certificates on Ubuntu with Letsencrypt
#!/bin/bash
#Install/issue letsencrypt certificates on Ubuntu 16.04
if [ $# -ne 2 ]; then
echo Usage: $0 domain email
exit 1
fi
domain=$1
<?
$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 / goinstall-docker.sh
Last active December 19, 2018 13:22
Installer Script for Go (Linux and OSX)
#!/bin/bash
#Chekc if running on OSX or Linux
case "$OSTYPE" in
darwin*) VERSION=go1.9.2.darwin-amd64.tar.gz ;;
*) VERSION=go1.9.2.linux-amd64.tar.gz ;;
esac
wget https://redirector.gvt1.com/edgedl/go/$VERSION
tar -C /usr/local -xzf $VERSION
@figassis
figassis / randomusphones.json
Created December 2, 2018 13:58
1000 valid us phone numbers for testing
["+1-418-543-8090","+1-587-530-2271","+1-404-724-1937","+1-443-307-1473","+1-329-420-1792","+1-770-212-6011","+1-473-522-7496","+1-477-962-3907","+1-478-797-3175","+1-948-914-6246","+1-268-763-5180","+1-369-441-8619","+1-501-926-2756","+1-223-919-0967","+1-328-857-2537","+1-636-613-5429","+1-547-538-9848","+1-523-317-7761","+1-557-680-6290","+1-905-546-5021","+1-975-999-8212","+1-358-342-3321","+1-669-937-7112","+1-506-676-9834","+1-510-518-1673","+1-282-995-0297","+1-667-407-8456","+1-396-518-2124","+1-528-705-6591","+1-395-288-8024","+1-390-949-5954","+1-437-295-3568","+1-227-799-6356","+1-703-363-8155","+1-618-720-3464","+1-557-394-8274","+1-237-257-1580","+1-623-416-0089","+1-533-762-6549","+1-299-471-0213","+1-790-548-2248","+1-469-253-5139","+1-580-303-6087","+1-507-639-8400","+1-269-771-0214","+1-645-818-7021","+1-436-974-4859","+1-952-660-7350","+1-493-885-4329","+1-697-392-0705","+1-744-865-4521","+1-887-526-1105","+1-816-630-9743","+1-496-717-7301","+1-212-475-2813","+1-222-993-6707","+1-868-574-867
@figassis
figassis / usareacodes.json
Created December 3, 2018 18:52
US Area Codes
["201","202","203","204","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","226","228","229","231","234","236","239","240","242","246","248","249","250","251","252","253","254","256","260","262","264","267","268","269","270","272","276","279","281","284","289","301","302","303","304","305","306","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","330","331","332","334","336","337","339","340","343","345","346","347","351","352","360","361","364","365","367","380","385","386","401","402","403","404","405","406","407","408","409","410","412","413","414","415","416","417","418","419","423","424","425","430","431","432","434","435","437","438","440","441","442","443","445","450","456","458","463","469","470","473","475","478","479","480","484","500","501","502","503","504","505","506","507","508","509","510","512","513","514","515","516","517","518","519","520","530","531","533","534","539","540","541","544","54