Skip to content

Instantly share code, notes, and snippets.

View 0x46616c6b's full-sized avatar

0x46616c6b 0x46616c6b

  • Dresden
  • 19:49 (UTC +02:00)
View GitHub Profile
@geerlingguy
geerlingguy / ansible-role-test.sh
Last active January 18, 2024 17:37
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
id alias url
790669100971515 pegida https://www.facebook.com/pegidaevdresden
507642806040134 siegfried-daebritz https://www.facebook.com/pegida.daebritz
636833049762948 klotzsche-sagt-nein https://www.facebook.com/DRESDEN-Klotzsche-sagt-NEIN-zum-Heim-636833049762948/
1561506014089157 heimatschutz-meissen https://www.facebook.com/Ini.Heimatschutz/
594316897372117 orakel-debakel https://www.facebook.com/OrakelDebakel
880728778665642 widerstand-dresden https://www.facebook.com/Widerstand-Dresden-880728778665642/
603436016461261 nein-zu-johannstadt https://www.facebook.com/NEIN-zur-ZeltstadtContainerdorf-in-Johannstadt-603436016461261/
1701421860086089 freie-kameradschaft-dresden https://www.facebook.com/Freie-Kameradschaft-Dresden-1701421860086089/
1691946287705666 freie-aktivisten-dresden https://www.facebook.com/FreieAktivistenDresden/
@coderanger
coderanger / README.md
Last active August 18, 2023 18:33
How to patch Ubuntu for Heartbleed

How to patch Ubuntu for Heartbleed

  1. sudo apt-get update
  2. sudo apt-get install -y libssl1.0.0 openssl
  3. openssl version -a and confirm the "built on" date is >= 2014-04-07
  4. sudo lsof -n | grep ssl | grep DEL and restart all listed services.

Repeat #4 until no results are returned.

# 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.
#
@matyix
matyix / Hoya-exception
Created March 17, 2014 09:59
Hoya exception - Application doesn't exist in cache
2014-03-17 10:41:31,833 [AMRM Callback Handler Thread] INFO HoyaAppMaster.yarn - Shutdown Request received
2014-03-17 10:41:31,841 [AMRM Callback Handler Thread] INFO impl.AMRMClientAsyncImpl - Shutdown requested. Stopping callback.
2014-03-17 10:41:32,841 [main] INFO appmaster.HoyaAppMaster - Triggering shutdown of the AM: Shutdown requested from RM
2014-03-17 10:41:32,842 [main] INFO appmaster.HoyaAppMaster - Process has exited with exit code 0 mapped to 0 -ignoring
2014-03-17 10:41:32,843 [main] INFO state.AppState - Releasing 1 containers
2014-03-17 10:41:32,843 [main] INFO appmaster.HoyaAppMaster - Application completed. Signalling finish to RM
2014-03-17 10:41:32,843 [main] INFO appmaster.HoyaAppMaster - Unregistering AM status=FAILED message=Shutdown requested from RM
2014-03-17 10:41:32,855 [main] INFO appmaster.HoyaAppMaster - Failed to unregister application: org.apache.hadoop.yarn.exceptions.InvalidApplicationMasterRequestException: Application doesn't exist in cache appattempt_139504910217
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@trooney
trooney / dev.yml
Last active December 28, 2015 07:49
Ansible | Dev Environment
---
- hosts: all
sudo: True
pre_tasks:
- name: APT | Check cache update time
stat: path=/var/cache/apt
register: apt_cache_stat
- name: APT | Update stale cache
apt: update_cache=yes
@tPl0ch
tPl0ch / CommandContext.php
Last active August 18, 2023 11:18
A CommandContext for Behat tests of Symfony Console Commands
<?php
namespace MFB\Behat\Subcontext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\MinkExtension\Context\RawMinkContext;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\EventDispatcher\EventDispatcher;
/**
@Dynom
Dynom / gist:5866837
Last active December 5, 2017 14:05
Creating ISO 8601-extended in PHP, using DateTime. This includes milliseconds (and if you want, microseconds). Based on the work mentioned here: http://stackoverflow.com/a/4414060/1061927
<?php
// Our input
$time = microtime(true);
// Determining the microsecond fraction
$microSeconds = sprintf("%06d", ($time - floor($time)) * 1000000);
// Creating our DT object
$tz = new DateTimeZone("Etc/UTC"); // NOT using a TZ yields the same result, and is actually quite a bit faster. This serves just as an example.
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active July 4, 2024 13:00
Backend Architectures Keywords and References