Skip to content

Instantly share code, notes, and snippets.

View jacksonfdam's full-sized avatar
💻
Coding...

Jackson F. de A. Mafra jacksonfdam

💻
Coding...
View GitHub Profile
@jacksonfdam
jacksonfdam / install_composer.sh
Created September 23, 2016 14:45
Ubuntu 14/15 for PHP5 development (LAMP, Composer, Git, phpMyAdmin)
#!/bin/bash
# https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md
set -euo pipefail
IFS=$'\n\t'
# Script will auto terminate on errors
# run like - bash script_name.sh
# Prevent source
[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return
@jacksonfdam
jacksonfdam / install-node-js.sh
Created September 23, 2016 14:44 — forked from ankurk91/install-node-js.sh
Install node js and npm on Ubuntu/Mac using nvm
#!/bin/bash
# Install node and npm via nvm - https://github.com/creationix/nvm
# Does not require git to be pre-installed, now using CURL
# Prevent source
[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return
# Script will auto terminate on errors
set -e
@jacksonfdam
jacksonfdam / xdebug.md
Created September 23, 2016 14:44 — forked from ankurk91/xdebug-mac.md
xDebug on Ubuntu and phpStorm

🪲 Install and Configure xDebug in Ubuntu and Php Storm 🐘

  • Assuming that you have already installed php and apache
  • Install xDebug php extension
sudo apt-get install php-xdebug
  • Now edit your php.ini and add these lines at last
@jacksonfdam
jacksonfdam / install_lamp.sh
Created September 23, 2016 14:44 — forked from ankurk91/install_lamp_ubuntu.sh
Prepare Ubuntu 16.04 for PHP development (php 7.0, Maria DB 10, MySQL 5.6, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Don't source it, run like - bash install_lamp.sh
# Script will auto terminate on errors
# Prevent source

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup

@jacksonfdam
jacksonfdam / gitcowsay.sh
Created January 21, 2016 13:48 — forked from netojoaobatista/gitcowsay.sh
Random commit messages
git config --global alias.cowsay '!git commit -m "`fortune | cowsay -f tux`"'
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
public static void copyFile(Activity c, String filename)
{
AssetManager assetManager = c.getAssets();
InputStream in = null;
OutputStream out = null;
try
{
in = assetManager.open(filename);
String newFileName = sdcardpath/filename;

Plano de Ensino

HTML5

  • História
  • Evolução
  • Semântica
  • Acessibilidade
  • API's