Create file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
# Requires=docker.service
# After=docker.service
apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
component: etcdclient | |
tier: debug | |
name: etcdclient | |
namespace: kube-system | |
spec: |
#!/bin/sh | |
# | |
# This script should prevent the following suspend errors | |
# which freezes the Dell Inspiron laptop. | |
# | |
# Put it in /usr/lib/systemd/system-sleep/xhci.sh | |
# | |
# The PCI 00:14.0 device is the usb xhci controller. | |
# | |
# kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16 |
#!/bin/bash | |
# | |
# Script based on https://jeremievallee.com/2018/05/28/kubernetes-rbac-namespace-user.html | |
# | |
# In honor of the remarkable Windson | |
#/bin/bash | |
namespace=$1 | |
if [ -z "$namespace" ]; then | |
echo "usage: $0 <NAMESPACE>" |
pipeline { | |
... | |
stages { | |
stage('Run CI?') { | |
steps { | |
script { | |
if (sh(script: "git log -1 --pretty=%B | grep -F -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 0) { | |
currentBuild.result = 'NOT_BUILT' | |
error 'Aborting because commit message contains [skip ci]' |
/* global chrome, MediaRecorder, FileReader */ | |
chrome.runtime.onConnect.addListener(port => { | |
let recorder = null | |
port.onMessage.addListener(msg => { | |
console.log(msg); | |
switch (msg.type) { | |
case 'REC_STOP': | |
console.log('Stopping recording') | |
if (!port.recorderPlaying || !recorder) { |
Create file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
# Requires=docker.service
# After=docker.service
[centos] | |
name=centos | |
baseurl=http://mirror.centos.org/centos/6/os/x86_64/ | |
enabled=0 | |
gpgcheck=1 | |
gpgkey=http://mirror.centos.org/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6 |
# Reliable persistent SSH-Tunnel via systemd (not autossh) | |
# https://gist.github.com/aslafy-z/24e2ddb02fa269444620eab1bcfe2932#file-serveo-tunnel-service | |
# | |
# Usage: systemctl start serveo-tunnel@[tunnel-string] (see https://serveo.net for details) | |
# systemctl start serveo-tunnel@mytunnel:80:localhost:8080 | |
# systemctl enable serveo-tunnel@mytunnel:80:localhost:8080 (to make it persist reboot) | |
[Unit] | |
Description=Serveo tunnel for %i | |
After=network.target |
<!doctype html> | |
<html> | |
<head> | |
<title>This is the title of the webpage!</title> | |
</head> | |
<body> | |
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p> | |
</body> | |
</html> |
<?php | |
// Disable update notification for individual plugin (current) | |
function filter_plugin_updates($value) { | |
if ($value) { | |
unset($value->response[plugin_basename(__FILE__)]); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); | |
?> |