Skip to content

Instantly share code, notes, and snippets.

View felds's full-sized avatar
:shipit:

Luiz “Felds” Liscia felds

:shipit:
View GitHub Profile
@felds
felds / sharing-buckets.md
Last active March 15, 2018 03:13 — forked from anonymous/sharing-buckets.md
Como compartilhar bucket e publicar conteúdo no bucket compartilhado

Como compartilhar bucket e publicar conteúdo no bucket compartilhado

1. Compartilhando o bucket

No bucket a ser compartilhado, o dono do bucket deve inserir a seguinte policy:

{
@felds
felds / get_related_posts.php
Last active February 11, 2018 19:53
Simple and straightforward function to get the related posts by tags in wordpress
@felds
felds / .passwd
Created June 29, 2017 15:30
Protecting vhost
user:pass
const features = [
{
title: "Faróis Xênon com luzes diurnas em LED",
waypoints: [
[ 3.33169, 0.76900, 0.44200, true ],
[ 3.63169, 0.78800, 0.46200, true ],
[ 3.93169, 0.78000, 0.50400, true ],
[ 4.23169, 0.75800, 0.56400, true ],
[ 4.53169, 0.70900, 0.64400, true ],
[ 4.83169, 0.64500, 0.69900, true ],
@felds
felds / index.md
Last active May 4, 2017 18:32
Map of the FOSUB paths

FOSUB paths

/login                  # GET       - show the login form
/login_check            # POST      - check the login information
/logout                 # GET       - logs the user out
/profile
    /                   # GET       - show my profile
    /edit               # GET, POST - edit my profile
 /change-password # GET, POST - show and process the form
@felds
felds / create-mysql-db
Last active April 26, 2017 20:44
Create mysql db and user
#!/usr/bin/env python3
import MySQLdb
from getpass import getpass
def get_connection():
while True:
passwd = getpass("Enter root password:")
try:
// hic sum configs
@felds
felds / index.html
Created October 22, 2016 05:26
Snaike Gaime
<canvas id=the-game width=420 height=240 tabindex=1 autofocus></canvas>
@felds
felds / index.html
Last active September 27, 2016 16:12
JQuery Scrubber
<div class="slideshow" id="slideshow">
<div class="slideshow__bgs">
<div style="background-image: url(https://unsplash.it/800/600?image=4)"></div>
<div style="background-image: url(https://unsplash.it/800/600?image=3)"></div>
<div style="background-image: url(https://unsplash.it/800/600?image=2)"></div>
<div style="background-image: url(https://unsplash.it/800/600?image=1)"></div>
</div>
<div class="slideshow__fg">
<div class="scrubber" data-scrubber-steps="4" id="scr-slideshow"></div>
</div>