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/bash | |
| # | |
| # Install specific version of a Homebrew formula | |
| # | |
| # Usage: brewv.sh formula_name desired_version | |
| # | |
| # Notes: | |
| # - this will unshallow your brew repo copy. It might take some time the first time | |
| # you call this script | |
| # - it will uninstall (instead of unlink) all your other versions of the formula. |
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/python | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| AWS S3 Gzip compression utility | |
| Author: Dmitriy Sukharev | |
| Modified: 2013-09-11 | |
| ------- | |
| Synchronizes directory with gzipped content of Amazon S3 bucket with local |
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
| public class DynamoEnumConverter<TEnum> : IPropertyConverter | |
| { | |
| public object FromEntry(DynamoDBEntry entry) | |
| { | |
| string valueAsString = entry.AsString(); | |
| TEnum valueAsEnum = (TEnum)Enum.Parse(typeof(TEnum), valueAsString); | |
| return valueAsEnum; | |
| } | |
| public DynamoDBEntry ToEntry(object value) |
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
| 'use strict'; | |
| const AWS = require('aws-sdk'); | |
| const https = require('https'); | |
| const ec2 = new AWS.EC2(); | |
| const ipRangesUrl = 'https://ip-ranges.amazonaws.com/ip-ranges.json'; | |
| const target = { | |
| port: 5432, | |
| protocol: 'tcp', |
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 multiprocessing import Process | |
| def sub(myredis, name): | |
| pubsub = myredis.pubsub() | |
| pubsub.subscribe(['tasks']) | |
| for item in pubsub.listen(): | |
| print('%s : %s' % (name, item['data'])) | |
| if __name__ == "__main__": | |
| # main() |
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 Jenkinsfile examples |
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
| package jmeter | |
| import com.excilys.ebi.gatling.core.Predef._ | |
| import com.excilys.ebi.gatling.http.Predef._ | |
| import com.excilys.ebi.gatling.http.Headers.Names._ | |
| import bootstrap._ | |
| class JMeterBenchmark extends Simulation { | |
| def apply = { |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
- Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
- Create or import a key -- see below for https://keybase.io
- Run
gpg --list-secret-keysand look forsec, use the key ID for the next step - Configure
gitto use GPG -- replace the key with the one fromgpg --list-secret-keys