This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi | |
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"title": "Registry", | |
"description": "Docker image registry", | |
"logo": "https://cloudinovasi.id/assets/img/logos/registry.png", | |
"image": "registry:latest", | |
"ports": [ | |
"5000/tcp" | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"title": "Pi MySQL", | |
"description": "The most popular open-source database", | |
"logo": "https://cloudinovasi.id/assets/img/logos/mysql.png", | |
"image": "hypriot/rpi-mysql:latest", | |
"env": [ | |
{ | |
"name": "MYSQL_ROOT_PASSWORD", | |
"label": "Root password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(find ~/.vagrant.d/ -iname master_id -exec ls {} \;) | |
do | |
VBoxManage unregistervm $(cat ${i}) --delete | |
rm ${i} | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import feedparser | |
from flask import Flask | |
from flask import render_template | |
from flask import request | |
import json | |
import urllib2 | |
import urllib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Schlagzeilen</title> | |
</head> | |
<body> | |
<h1>Schlagzeilen</h1> | |
<h2>Current weather</h2> | |
<p>City: <b>{{weather.city}}, {{weather.country}}</b></p> | |
<p>{{weather.description}} |{{weather.temperature}}℃</p> | |
<form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dbhelper import DBHelper | |
from flask import Flask | |
from flask import render_template | |
from flask import request | |
import json | |
import datetime | |
import dateparser | |
import string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Remove output from existing Jupyter Notebooks. | |
Modified from remove_output by Minrk, damianavila, gabraganca. | |
References: | |
[0]: https://github.com/jupyter/nbformat | |
[1]: http://nbformat.readthedocs.org/en/latest/index.html | |
[2]: http://blog.jupyter.org/2015/04/15/the-big-split/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-16-04 | |
- hosts: wp | |
become: yes | |
vars: | |
WP_DOMAIN: "wordpress.rdf.loc" | |
WP_PATH: "/var/www/html/wordpress" | |
tasks: | |
- name: Install software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run resolvconf? | |
RESOLVCONF=no | |
# startup options for the server | |
OPTIONS="-4 -u bind" |
OlderNewer