##Install Discourse using docker
https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md
##Configure and run the importer script
Let's ssh inside the docker
$ cd /var/discourse
$ ./launcher ssh app
| #!/usr/bin/env python | |
| import i3 | |
| outputs = i3.get_outputs() | |
| workspaces = i3.get_workspaces() | |
| # figure out what is on, and what is currently on your screen. | |
| workspace = list(filter(lambda s: s['focused']==True, workspaces)) | |
| output = list(filter(lambda s: s['active']==True, outputs)) |
| #!/usr/bin/env python3 | |
| # Get your files that Gmail block. Warning message: | |
| # "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled." | |
| # Based on: https://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/ | |
| # Instructions: | |
| # Go to your emails, click the arrow button in the top right, "Show original", then "Download Original". | |
| # Move the files to the same directory as this program, then run it. | |
| import sys |
##Install Discourse using docker
https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md
##Configure and run the importer script
Let's ssh inside the docker
$ cd /var/discourse
$ ./launcher ssh app
| cat access.log | awk -F\" '{print $2}' | awk '{print $2}' | sed '/^$/d' | sed 's/\?.*//g' | sort | uniq -c | sort -rn > url_hits.txt |
| ## Modified commands | |
| alias diff='colordiff' # requires colordiff package | |
| alias grep='grep --color=auto' | |
| alias more='less' | |
| alias df='df -h' | |
| alias du='du -c -h' | |
| alias mkdir='mkdir -p -v' | |
| alias nano='nano -w' | |
| alias ping='ping -c 5' |
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout somewhen, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
| HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
| Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
| Latest version of this file (in English) is usually at: | |
| http://www.pement.org/awk/awk1line.txt | |
| This file will also be available in other languages: | |
| Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
| USAGE: |