Skip to content

Instantly share code, notes, and snippets.

View luandro's full-sized avatar

luandro luandro

View GitHub Profile
@luandro
luandro / client.js
Last active November 7, 2015 12:36
Universal rendering redux-router
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from 'react-redux';
import {ReduxRouter} from 'redux-router';
import configureStore from "./configureClientStore";
import DevTools from "./DevTools";
const store = configureStore(window.__INITIAL_STATE__);
const reactRoot = window.document.getElementById("react-root");
ReactDOM.render(
Verifying that +luandro is my blockchain ID. https://onename.com/luandro
@luandro
luandro / index.html
Created December 13, 2016 11:11
Location Loader
<svg class="locationSVG" viewBox="200 175 400 300" xmlns="http://www.w3.org/2000/svg">
<defs>
<clipPath id="boxMask">
<rect x="290" y="190" class="boxMask" width="220" height="220"/>
</clipPath>
</defs>
<g clip-path="url(#boxMask)">
<path class="pin" fill-rule="evenodd" clip-rule="evenodd" d="M400,289c-11,0-20,9-20,20c0,15.4,17.6,42,18.3,43.1c0.4,0.6,1,0.9,1.7,0.9c0.7,0,1.3-0.3,1.7-0.9
c0.7-1.1,18.3-27.7,18.3-43.1C420,298,411,289,400,289z M400,301c-4.4,0-8,3.6-8,8s3.6,8,8,8c4.4,0,8-3.6,8-8S404.4,301,400,301z" fill="#FF5722"/>
<g class="track">
Hyperterm

Keybase proof

I hereby claim:

  • I am luandro on github.
  • I am luandro (https://keybase.io/luandro) on keybase.
  • I have a public key ASBlmjz9hgLC9cXN00ij-HDYTRteGxUXiIs8DfF84Wuvogo

To claim this, I am signing this object:

@luandro
luandro / gist:bf776e16f25d9f063651865bef82709a
Created June 26, 2019 12:41
sodium-native build error with nodejs-mobile-react-native
checking whether make supports the include directive... yes (GNU style)
checking for gcc... /Users/Sites/ssbcmobile/android/build/standalone-toolchains/arm-linux-androideabi/bin/arm-linux-androideabi-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... Modulesarmeabi-v7a
checking whether we are cross compiling... configure: error: in `/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/libsodium':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/preinstall.js:119
@luandro
luandro / experiment_1.sh
Created November 21, 2019 20:35
Community Server Experiment
#Set user
useradd -ou 0 -g 0 admin
passwd admin
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
@luandro
luandro / esp8622_autonomous_water_sensor_comurede.ino
Last active January 9, 2020 14:38
comuREDE firmware for esp8622
//MESH-UP Trabalho Final
//IFRJ Niterói - Turma ARDUINO (manha) - Professor Luiz Felipe
//Grupo: Bruno Souza, Felipe Monteiro e Filipe Rimes
//Fontes:
//#Programa: NodeMCU e MQTT - Controle e Monitoramento IoT
//#Autor: Pedro Bertoleti
//code write by Moz for YouTube changel LogMaker360, 7-10-2015
//code belongs to this video: https://www.youtube.com/watch?v=jTj1oMyJF_c
//KY018 Photo resistor module
@luandro
luandro / control_irrigation.sh
Last active July 25, 2021 11:15
OpenWRT ESP relay control
#!/bin/sh
# /usb/bin/control_irrigation.sh
# Don't forget to: chmod +x /usb/bin/control_irrigation.sh
command=$1
channel=$2
IP=$(cat /tmp/dhcp.leases | grep ESP |cut -d " " -f 3| awk '{print $1}')
echo $1 on channel $2 on IP $IP
if [ $1 == 'start' ]
@luandro
luandro / configure_local_balena.sh
Created October 5, 2021 19:36
Installing Balena OS on Digital Ocean server
# Install Balena cli: https://github.com/balena-io/balena-cli/blob/master/INSTALL.md
echo "balenaUrl: 'balena.coolab.org'" >> ~/.balenarc.yml
export NODE_EXTRA_CA_CERTS='/etc/ssl/private/ca.crt'
balena login