Skip to content

Instantly share code, notes, and snippets.

Christian Winther jippi

Block or report user

Report or block jippi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Har aldrig oplevet at der er et interaktivt slideshow i en mail.
<br class="">
<div>
<br class="">
View index.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=
=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: s=
pace; line-break: after-white-space;" class="">Har aldrig oplevet at der = er et interaktivt slideshow i en mail.
<br class="">
View derp.html
<html>
<head>
<meta http-equiv=3D "Content-Type" content=3D "text/html; charset=
=3Dutf-8">
</head>
<body style=3D "word-wrap: break-word; -webkit-nbsp-mode: s=
pace; line-break: after-white-space;" class=3D "">Har aldrig oplevet at der = er et interaktivt slideshow i en mail.
<br class=3D "">
View nomad.json
{
"bind_addr": "0.0.0.0",
"data_dir": "/var/lib/nomad",
"datacenter": "xxx",
"disable_update_check": true,
"enable_syslog": true,
"leave_on_interrupt": true,
"leave_on_terminate": true,
"log_level": "DEBUG",
"name": "xxxx",
View config.yml
---
target:
# where to copy images to
registry: xxxx.dkr.ecr.us-east-1.amazonaws.com
# (optional) prefix all repositories with this name
# xxxx.dkr.ecr.us-east-1.amazonaws.com/hub/jippi/hashi-ui
prefix: "hub/"
# what repositories to copy
View mirror.sh
#!/bin/bash
set -e
filename="repo_dockerhub.conf"
source_registry=""
destination_prefix="hub/"
destination_registry="xxxx.dkr.ecr.us-east-1.amazonaws.com/${destination_prefix}"
existing_repos=$(aws ecr describe-repositories | jq -r '.repositories[].repositoryName')
View delete_unused_launch_configurations.sh
#!/bin/bash
#
# based on https://gist.github.com/brauliobo/d3692d3ac5eb8b00e863
# our version handle spaces and other chars we use in the launch configuration
#
BOLD="\e[1m"
RESET="\e[0m"
GREEN="\e[32m"
View console.php
<?php
namespace Bownty\Foundation\Error;
use Bownty\Foundation\Environment;
use Cake\Console\ConsoleErrorHandler;
use Exception;
use NewRelic\Lib\NewRelic;
/**
* Error Handler for Cake console. Does simple printing of the
* exception that occurred and the stack trace of the error.
*/
View nr.php
<?php
newrelic_add_custom_parameter('APP_VERSION', Environment::getAppVersion());
newrelic_add_custom_parameter('APP_ENV', Environment::get());
if (php_sapi_name() !== 'cli') {
newrelic_add_custom_parameter('_get', json_encode($_GET));
newrelic_add_custom_parameter('_post', json_encode($_POST));
newrelic_add_custom_parameter('_files', json_encode($_FILES));
newrelic_add_custom_parameter('_cookies', json_encode($_COOKIE));
$serverVars = [
'GEOIP_COUNTRY_CODE', 'GEOIP_CITY_NAME', 'HTTP_HOST',
View demo.hcl
// Scale for the job "content-themes"
job "content-themes" {
// For group "populator"
group "populator" {
// (required) The minimum nuber of tasks to run for this job
min_count = 0
// (required) The maximum number of tasks to run for this job
max_count = 1
You can’t perform that action at this time.