Skip to content

Instantly share code, notes, and snippets.

View candalo's full-sized avatar

Lucas Candalo candalo

View GitHub Profile
separator_block_width=14
#[memory]
#label=Mem:
#command=/usr/lib/i3blocks/memory
#separator=false
#interval=30
#[swap]
#label=Swap:
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
android:fontFamily="sans-serif" // roboto regular
android:fontFamily="sans-serif-light" // roboto light
android:fontFamily="sans-serif-condensed" // roboto condensed
android:fontFamily="sans-serif-black" // roboto black
android:fontFamily="sans-serif-thin" // roboto thin (android 4.2)
android:fontFamily="sans-serif-medium" // roboto medium (android 5.0)
100% — FF
99% — FC
98% — FA
97% — F7
96% — F5
95% — F2
94% — F0
93% — ED
92% — EB
91% — E8
@candalo
candalo / gist:fae67dcb79e3bd0fbedb5d936126747d
Created June 17, 2017 18:21
Windows 10 bootable usb stick from Linux
1) make one partition, format as NTFS & mark bootable
2) write boot sector (ms-sys -7)
3) mount and copy all the files from the iso
https://stackoverflow.com/questions/27501321/functional-tests-inside-a-standalone-symfony2s-bundle
cd ~/Android/Sdk/emulator/
mv emulator emulator.0
touch emulator
chmod +x emulator
I then opened up the emulator in a text editor and punched in this:
#!/bin/sh
set -ex
$0.0 $@ -use-system-libs
<?php
class AbsenceController
{
public function create(Request $request)
{
// Get data from request and create
$begin = $request->get('begin');
$end = $request->get('end');
@candalo
candalo / gist:60f2eedb00f995e2b6ab1fec7d6c96b6
Created December 13, 2016 13:53
Algumas soluções para passar parâmetros dinâmicos para um UseCase(Clean Architecture)
https://github.com/android10/Android-CleanArchitecture/issues/32
@candalo
candalo / gist:c2565fc6dad928a25470
Created September 11, 2015 20:55
Atualizar banco de dados após modificações no Doctrine
./vendor/bin/doctrine-module orm:schema-tool:update --force