Skip to content

Instantly share code, notes, and snippets.

View meskarune's full-sized avatar
Halfway back to productivity

Dolores Portalatin meskarune

Halfway back to productivity
View GitHub Profile
@cryzed
cryzed / fix-infinality.md
Last active September 3, 2025 06:53
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@app.route('/blog/<int:year>/<int:month>/<int:day>')
def daypage(year, month, day):
y, m, d = str(year), str(month), str(day)
postlist = "content/posts"
results = {}
for post in os.listdir(postlist):
if fnmatch.fnmatch(file, '{0}-{1}-{2}:*.md'.format(y, m, d)):
year, month, day, slug = re.split("^([0-9]{4})-([0-9]{2})-([0-9]{2}):([a-z]*).md", post, flags=re.IGNORECASE)[1:5]
results[file].append("/blog/{0}/{1}/{2}/{3}".format(year, month, day, slug))
if results:
@meskarune
meskarune / threadedurls.py
Created April 29, 2016 19:48
concurrent operations in python
#!/usr/bin/python
import concurrent.futures
import urllib.request
from bs4 import BeautifulSoup
URLS = ['http://www.foxnews.com/',
'http://www.cnn.com/',
'http://google.com/',
'http://www.bbc.co.uk/',
@meskarune
meskarune / pluginbot.py
Created November 10, 2015 16:17
irc lib bot with basic plugin support
#!/usr/bin/python2
import glob
import ircbot
import imp
# Bot scan password
password = ‘d3vsh3d0652′
# Connection informatoin
@noromanba
noromanba / weechat-security-settings.mkd
Created September 26, 2015 19:58
recommends settings for security in WeeChat

WeeChat security settings

recommends settings for security in WeeChat

disable leave msg

do not say when /part and /quit

/set irc.server_default.default_msg_part = ""
/set irc.server_default.default_msg_quit = ""
@messa
messa / asyncio_ssl_example.py
Created June 26, 2015 12:43
Python asyncio + SSL TCP client/server example
#!/usr/bin/env python3
import asyncio
import multiprocessing
import os
import ssl
from time import sleep
port = 9000

(Note: I wrote this up quickly and without a lot of research, so there are probably inaccuracies. However, I wanted to put this out there in case it helps someone else hitting this issue. Github gists like this unfortunately don't have comment notifications, so if you want me to send me a comment, use my email [email protected] and not the comments.)

Problem: Can't use sudo command-limiting in Ansible

The ability to limit sudo users to only be able to execute certain commands doesn't work with Ansible (without a workaround).

This isn't a problem if you're running Ansible as a super-user like root, but if you are allowing others to run Ansible on your systems in order to do things like application deploys, then you need a way to limit their access to the system for basic security.

For example, a line in /etc/sudoers like this:

@Earnestly
Earnestly / makepkg_overview.rst
Last active October 13, 2025 00:41
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@dinigo
dinigo / aria2.conf
Created December 14, 2014 17:56
Aria2c config files and init scripts
# place under ${HOME}/.aria2/
# Daemonize, rpc and session save.
# The daemon is launched by the rpc query and
# stops when all downloads are completed.
continue
daemon=true
on-download-complete=exit
dir=/home/**youruser**/path/to/download/folder
@Thrilleratplay
Thrilleratplay / arch-linux-install.md
Last active November 8, 2024 00:06 — forked from mattiaslundberg/arch-linux-install
Installing Arch Linux on an LUKS Encrpyted root and booting from UEFI