Skip to content

Instantly share code, notes, and snippets.

Avatar

Lucas Cândido lcdss

View GitHub Profile
@lcdss
lcdss / docker-cross-device-link.md
Created Dec 13, 2018 — forked from Francesco149/docker-cross-device-link.md
docker error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
View docker-cross-device-link.md
@lcdss
lcdss / Steps.md
Last active Nov 20, 2018 — forked from SalahAdDin/Steps.md
Installing React-Native Android Environment in ArchLinux
View Steps.md

First step: Install Android SDK

  1. yay -S android-sdk android-sdk-platform-tools android-sdk-build-tools genymotion
  2. sudo modprobe vboxdrv vboxnetadp vboxnetflt
    Activate for current session.
  3. sudo chown -R $USER:$USER /opt/android-sdk
    Give permisions over Android SDK folders.
  4. Restart
    Is needed by Genymotion for detect VirtualBox modules.
    NOTE: You need install Java JDK for user Android SDK.
  5. /opt/android-sdk/tools/bin/sdkmanager
@lcdss
lcdss / logslaravel.sh
Created Aug 23, 2018 — forked from jakebathman/logslaravel.sh
Tail Laravel logs and filter out the stack traces
View logslaravel.sh
tail -f -n 450 storage/logs/laravel*.log \
| grep -i -E \
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \
--color
@lcdss
lcdss / break.py
Created Apr 4, 2018 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
View break.py
import code; code.interact(local=dict(globals(), **locals()))
@lcdss
lcdss / rename_phoenix_project.sh
Created Mar 10, 2018 — forked from kumekay/rename_phoenix_project.sh
rename a phoenix 1.3 project
View rename_phoenix_project.sh
#!/bin/bash
set -e
CURRENT_NAME="CurrentName"
CURRENT_OTP="current_name"
NEW_NAME="NewName"
NEW_OTP="new_name"
@lcdss
lcdss / _hover_example.py
Created Jun 27, 2016 — forked from dankrause/_hover_example.py
Example code to use the (unofficial, unsupported, undocumented) hover.com DNS API.
View _hover_example.py
import requests
class HoverException(Exception):
pass
class HoverAPI(object):
def __init__(self, username, password):
params = {"username": username, "password": password}
r = requests.post("https://www.hover.com/api/login", params=params)
@lcdss
lcdss / ssl.rules
Created May 30, 2016 — forked from konklone/ssl.rules
nginx TLS / SSL configuration options for konklone.com
View ssl.rules
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {