- All pools' status:
zpool status - specific pools status:
zpool status pdata1
In the following, we assume a working Flask application with the name of SCRIPT_NAME. First we need to install a couple of things:
sudo apt-get update && sudo apt-get upgrade
Installing nginx will fail if apache is running. If your installation breaks half ways, then remove the fragments, stop apache (and I actually suggest removing it in case not needed) and then install nginx again:
sudo apt-get remove nginx* --purge
sudo /etc/init.d/apache2 stop
A little info about your project and/ or overview that explains what the project is about.
A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.
Build status of continus integration i.e. travis, appveyor etc. Ex. -
This file contains hidden or 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 | |
| """ | |
| mocking requests calls | |
| """ | |
| import mock | |
| import unittest | |
| import requests | |
| from requests.exceptions import HTTPError |
This file contains hidden or 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 | |
| # GUI-related packages | |
| pkgs=" | |
| xserver-xorg-video-fbdev | |
| xserver-xorg xinit | |
| gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base | |
| gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa | |
| gstreamer1.0-libav | |
| epiphany-browser |
This file contains hidden or 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
| import re | |
| # the first group is noncapturing and just ensures we're at the beginning of | |
| # the string or have whitespace before the hashtag (don't want to capture anchors) | |
| # without the fullwidth hashmark, hashtags in asian languages would be tough | |
| hashtag_re = re.compile("(?:^|\s)[##]{1}(\w+)", re.UNICODE) |
This file contains hidden or 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 | |
| set -e | |
| # Usage: | |
| # rsync_parallel.sh [--parallel=N] [rsync args...] | |
| # | |
| # Options: | |
| # --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
| # | |
| # Notes: |
This file contains hidden or 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
| yumrepo { "Percona": | |
| name => "Percona", | |
| descr => "Percona Server", | |
| baseurl => "http://repo.percona.com/centos/\$releasever/os/\$basearch/", | |
| enabled => 1, | |
| gpgcheck => 0, | |
| } | |
| file { '/etc/init.d/mysqld': | |
| ensure => 'link', |
This file contains hidden or 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
| <? | |
| /** | |
| * twitterfeed.php | |
| * | |
| * A single file script which serves an authenticated personal Twitter timeline as an Atom feed. | |
| * | |
| * To use: | |
| * 1) Go to https://dev.twitter.com/apps and create a new App | |
| * 2) Use the Authentication button to create the tokens/secrets needed | |
| * 3) Copy the results into the appropriate spots below |
NewerOlder