Skip to content

Instantly share code, notes, and snippets.

View jucastilhoduarte's full-sized avatar

Juliano Castilho Duarte jucastilhoduarte

View GitHub Profile
@jucastilhoduarte
jucastilhoduarte / install.sh
Created June 15, 2026 01:23 — forked from paulovitin/install.sh
Haval Impulse Install
echo -e '#!/bin/sh\n\n# Variaveis globais\nROLLBACK_ENABLED=true\n\n# Funcoes basicas\nlog() { echo "[$1] $(date +%H:%M:%S) $2"; }\ndie() { log "ERR" "$1"; exit 1; }\n\n# Rollback simples\ncleanup() {\n [ $? -eq 0 ] && exit 0\n [ "$ROLLBACK_ENABLED" = false ] && exit 0\n \n log "INFO" "Executando rollback..."\n pkill -f fridaserver 2>/dev/null || true\n rm -f shizuku.apk haval.apk 2>/dev/null || true\n log "INFO" "Rollback concluido"\n}\ntrap cleanup EXIT\n\n# Funcoes de versao\nget_latest_release() {\n repo=${1#https://github.com/}; repo=${repo%.git}\n curl -s "https://api.github.com/repos/$repo/releases/latest" | grep browser_download_url | cut -d\\" -f4\n}\n\n# Download com verificacao\ndownload() {\n [ -f "$2" ] && [ -s "$2" ] && { log "INFO" "Arquivo $2 ja existe"; return; }\n log "INFO" "Baixando $3..."\n curl -L --progress-bar -o "$2" "$1" || die "Falha no download de $2"\n [ -f "$2" ] && [ -s "$2" ] || die "Arquivo $2 vazio/inexistente"\n}\n\n# Instalacao de apli
export default class Practice extends Component {
static defaultProps = {
selected: '',
onSelectEmoji: () => {}
};
render() {
return (
<Card style={styles.card}>
<Card.Body>
@jucastilhoduarte
jucastilhoduarte / HorusFeed.js
Last active August 29, 2015 14:20
A simple realtime application using the CotaPreco/Horus
var Horus = require('horusjs');
var client = new Horus('udp://0.0.0.0', 7600);
var tags = [
'ipad',
'mobile',
'technology',
'apple'
];
@jucastilhoduarte
jucastilhoduarte / AffixWrapper.jsx
Last active May 17, 2024 04:24
A simple affix React component.
/**
* @author Juliano Castilho <julianocomg@gmail.com>
*/
var React = require('react');
var AffixWrapper = React.createClass({
/**
* @type {Object}
*/
propTypes: {
-- phpMyAdmin SQL Dump
-- version 4.2.8
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 28, 2014 at 04:52 PM
-- Server version: 5.6.21
-- PHP Version: 5.4.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";