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
// Screen Template
package ${PACKAGE_NAME}
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
@Composable
fun ${NAME}Screen(
${NAME}State: ${NAME}UIState,
@jacksonfdam
jacksonfdam / .htaccess
Created May 28, 2020 03:58 — forked from morcegon/.htaccess
.htaccess optimized for laravel
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
Android developers resources
Getting started in Android development
Android developers
- official website https://developer.android.com/
- Codelabs https://codelabs.developers.google.com/
- Youtube https://www.youtube.com/user/androiddevelopers
Kotlin
@jacksonfdam
jacksonfdam / docker-setup.sh
Created August 16, 2018 11:54 — forked from alikon/docker-setup.sh
Docker & Docker Compose Ubuntu 17.10
#!/bin/bash
# docker
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"
@jacksonfdam
jacksonfdam / comoSerChatoNowhatsapp.js
Created October 19, 2017 17:55 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguém te responder no whatsapp
/*
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o web.whatsapp.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
@jacksonfdam
jacksonfdam / Dockerfile
Created April 6, 2017 12:55 — forked from benschw/Dockerfile
MySQL Docker Container
FROM ubuntu
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install mysql-client mysql-server
@jacksonfdam
jacksonfdam / pokemon.json
Last active February 3, 2017 00:24 — forked from shri/pokemon.json
JSON of pokemon to go with my pokemonMoves.json file
[
{
"name":"Bulbasaur",
"attack":49,
"defense":49,
"evolveLevel":16,
"evolveTo":"2",
"type":"grass",
"moves":[
"tackle",
@jacksonfdam
jacksonfdam / .htaccess
Created September 23, 2016 14:59 — forked from ankurk91/.htaccess
Some .htaccess tips and tricks
# Source internet
# Use at your own risk
# Ovrride Default index.php
DirectoryIndex home.php
# prevent access to some files
<FilesMatch "^(wp-config.php|readme.html|license.txt|README.md|.gitignore|.gitattributes|.htaccess|error_log)">
Order allow,deny
Deny from all
@jacksonfdam
jacksonfdam / .gitattributes
Created September 23, 2016 14:54
My Git Configs
# https://git-scm.com/book/en/Customizing-Git-Git-Attributes
# https://help.github.com/articles/dealing-with-line-endings
# Auto detect text files and perform LF normalization
* text=auto
# Force the following filetypes to have unix eols, so Windows does not break them
*.* text eol=lf
@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