Skip to content

Instantly share code, notes, and snippets.


Richard Schwab Nothing4You

View GitHub Profile
View gist:87ee9f553386c1d60d24ca108173dfc7
No translations found
Dirs searched: [PosixPath('/usr/local/share'), PosixPath('/usr/share')]
03/04/2019 13:38:04 (W) gajim.password python-keyring missing, falling back to plaintext storage
Traceback (most recent call last):
File "/Users/rschwab/Applications/", line 227, in _activate
from gajim.gui_interface import Interface
File "/Users/rschwab/Applications/", line 81, in <module>
from gajim.common.zeroconf import connection_zeroconf
File "/Users/rschwab/Applications/", line 44, in <module>
from gajim.common.zeroconf import client_zeroconf
Nothing4You / ansible.yml
Created Jun 8, 2018 — forked from jgornick/ansible.yml
Ansible: Remove All Files Except
View ansible.yml
- name: Capture files in path and register
shell: >
ls -1 /path/to/files
register: files
- name: Remove files except specified
path: "/path/to/files/{{ item }}"
state: absent
Nothing4You /
Last active Oct 30, 2017
PHP file upload script for Prosody mod_http_upload_external

This script is based on

It also supports using the file as index.php to allow stripping the php file from urls:

It has been changed to include proper caching headers (working with the cronjob below) to allow caching a file until it gets deleted. It also sends files with their mime type to allow displaying supported formats directly in the browser or inline in xmpp clients.

Nothing4You /
Last active Jan 4, 2019 — forked from lachesis/
Set up LetsEncrypt using without root on OpenBSD
# Modified for OpenBSD
# Assumes being root
# Requires curl to be installed, wget can also be used, relevant commands need to be adjusted. supports both.
# Configured to use Cloudflare DNS for verification
# How to use "" to set up Lets Encrypt without root permissions
# See for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "" as an example
Nothing4You / config.h
Created Dec 20, 2013
View config.h
/* include/config.h. Generated from by configure. */
/* include/ Generated from by autoheader. */
/* Description */
#define ALLOW_ENV_CONFIG /**/
/* torsocks configuration directory */
#define CONFDIR "/etc"
/* Description */
View stdout
Making all in src
make[1]: Entering directory '/home/rschwab/build/torsocks-git/ts/src'
Making all in common
make[2]: Entering directory '/home/rschwab/build/torsocks-git/ts/src/common'
CC log.lo
In file included from <command-line>:0:0:
../../include/config.h:149:19: warning: missing terminating " character [enabled by default]
#define LIBC_NAME "
CC config-file.lo
Nothing4You / stdout
Last active Dec 31, 2015
View stdout
+ '[' '!' -e config ']'
+ autoreconf -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config'.
libtoolize: copying file `config/libtool.m4'
libtoolize: copying file `config/ltoptions.m4'
libtoolize: copying file `config/ltsugar.m4'
libtoolize: copying file `config/ltversion.m4'
libtoolize: copying file `config/lt~obsolete.m4'
Nothing4You / config.log
Last active Dec 31, 2015
./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/torsocks --docdir=/usr/share/torsocks
View config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by torsocks configure 2.0.0-rc3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/torsocks --docdir=/usr/share/torsocks
## --------- ##
## Platform. ##
You can’t perform that action at this time.