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
(require 'request) | |
(require 'cl-lib) | |
(require 'webpaste) | |
(defun paste-ubuntu-field-lambda () | |
"lambda for building post compatible with paste.ubuntu.com." | |
(cl-function (lambda (&key text | |
post-field | |
provider-uri | |
(post-lang-field-name nil) | |
(post-data '())) |
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/python | |
import os | |
import subprocess | |
import time | |
import yaml | |
import re | |
user_name = os.environ.get("DOCKERHUB_USER") |
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 -eu | |
# | |
# Sweep through all VFs and do an ip link set with their MAC so that PF is | |
# updated. | |
# | |
declare -A pfs=() | |
declare -A vf_info=() | |
declare -A vf_info2=() | |
declare -A vf_info3=() |
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
#include <errno.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/ptrace.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
struct elf { |
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
package transform | |
import ( | |
"errors" | |
"fmt" | |
"strconv" | |
"strings" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/service/ecs" |
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
## Workaround openstack nova+openvswitch mtu issues when no jumbo frames are available, | |
## by setting up udev at neutron-gateway to hook on routing interface creation to | |
## lower the MTU (thus trigger ICMPs for PMTU discovery) | |
## See: https://blueprints.launchpad.net/neutron/+spec/network-options-mtu | |
## keywords: openstack, nova, openvswitch, mtu, 1500, no jumbo frames | |
## Create these two files: |
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
# | |
# Varnish VCL file for Ghost blogging platform. | |
# http://ghost.org/ | |
# | |
# Written for Ghost v0.3.0. | |
# | |
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2 | |
# minutes, and everything below /ghost/ is pass()-ed so the user sessions | |
# work. | |
# |
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
(require 'compile) | |
(defun* get-closest-pathname (&optional (file "tox.ini")) | |
"Determine the pathname of the first instance of FILE starting | |
from the current directory towards root. This may not do the | |
correct thing in presence of links. If it does not find FILE, | |
then it shall return the name of FILE in the current directory, | |
suitable for creation" | |
(let ((root (expand-file-name "/"))) | |
(expand-file-name file |
NewerOlder