Skip to content

Instantly share code, notes, and snippets.

View franz-josef-kaiser's full-sized avatar

Franz Josef Kaiser franz-josef-kaiser

View GitHub Profile
@wldcordeiro
wldcordeiro / jest-eslint.config.js
Created May 25, 2018 02:44
Jest Multi Project Example
const { resolve } = require('path')
const root = resolve(__dirname, '..')
module.exports = {
rootDir: root,
displayName: 'eslint',
runner: 'jest-runner-eslint',
testMatch: ['<rootDir>/src/**/*.js', '<rootDir>/config/*.js'],
}
@mrister
mrister / morgan-loggly.js
Last active January 19, 2019 17:49
Morgan loggly stream custom class
const {Writable} = require('stream');
const loggly = require('node-loggly-bulk');
class MorganLogglyLoggerStream extends Writable {
/**
* Create a new instance of MorganLogglyLogger
* @param options {Object}
* @param options.TOKEN {String} your loggly token
* @param options.SUBDOMAIN {String} your loggly SUBDOMAIN
*/
@dalanmiller
dalanmiller / Dockerfile.app
Last active June 29, 2020 15:27
RethinkDB docker-compose.yml example
IMAGE node:argon
RUN mkdir -p /usr/app
COPY . /usr/app
WORKDIR /usr/app
RUN npm install
@leonardofed
leonardofed / README.md
Last active May 3, 2024 01:24
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@gmazzap
gmazzap / AutoPaginatedQuery.php
Last active April 8, 2016 21:49
`WP_Query` subclass that takes a non-paginated query and split into different paginated queries offering a transparent interface to "standard loop" usage.
<?php
namespace GM;
/**
* `WP_Query` subclass that takes a non-paginated query and split into different
* paginated queries offering a transparent interface to "standard loop" usage.
*
* The class is not 100% transparent:
* - the var `$posts` and the method `get_posts()`, that are not used directly
* in standard loop usage, here don't return array of all posts, but only posts
@lopezjurip
lopezjurip / README.md
Created October 22, 2015 21:05
Stackedit.io - Justify

Settings -> Extensions -> UserCustom

userCustom.onReady = function() {
    $('head').append(`<style>p, pre, blockquote {
      text-align: justify;
    }
    blockquote p, li p {
      text-indent: 0
    }</style>`);
};
@tisunov
tisunov / twitter_stylebot.css
Last active September 26, 2015 12:49
CLEAN UP TWITTER
/* CLEAN UP TWITTER
by @levelsio
use Stylebot Chrome extension to load this by default:;
https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en
*/
/* Removes all borders in layout */
* {
border:none !important;
}
@omegahm
omegahm / create_labels.sh
Created April 7, 2015 19:00
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
@htpcBeginner
htpcBeginner / advancedsettings.xml
Last active November 5, 2021 20:43
AdvacedSettings.xml for Kodi with MySQL and other tweaks.
<!-- General Settings -->
<advancedsettings>
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging -->
<playcountminimumpercent>95</playcountminimumpercent>
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) -->
<nodvdrom>true</nodvdrom>
<!-- MySQL Library -->
<videodatabase>
<type>mysql</type>
@tomjn
tomjn / composer.json
Last active August 29, 2015 14:05
Checking if composer ran succesfully after the fact
{
"require": {
"justinrainsdasdfbow/json-schema": "~1.1"
},
"scripts": {
"post-update-cmd": "cftp\\composer_checker::post",
"post-install-cmd": "cftp\\composer_checker::post",
"pre-install-cmd": "cftp\\composer_checker::pre",
"pre-update-cmd": "cftp\\composer_checker::pre"
},