# /srv/pillar/top.sls
base:
'*':
- roles.saltstack.minion
'*saltmaster*':
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: limit-request-default | |
namespace: istio-system | |
spec: | |
# If the EnvoyFilter is present in the config root namespace, it will be applied to all applicable workloads in any namespace. | |
# It looks like this filter was being applied to all gateways as it wasn't a valid selector | |
#workloadSelector: | |
# labels: |
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
location /api_thing/api { | |
if (-f /etc/nginx/maint_mode/api_thing) { | |
return 503; | |
} | |
- limit_req zone=api_thing_servers burst=2000 nodelay; | |
+ limit_req zone=api_thing_servers0 burst=2000 nodelay; | |
+ limit_req zone=api_thing_servers1 burst=4000 nodelay; | |
+ limit_req zone=api_thing_servers2 burst=1000 nodelay; | |
client_max_body_size 1m; | |
} |
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
salt-repo: | |
pkgrepo.managed: | |
- humanname: SaltStack Repo | |
- name: deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 {{ grains['lsb_distrib_codename'] }} main | |
- dist: {{ grains['lsb_distrib_codename'] }} | |
- key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | |
salt-minion: | |
pkg.latest: | |
- name: salt-minion |
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 requests | |
from creds import LEGACY_TOKEN | |
from datetime import datetime | |
from exceptions import (InvalidAuthToken, | |
APIRequestError) | |
channel_history_url = "https://slack.com/api/channels.history" | |
channel_list_url = 'https://slack.com/api/channels.list' | |
channel_archive_url = 'https://slack.com/api/channels.archive' | |
post_message_url = 'https://slack.com/api/chat.postMessage' |
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/awk -f | |
# prints each klv based on beginning length on a new line | |
# 012TESTYYYNN014NEWSYYYNNYY | |
# 012TESTYYYNN | |
# 014NEWSYYYNNYY | |
{ | |
for(columIndex=0; columIndex <=length($0); columIndex++) | |
{ | |
currLen = int(substr($1, columIndex, 3) ) | |
print substr($1,columIndex,currLen) |
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
""" | |
some_config.txt is the file | |
inside you have a value like | |
LASTSPECIFICVAL="222" | |
""" |
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
PS C:\Users\wimo7\Desktop\back> make db_migrate | |
docker-compose run web rake db:migrate | |
Starting operationcodebackend_operationcode-psql_1 ... done | |
Starting operationcodebackend_bundle_1 ... done | |
Starting operationcodebackend_redis_1 ... done | |
W, [2018-04-22T03:19:15.749687 #1] WARN -- : [SKYLIGHT] [1.5.0] Running Skylight in development mode. No data will be reported until you deploy your app. | |
(To disable this message for all local apps, run `skylight disable_dev_warning`.) | |
I, [2018-04-22T03:19:16.070514 #1] INFO -- : Raven 2.5.3 configured not to capture errors: DSN not set | |
W, [2018-04-22T03:19:16.594481 #1] WARN -- : Creating scope :open. Overwriting existing method GitHubStatistic.open. | |
D, [2018-04-22T03:19:17.058166 #1] DEBUG -- : (0.2ms) SELECT pg_try_advisory_lock(3885840460873229985); |
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
PS C:\Users\wimo7\Desktop\hampton> yarn | |
yarn install v1.3.2 | |
[1/4] Resolving packages... | |
success Already up-to-date. | |
Done in 0.74s. | |
PS C:\Users\wimo7\Desktop\hampton> yarn run build | |
yarn run v1.3.2 | |
$ node scripts/build.js | |
Creating an optimized production build... | |
(node:10636) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 |
NewerOlder