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
upstream myapp1 { | |
server 127.0.0.1:9000; | |
server 127.0.0.1:9001; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/html; | |
index index.php; |
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/env python | |
""" | |
A simple example of using Python sockets for a client HTTPS connection. | |
""" | |
import ssl | |
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(('github.com', 443)) |
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/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php | |
index 12efc1a..383cd8d 100644 | |
--- a/system/src/Grav/Common/Assets.php | |
+++ b/system/src/Grav/Common/Assets.php | |
@@ -678,15 +678,20 @@ class Assets | |
} | |
} | |
- // Render Inline JS | |
+ // Convert Inline JS into a sourced JS file |
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 | |
# | |
# Digital Marketplace dev environment build script. | |
# | |
# use brew to install the following before running this script: | |
# | |
# postgres 9.6.x | |
# nvm | |
# cairo | |
# pango |
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 | |
# | |
# Digital Marketplace dev environment build script. | |
# | |
# use brew to install the following before running this script: | |
# | |
# postgres 9.6.x | |
# nvm | |
# yarn | |
# bower |
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 | |
# | |
# This updates the CF ups-dm-common app's env vars. You need to make sure | |
# the below JSON encoded object contains *all* the env vars, as this is a | |
# complete replacement. | |
# | |
cf update-user-provided-service ups-dm-common -p @<(cat <<EOF | |
{ | |
"ENV_VAR_EXAMPLE_1": "xxx", |
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
\.(filter|having|distinct|group_by|order_by)\( | |
?[^\)]+ |
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
input { | |
tcp { | |
port => 5000 | |
} | |
} | |
filter { | |
json { | |
source => "message" | |
} |
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 requests | |
import json | |
import os | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description="Downloads build logs from circleci for a particular project and repo.") | |
parser.add_argument("-p", "--project", help="project and repo to request circleci build logs for, in the format of project/repo") | |
parser.add_argument("-t", "--token", default=None, help="API token for non public readable builds") |
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 requests | |
import json | |
import os | |
import urllib.parse | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description="Downloads build logs from travisci for a particular project.") | |
parser.add_argument("-p", "--project", help="project to request travisci build logs for") | |
parser.add_argument("-r", "--repo", default=None, help="repo to request travisci build logs for") |
OlderNewer