Skip to content

Instantly share code, notes, and snippets.

View thenets's full-sized avatar
🍫
Nothing is true; Everything is permitted

Luiz Felipe F M Costa thenets

🍫
Nothing is true; Everything is permitted
View GitHub Profile
@thenets
thenets / telegram_install.sh
Created July 24, 2016 20:37
Telegram Installer Script
# Create installation dir
mkdir ~/.apps/
# Remove old version
rm -R ~/.apps/Telegram/
# Download and extract
cd ~/.apps/
wget https://tdesktop.com/linux -O "telegram.tar.xz"
tar -xf ./telegram.tar.xz
#!/bin/bash
# ======================================================
# Simple one command installers for Fedora
# ======================================================
# Atom IDE
rm -f /tmp/atom.x86_64.rpm ; wget -O -q /tmp/atom.x86_64.rpm $(curl -sSL https://api.github.com/repos/atom/atom/releases/latest | sed 's/ //g' | grep '/atom.x86_64.rpm' | sed 's/"browser_download_url"://g' | sed 's/"//g') ; sudo dnf install -y /tmp/atom.x86_64.rpm
clear
echo "# ======================================================== #"
echo "# == Easy CKAN installation for Ubuntu 16.04 == #"
echo "# #"
echo "# Special thanks to: #"
echo "# Alerson Luz (GitHub: alersonluz) #"
echo "# Adrien GRIMAL #"
echo "# ======================================================== #"
su -c "sleep 3"
@thenets
thenets / tyrworker.sh
Last active June 27, 2017 15:02
Start a TyrAlgorithm Worker
#!/bin/bash
# Install Docker if not avaliable
if ! [ -x "$(command -v docker)" ]; then
curl -sSL https://get.docker.io | sudo sh
fi
# Update Tyr Worker image
docker pull thenets/tyrworker:latest
@thenets
thenets / Dockerfile_laravel
Created August 22, 2017 01:41
Dockerfile for Laravel - Ubuntu 16.04
FROM ubuntu:16.04
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y htop curl nano
# Install PHP
RUN apt-get install -y php7.0 php7.0-mbstring php7.0-dom
@thenets
thenets / clear_harvest_packages.sh
Last active October 27, 2017 14:28
ckanext-harvest Delete all datasets harvested from source
#!/bin/bash
# Settings
CONFIG_FILE='/etc/ckan/default/development.ini'
PACKAGES_NAME_FILE='/tmp/harvest_packages_names'
SQL_FILE='/etc/ckan/clear_harvest_packages.sql'
# DON'T CHANGE THE CONTENT BELOW!!!
# =====================================================================
PASTER='/usr/lib/ckan/default/bin/paster'
@thenets
thenets / install_easyckan_dadosgovbrschema.sh
Created November 12, 2017 16:31
Instalador do EasyCKAN integrado ao ckanext-dadosgovbr
#!/bin/bash
# ================================================================================
# EasyCKAN integrado ao dadosgovbr/ckanext-dadosgovbrschema
#
# Requisitos:
# - Instale o "curl": apt-get install -y curl
# - Precisa ser executado como root.
#
#
@thenets
thenets / install_easyckan.sh
Created November 17, 2017 08:13
How to install EasyCKAN
#!/bin/bash
curl -sSL https://raw.githubusercontent.com/thenets/Easy-CKAN/master/install_easyckan.sh | sudo bash
sudo easyckan install
@thenets
thenets / instal_dadosgovbrschema_for_easyckan.sh
Created November 21, 2017 03:22
Instalador do ckanext-dadosgovbrschema para o EasyCKAN
echo ''
echo "# Installing ckanext-dadosgovbrschema"
echo "# ================================================================================"
echo ''
echo "# Create installer script for ckanext-dadosgovbrschema and install"
DADOSGOVBR_INSTALL='/usr/lib/ckan/default/src/dadosgovbr_install.sh'
DADOSGOVBR_SCHEMA_DIR='/usr/lib/ckan/default/src/ckanext-dadosgovbrschema'
echo "#!/bin/bash" > $DADOSGOVBR_INSTALL
echo "cd /usr/lib/ckan/default/src" >> $DADOSGOVBR_INSTALL

Keybase proof

I hereby claim:

  • I am thenets on github.
  • I am thenets (https://keybase.io/thenets) on keybase.
  • I have a public key ASBnrUo_5kIwZkTD0rGTJOYYS1u3vQ6rvbhjzFRWeAvw8Qo

To claim this, I am signing this object: