This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PearlHacks Sass!</title> | |
</head> | |
<body> | |
<header>PearlHacks Sass!</header> | |
<main> | |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod | |
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PearlHacks Sass!</title> | |
</head> | |
<body> | |
<header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# map the cp-local user hostnames to the remote environment hostnames | |
map $http_host $upstream_host { | |
~^dev-.*\.domain\.com$ real.domain.com; | |
} | |
# Listen on port 80, but redirect to https/443 | |
server { | |
listen 80; | |
server_name ~^(dev|qa|stage|prod).*\.domain\.com$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Godzilla Rampage | |
// @namespace godzilla.substitution.fun | |
// @description Replaces 'God' with 'Godzilla' | |
// @version 1.0.0 | |
// @grant none | |
// @include http://* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Wrap your function such that it will be executed every N times it's called. | |
* This is useful in a long-running loop such as the main loop in a game, where | |
* you want to execute certain functions every 10 frames, or similar, but don't | |
* want to manage a dozen separate "timers". | |
* | |
* @param {Function} f the function to wrap | |
* @param {Number} n execute the function every `n` times | |
*/ | |
function nth(f, n) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# USAGE: gif SECONDS FILENAME | |
# example: gif 4 out.gif | |
# then drag a box :D | |
# Delay before starting | |
DELAY=0 | |
# Duration and output file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="typed.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# usage: memlog.sh PID | |
# requires gnuplot and matplotlib (dnf install python2-matplotlib gnuplot) | |
PID=$1 | |
LOG=./$PID.log | |
PNG=./$PID.log.png | |
echo recording memory usage for PID $PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>I am your snippet.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="module" src="https://unpkg.com/@patternfly/pfe-icon@latest/pfe-icon.js"></script> |