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
~/Library/Python/2.7/bin | |
ε ./maws | |
Unable to contact AWS : Traceback (most recent call last): | |
File "/Users/dparfitt/Library/Python/2.7/lib/python/site-packages/mozilla_aws_cli/login.py", line 356, in exchange_token_for_credentials | |
self.role_arn, | |
File "/Users/dparfitt/Library/Python/2.7/lib/python/site-packages/mozilla_aws_cli/sts_conn.py", line 100, in get_credentials | |
(strip_xmlns(x.tag), x.text) for x in credential_children]) | |
File "/Users/dparfitt/Library/Python/2.7/lib/python/site-packages/mozilla_aws_cli/utils.py", line 54, in strip_xmlns | |
return tag.split("}", maxsplit=1)[-1] | |
TypeError: split() takes no keyword arguments |
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
-- Disco.Interactive.Eval (no changes here) | |
handleCMD :: String -> Disco IErr () | |
handleCMD "" = return () | |
handleCMD s = do | |
exts <- use enabledExts | |
case (parseLine exts s) of | |
Left msg -> io $ putStrLn msg | |
Right l -> handleLine l `catchError` (io . print {- XXX pretty-print error -}) | |
where |
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
diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs | |
index 7d72a21a..83cf4c01 100644 | |
--- a/clippy_lints/src/write.rs | |
+++ b/clippy_lints/src/write.rs | |
@@ -440,12 +440,15 @@ fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &TokenStream, is_write: bool) -> (O | |
} | |
} | |
-/// Checks if the format string constains a single newline that terminates it. | |
+/// TODO: update these docs |
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
apiVersion: v1 | |
data: | |
kernel-monitor.json: | | |
{ | |
"plugin": "kmsg", | |
"logPath": "/dev/kmsg", | |
"lookback": "5m", | |
"bufferSize": 10, | |
"source": "kernel-monitor", | |
"conditions": [ |
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
import boto3 | |
REGIONS=['us-west-2', 'us-east-1', 'eu-central-1', 'ap-northeast-1'] | |
class ASGChecker: | |
def __init__(self, region): | |
self.region = region | |
self.asgclient = boto3.client('autoscaling', region_name=region) | |
self.elbclient = boto3.client('elb', region_name=region) |
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
~/kde/src$ kdesrc-build dolphin --include-dependencies | |
'Updating kde-build-metadata (to branch master) | |
Updating sysadmin-repo-metadata (to branch master) | |
Total of 'trivial' dependency cycles detected & eliminated: 2 | |
Building Qt5 from qt5-set (1/80) | |
Updating Qt5 (to branch 5.11) | |
Using Qt 5 modules: qtbase, qtdeclarative, qtgraphicaleffects, qtimageformats, qtmultimedia, qtquickcontrols, qtquickcontrols2, qtscript, qtsensors, qtsvg, qttools, qtwayland, qtwebchannel, qtwebsockets, qtwebview, qtx11extras, qtxmlpatterns | |
Source update complete for Qt5: 1 file affected. | |
LGPL license selected for Qt. See /home/dparfitt/kde/src/Qt5/LICENSE.LGPL |
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
cat ~/kde/src/log/2019-04-06-02/kdewebkit/cmake.log | |
# kdesrc-build running: 'cmake' '/home/dparfitt/kde/src/kdewebkit' '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DBUILD_TESTING=TRUE' '-DCMAKE_CXX_FLAGS:STRING=-pipe' '-DCMAKE_INSTALL_PREFIX=/home/dparfitt/kde/usr' '-DCMAKE_PREFIX_PATH=/home/dparfitt/kde/qt5' | |
# from directory: /home/dparfitt/kde/build/kdewebkit | |
-- The C compiler identification is GNU 8.2.0 | |
-- The CXX compiler identification is GNU 8.2.0 | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features |
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
'use strict'; | |
// MUST be created in us-east-1 | |
exports.handler = (event, context, callback) => { | |
const request = event.Records[0].cf.request; | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
response.headers['x-frame-options'] = [{"key":"X-Frame-Options","value":"DENY"}]; | |
response.headers['x-xss-protection'] = [{"key":"X-XSS-Protection","value":"1; mode=block"}]; | |
response.headers['x-content-type-options'] = [{"key":"X-Content-Type-Options","value":"nosniff"}]; | |
response.headers['content-security-policy'] = [{"key":"Content-Security-Policy","value":"font-src 'self' http://*.mozilla.net https://*.mozilla.net http://*.mozilla.org https://*.mozilla.org; img-src 'self' data: http://*.mozilla.net https://*.mozilla.net http://*.mozilla.org https://*.mozilla.org http://www.google-analytics.com https://www.google-analytics.com; style-src 'self' 'unsafe-inline' http://*.mozilla.org https://*.mozilla.org http://*.mozilla.net https://*.mozilla.net; script-src 'self' |
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
(* This file is part of Lwt, released under the MIT license. See LICENSE.md for | |
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *) | |
type test = { | |
test_name : string; | |
skip_if_this_is_false : unit -> bool; | |
run : unit -> bool Lwt.t; | |
} |
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
(* This file is part of Lwt, released under the MIT license. See LICENSE.md for | |
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *) | |
type test = { | |
test_name : string; | |
skip_if_this_is_false : unit -> bool; | |
run : unit -> bool Lwt.t; | |
} |
NewerOlder