This gist is deprecated. Please see http://github.com/sethvargo/hashicorp-installer.
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
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 jenkins:1.596 | |
USER root | |
RUN apt-get update \ | |
&& apt-get install -y sudo \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers | |
USER jenkins | |
COPY plugins /usr/share/jenkins/plugins |
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 -x | |
exec > /tmp/user-data.log 2>&1 | |
mkdir -p /var/spool/rsyslog | |
( | |
mkdir -p /etc/rsyslog.d/keys/ca.d | |
cd /etc/rsyslog.d/keys/ca.d | |
curl -O https://logdog.loggly.com/media/logs-01.loggly.com_sha12.crt |
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
/** | |
* ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== | |
* | |
* This patch works around iOS9 UIWebView regression that causes infinite digest | |
* errors in Angular. | |
* | |
* The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular | |
* have the workaround baked in. | |
* | |
* To apply this patch load/bundle this file with your application and add a |
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
// Requires the Toast plugin: https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin | |
// And Ionic Framework: http://ionicframework.com | |
// ngCordova is used here, but easily removed: http://ngcordova.com/ | |
// When running in Cordova, show the native toast. Outside of Cordova, show an Ionic Popup for the same period of time. | |
// Uses the API for the Toast plugin - message, duration, position. | |
// Differences are that: Ionic Popup ignores position, and doesn't allow doing anything while it shows. | |
.factory('Toast', function($rootScope, $timeout, $ionicPopup, $cordovaToast) { | |
return { | |
show: function (message, duration, position) { |
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
{ | |
"ignore": [ | |
"**/deps/**", | |
"**/node_modules/**", | |
"**/thirdparty/**", | |
"**/third_party/**", | |
"**/vendor/**", | |
"**/**-min-**", | |
"**/**-min.**", | |
"**/**.min.**", |
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 | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
NewerOlder