Skip to content

Instantly share code, notes, and snippets.

View danipolo's full-sized avatar

Dani Polo danipolo

View GitHub Profile
@danipolo
danipolo / gist:8417c1b173d1c8c87d2f474dfa9e9403
Created May 13, 2016 14:50 — forked from alexsegura/gist:9650651
Prestashop 1.6 folder permissions
chmod a+w -R config/
chmod a+w -R cache/
chmod a+w -R log/
chmod a+w -R img/
chmod a+w -R mails/
chmod a+w -R modules/
chmod a+w -R themes/default-bootstrap/lang/
chmod a+w -R themes/default-bootstrap/pdf/lang/
chmod a+w -R themes/default-bootstrap/cache/
chmod a+w -R translations/
#!/bin/bash
# Docker installation script for Ubuntu 16.04 on OVH
# After running the script reboot and check whether docker is running.
# First of all, we check if the user is root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
@danipolo
danipolo / conditional_scenario_run.py
Created January 29, 2019 00:20 — forked from JedIV/conditional_scenario_run.py
Checks the metrics of a dataset and conditionally runs a scenario
from dataiku.scenario import Scenario
import dataiku
### Set up objects
# The Scenario object is the main handle from which you initiate steps
scenario = Scenario()
# The Project that we'll be working with
# set up an api client
@danipolo
danipolo / sh
Created November 12, 2019 02:57
bitcoind sync blockchain progress
echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`
did:3:kjzl6cwe1jw147f0yoexgb1l2jc3otfb29kp8g2chxi6x8cl0mozqqeux43uksa