Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:DescribeLogGroups", | |
"logs:DescribeLogStreams", | |
"logs:GetLogEvents", | |
"logs:DeleteLogStream" |
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
{ | |
"$ref": "#/definitions/BuildSpec", | |
"definitions": { | |
"BuildSpec": { | |
"type": "object", | |
"required": [ | |
"version" | |
], | |
"additionalProperties": false, | |
"properties": { |
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 json | |
import boto3 | |
iam = boto3.client("iam") | |
list_policies = iam.get_paginator("list_policies") | |
for page in list_policies.paginate(Scope="Local"): | |
for policy in page["Policies"]: | |
tags = iam.list_policy_tags(Arn=policy["Arn"])["Tags"] |
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 <Foundation/Foundation.h> | |
typedef void (^CompletionHandler)(int); | |
@interface DeepThought : NSObject | |
+ (void)calculateWithCompletionHandler:(CompletionHandler)completionHandler; | |
@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
.PHONY: all clean | |
all: main | |
main: main.c libblock.dylib | |
libblock.dylib: lib.rs | |
rustc --crate-type cdylib $^ -o $@ | |
clean: |
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
FROM quay.io/centos/centos:stream9 | |
RUN dnf -y install systemd procps-ng && dnf clean all | |
RUN systemctl mask \ | |
systemd-remount-fs.service \ | |
dev-hugepages.mount \ | |
sys-fs-fuse-connections.mount \ | |
systemd-logind.service \ | |
getty.target \ | |
console-getty.service \ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.gnupg.gpg-agent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/gpgconf</string> | |
<string>--launch</string> |
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
FROM rust:alpine AS builder | |
RUN apk add --no-cache musl-dev | |
WORKDIR /build | |
COPY . . | |
RUN cargo build --release | |
FROM alpine |
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
plugins { | |
id 'java' | |
id 'application' | |
} | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
} |
NewerOlder