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
for f in *.mp3; do ffmpeg -i "$f" -filter:a "atempo=2" fast/"$f"; done |
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 | |
# script to set up a Kind Kubernetes on local machine, configured with no authentication and dashboard with TLS disabled. | |
# Download this script to an empty directory, and execute with | |
# | |
# chmod +x kind_always_allow_with_dashboard.sh; ./kind_always_allow_with_dashboard.sh | |
echo Installing components | |
brew install kind kubectl helm | |
helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/ |
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
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
kubeadmConfigPatchesJSON6902: | |
- group: kubeadm.k8s.io | |
version: v1beta2 | |
kind: ClusterConfiguration | |
patch: | | |
- op: add |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<com.pmease.quickbuild.model.Configuration> | |
<id>26252</id> | |
<disabled>false</disabled> | |
<parent>22065</parent> | |
<name>CloudNodeMonitor</name> | |
<description>Creates an XML with entries for all of the running cloud nodes in R&D Accounts, across supported clouds</description> | |
<buildCondition class="com.pmease.quickbuild.setting.configuration.buildcondition.AlwaysBuild"/> | |
<schedule class="com.pmease.quickbuild.taskschedule.schedule.PeriodicalSchedule"> |
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
from mistclient import MistClient | |
client = MistClient(email="MY_MIST_EMAIL", password="MY_MIST_PASSWORD") | |
ec2_demo_access_key ="AWS_ACCESS_KEY" | |
ec2_demo_secret_key = "AWS_SECRET_KEY" | |
ec2_account_name = "AWS_ACCOUNT_NAME" | |
def create_ec2_backends(): | |
# creates backends for all ec2 regions | |
for provider in client.supported_providers: |
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
from mistclient import MistClient | |
client = MistClient(email="MY_MIST_EMAIL", password="MY_MIST_PASSWORD") | |
hp_username="HP_CLOUD_USERNAME" | |
hp_password="HP_CLOUD_PASSWORD" | |
hp_regions = [ | |
["hpcloud:region-a.geo-1", "HP - US West"], | |
["hpcloud:region-b.geo-1", "HP - US East"] | |
] |
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
private DefaultHttpClient getSSLHttpClient(final URL url) throws RestClientException { | |
try { | |
final X509TrustManager trustManager = createTrustManager(); | |
SSLContext ctx = SSLContext.getInstance("TLS"); | |
ctx.init(null, new TrustManager[]{trustManager}, null); | |
SSLSocketFactory ssf = new SSLSocketFactory(ctx, createHostnameVerifier()); | |
AbstractHttpClient base = new DefaultHttpClient(); | |
ClientConnectionManager ccm = base.getConnectionManager(); | |
SchemeRegistry sr = ccm.getSchemeRegistry(); | |
sr.register(new Scheme(HTTPS, url.getPort(), ssf)); |