Skip to content

Instantly share code, notes, and snippets.

Avatar

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/Gajim.app/Contents/MacOS/gajim/application.py", line 227, in _activate
from gajim.gui_interface import Interface
File "/Users/rschwab/Applications/Gajim.app/Contents/MacOS/gajim/gui_interface.py", line 81, in <module>
from gajim.common.zeroconf import connection_zeroconf
File "/Users/rschwab/Applications/Gajim.app/Contents/MacOS/gajim/common/zeroconf/connection_zeroconf.py", line 44, in <module>
from gajim.common.zeroconf import client_zeroconf
@Nothing4You
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
file:
path: "/path/to/files/{{ item }}"
state: absent
@Nothing4You
Nothing4You / ..readme.md
Last active Oct 30, 2017
PHP file upload script for Prosody mod_http_upload_external
View ..readme.md

This script is based on https://hg.prosody.im/prosody-modules/file/f86478a02b25/mod_http_upload_external/share.php

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

https://files.xmpp.msg.lol/6186af39-cc50-486e-9bc6-7f40143a62f7/pexels-photo-126407.jpeg
or
https://files.xmpp.msg.lol/index.php/6186af39-cc50-486e-9bc6-7f40143a62f7/pexels-photo-126407.jpeg

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
Nothing4You / letsencrypt_notes_openbsd.sh
Last active Jan 4, 2019 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root on OpenBSD
View letsencrypt_notes_openbsd.sh
# Modified for OpenBSD
# Assumes being root
# Requires curl to be installed, wget can also be used, relevant commands need to be adjusted. acme.sh supports both.
# Configured to use Cloudflare DNS for verification
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
@Nothing4You
Nothing4You / config.h
Created Dec 20, 2013
include/config.h
View config.h
/* include/config.h. Generated from config.h.in by configure. */
/* include/config.h.in. Generated from configure.ac 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 "libcap.so.2
^
CC config-file.lo
@Nothing4You
Nothing4You / stdout
Last active Dec 31, 2015
./autogen.sh
View stdout
+ '[' '!' -e config ']'
+ autoreconf -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
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
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.