Skip to content

Instantly share code, notes, and snippets.

@matthewjackowski
matthewjackowski / wordpress.vcl
Last active December 27, 2022 02:56
Varnish 4 VCL configuration for WordPress. Also allows purging
# A heavily customized VCL to support WordPress
# Some items of note:
# Supports https
# Supports admin cookies for wp-admin
# Caches everything
# Support for custom error html page
vcl 4.0;
import directors;
import std;
@kost
kost / harden.sh
Created November 16, 2015 04:47 — forked from jumanjiman/harden.sh
hardening script for an alpine docker container
#!/bin/sh
set -x
set -e
#
# Docker build calls this script to harden the image during build.
#
# NOTE: To build on CircleCI, you must take care to keep the `find`
# command out of the /proc filesystem to avoid errors like:
#
# find: /proc/tty/driver: Permission denied
@mclosson
mclosson / timeout.c
Last active November 11, 2015 23:03
/*
* timeout - application to check a list of users against the current time
* and return a message on whether each user is authorized to login to the
* system during this time on a FreeBSD system.
*
* These time frames are configured in the /etc/login.conf or the user's
* ~/login.conf files for their class of user. The login application will
* check these allowed or denied time lists and prevent the user from logging
* in during unauthorized times however users whom are already logged in will
* be able to remain logged in regardless of the time.
@oza
oza / LT1.md
Last active October 18, 2017 12:51
Running Kudu with MapReduce framework (Lightning talk in Cloudera World Tokyo)

Kudu

What's Kudu?

  • From http://getkudu.io/
    • Kudu completes Hadoop's storage layer to enable fast analytics on fast data.
    • Distributed Insertable/Updatable columnar store.
  • Schema on write.
@rdpanek
rdpanek / perf.md
Last active December 15, 2015 21:25
Performance Tester at Air Bank

#Performance Tester at Air Bank

Vidíš se jako SDET či Performance Tester a víš co znamená CI & CD, používáš aktivně Git flow, píšeš testable code, umíš pracovat s Linuxem, vyznáš se v automatizaci testů, takže víš k čemu je Performance, Load a Stress testing.

Hledám do svého týmu v Praze vývojáře/testera, který mi pomůže s rozvojem Performance testingu, s vývojem testovacího stacku, přípravou testovacích případů a vyhodnocováním úzkých míst bankovních systémů. Testovat performance bankovních systémů je výzva, není to procházka prošlapanou cestičkou a čeká tě spousta práce. Naučíš se mnoho z automatizace a hlavně nápady a seberealizace jsou velmi vítané. Musíš být vybaven pečlivostí, schopností stavět katedrálu v týmu, pracovat na fázích životního cyklu Performance testingu samostatně a bez popohánění.

Určitě mě navíc zaujme znalost z ISTQB CTFL, již předešlá praxe v automatizaci testů, tvůj Github s tvou prací, příspěvky do OpenSource projektů, zkušenosti s Docker, Selenium, Headless, NodeJS, Elasticsearc

@marszall87
marszall87 / docker-compose-install.sh
Created September 25, 2015 13:14
Simple script for installing latest Docker Compose on CoreOS >= 717.0.0
#!/bin/bash
mkdir -p /opt/bin
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
@vivianspencer
vivianspencer / server_hardening.md
Last active January 28, 2025 09:00
Debian 8 Hardening

Debian 8 Hardening

  1. Update root's mail recipient. Open /etc/aliases replacing [email protected] with an administrator's email address. This is where logs will be emailed.

    root:     [email protected]
    
  2. Update the the default umask to 027. Edit the file /etc/init.d/rc and change the following setting:

umask 027

@pakt
pakt / rdwr.py
Created August 15, 2015 10:59
Direct read/write access to Python's memory
#
# read/write access to python's memory, using a custom bytearray.
# some code taken from: http://tinyurl.com/q7duzxj
#
# tested on:
# Python 2.7.10, ubuntu 32bit
# Python 2.7.8, win32
#
# example of correct output:
# inspecting int=0x41424344, at 0x0228f898
@oza
oza / SparkOnYARN.md
Last active October 9, 2022 08:53
How to run Spark on YARN with dynamic resource allocation

YARN

  1. General resource management layer on HDFS
  2. A part of Hadoop

Spark

  1. In memory processing framework

Spark on YARN

@ace-subido
ace-subido / initial-setup.md
Last active November 19, 2023 14:32
Benchmarking a Hadoop Cluster

Requirements

  1. HDP-2.2 installed by Ambari
  2. Install HDFS Client
  3. Patience

Instructions

Setup