Skip to content

Instantly share code, notes, and snippets.

View webknjaz's full-sized avatar
🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine

🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) webknjaz

🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine
View GitHub Profile
@allanlei
allanlei / gist:8ea15ceeae93447f7212
Created July 16, 2014 03:31
Running twisted application without twistd
from twisted.web.resource import Resource
from twisted.internet import reactor
from twisted.web.static import File
from twisted.web import server
from twisted.application import internet, service
from twisted.application.app import startApplication
from twisted.web.wsgi import WSGIResource
from twisted.runner.procmon import ProcessMonitor
from twisted.web import vhost, static
@tristanfisher
tristanfisher / Ansible-Vault how-to.md
Last active March 25, 2025 12:44
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.

Working with ansible-vault


I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.

@ryanj
ryanj / gist-reveal.it-slides.html
Last active March 5, 2025 06:22
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
<section id='hello' data-background-transition='zoom' data-transition='concave' data-background='https://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'>
<h1><a style='color:deepskyblue;' href='https://gist-reveal.it'>gist-reveal.it</a></h1>
<br/>
<h2 style='color:white;'>Gist-Powered</h2>
<h1 style='white-space:nowrap;color:white;'>reveal.js slides</h1>
<p><small style="background-color: rgb(0,0,0,0.35); font-style: italic; color: white;"> press F1 for usage notes </small></p>
</section>
<section id='revealjs' data-transition='concave'>
<h3><a href="https://revealjs.com/">Reveal.js</a> is a framework</h3><p><span>for crafting presentations</span><br/> <span class='fragment'>in <a href="https://revealjs.com/markup/">HTML</a></span> <br/> <span class='fragment fade-up'>and <a href="https://revealjs.com/markdown/">Markdown</a></span>
<aside class="notes">Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open
@hakimel
hakimel / reveal-js-data-state-callback.html
Created May 8, 2014 10:29
reveal.js data-state callback
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
</head>
# This gist is compatible with Ansible 1.x .
# For Ansible 2.x , please check out:
# - https://gist.github.com/dmsimard/cd706de198c85a8255f6
# - https://github.com/n0ts/ansible-human_log
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@petemcw
petemcw / brew-instructions.sh
Last active May 7, 2025 12:01
Setup dnsmasq on Mac OS X
# Install `dnsmasq` and configure for *.test domains
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Reload configuration and clear cache
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 10, 2025 09:31
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@XVilka
XVilka / TrueColour.md
Last active April 27, 2025 10:17
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@chekalsky
chekalsky / tweets.redactor.js
Last active January 9, 2019 23:36
Imperavi Redactor Plugin for Embedding Tweets Usage: mention "tweets" in "plugins" setting of you redactor.
/**
* Imperavi Redactor Plugin for Embedding Tweets
* for version >= 9.1
*
* @author Ilya Chekalskiy <[email protected]>
* @version 0.2.2
*/
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {};
RedactorPlugins.tweets = {
#!/usr/bin/python2
# rtorrent_xmlrpc
# (c) 2011 Roger Que <[email protected]>
# (c) 2013 Noah K. Tilton <[email protected]>
#
# Python module for interacting with rtorrent's XML-RPC interface
# directly over SCGI, instead of through an HTTP server intermediary.
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the
# built-in xmlrpclib classes so that it is compatible with features