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
| # syntax = docker/dockerfile:1.0-experimental | |
| FROM python:3.7-alpine AS builder | |
| WORKDIR /app | |
| COPY . . | |
| # mount the secret in the correct location, then run pip install | |
| RUN --mount=type=secret,id=pipconfig,dst=/etc/pip.conf \ | |
| pip install -r requirements.txt |
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
| // No Security | |
| { | |
| "rules": { | |
| ".read": true, | |
| ".write": true | |
| } | |
| } |
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
| pipeline { | |
| agent { node { label 'swarm-ci' } } | |
| environment { | |
| TEST_PREFIX = "test-IMAGE" | |
| TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}" | |
| TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}" | |
| REGISTRY_ADDRESS = "my.registry.address.com" | |
| SLACK_CHANNEL = "#deployment-notifications" |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.gui = true | |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Modified. | |
| # Original script source: | |
| # http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
| # https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
| # Usage: | |
| # Run the script from a folder with file "all.mbox" |
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
| Linux sysctl.conf setting changes: | |
| # Technologies suggested buffer settings | |
| net.core.rmem_max = 16777216 | |
| net.core.wmem_max = 16777216 | |
| net.core.rmem_default = 8388608 | |
| net.core.wmem_default = 8388608 | |
| net.core.netdev_max_backlog = 3145728 | |
| net.ipv4.tcp_window_scaling = 0 | |
| net.ipv4.route.secret_interval = 86400 | |
| net.ipv4.tcp_rmem = 262144 4194304 16777216 |
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 ebaysdk | |
| from ebaysdk import finding | |
| api = finding(siteid='EBAY-GB', appid='<REPLACE WITH YOUR OWN APPID>') | |
| api.execute('findItemsAdvanced', { | |
| 'keywords': 'laptop', | |
| 'categoryId' : ['177', '111422'], | |
| 'itemFilter': [ | |
| {'name': 'Condition', 'value': 'Used'}, |