service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval(in minutes)service.beta.kubernetes.io/aws-load-balancer-access-log-enabled(true|false)service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-nameservice.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefixservice.beta.kubernetes.io/aws-load-balancer-additional-resource-tags(comma-separated list of key=value)service.beta.kubernetes.io/aws-load-balancer-backend-protocol(http|https|ssl|tcp)service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled(true|false)
Let's say you have a SysV Init Script named foo
-
Copy the file to
/etc/init.d/foo -
Enable the SysV service:
chkconfig --add foo -
Enable the SysV service:
chkconfig foo on -
Start the service:
service foo start. After this, systemd-sysv-generator will generate this file/run/systemd/generator.late/foo.service, copy this file to/etc/systemd/systemby running:cp /run/systemd/generator.late/foo.service /etc/systemd/system/foo.service -
Edit
/etc/systemd/system/foo.serviceby runningsystemctl edit foo.service, add in the following line tofoo.servie(this makes the service installable)
[Install]
This file contains hidden or 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 | |
| agree() { | |
| local question="$1" | |
| while true; do | |
| read -p "$question " answer | |
| case $answer in | |
| [Yy]|[Yy][Ee][Ss]) return 0 ;; | |
| [Nn]|[Nn][Oo]|'') return 1 ;; # empty string is default |
This file contains hidden or 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 | |
| # Check if all changed zone files have had their SOA serial incremented. | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
This file contains hidden or 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
| @import url(https://fonts.googleapis.com/css?family=Open+Sans:300,600,300italic,700italic); | |
| /** | |
| * A simple theme for reveal.js presentations, similar | |
| * to the default theme. The accent color is rgb(242, 56, 24). | |
| * | |
| * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. | |
| * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se | |
| */ | |
| /********************************************* | |
| * GLOBAL STYLES |
This file contains hidden or 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
| --- input.lua.bak 2014-06-28 10:13:51.897841317 +0800 | |
| +++ input.lua 2014-06-28 11:38:07.049859004 +0800 | |
| @@ -295,6 +295,10 @@ | |
| if not (nil == intParam) then | |
| text = string.format(text, intParam) | |
| end | |
| + | |
| + for key, rename in pairs(STRINGS.UI.CONTROLSSCREEN.GENERIC_CONTROLLER_RENAMES) do | |
| + text = string.gsub(text, key, rename) | |
| + end |
This file contains hidden or 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
| _Go to your Owncloud installation <https://myowncloud/remote.php/mozilla_sync> and accept the SSL Certificate | |
| _Open about:config | |
| _Create: services.sync.username <string> the value should be a hash not the username itself. (You only need the hash if the | |
| sync was setup with a pre FF29, if you start from scratch the string doesn't matter) | |
| You can look this up in an older browser or in the logs of your Owncloud server!! | |
| _Go to: Preferences -> Sync -> Setup Firefox sync (you should see the old UI now) | |
| 'I Have an Account' | |
| 'I don't have the device with me' | |
| 'Account' - again use the hash NOT the actual username! |
This file contains hidden or 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
| <IfModule !proxy_module> | |
| LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so | |
| </IfModule> | |
| <IfModule !proxy_http_module> | |
| LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so | |
| </IfModule> | |
| <IfModule !headers_module> | |
| LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so |
This file contains hidden or 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 anti key-grabber | |
| // @description Prevent web apps from capturing and muting vital keyboard shortcuts | |
| // @grant none | |
| // @version 1.1 | |
| // ==/UserScript== | |
| (function(){ | |
| var isMac = unsafeWindow.navigator.oscpu.toLowerCase().contains("mac os x"); | |
| unsafeWindow.document.addEventListener('keydown', function(e) { | |
| if (e.keyCode === 116) { |