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
import os | |
import threading | |
import urllib.request | |
import logging | |
from time import sleep | |
__author__ = "Florian Dambrine <android.florian@gmail.com>" | |
class DatabricksPushgatewayExporter: | |
""" |
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 | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
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 | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
struct Mobile { | |
let number: String | |
let status: String | |
} | |
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
releaseConfig="Debug" | |
if [ "$releaseConfig" != "${CONFIGURATION}" ]; then | |
echo "Running Crashlytics" | |
./Fabric.framework/run <your_api_key_here> | |
fi |
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
let myLocale = Locale(identifier: "th_TH") | |
let dateFormatter = DateFormatter() | |
dateFormatter.dateStyle = .full | |
dateFormatter.timeStyle = .full | |
dateFormatter.locale = myLocale | |
let date = Date() | |
let stringFromDate = dateFormatter.string(from: date) |
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
localeIdentifier | Description | |
---|---|---|
eu | Basque | |
hr_BA | Croatian (Bosnia & Herzegovina) | |
en_CM | English (Cameroon) | |
rw_RW | Kinyarwanda (Rwanda) | |
en_SZ | English (Swaziland) | |
tk_Latn | Turkmen (Latin) | |
he_IL | Hebrew (Israel) | |
ar | Arabic | |
uz_Arab | Uzbek (Arabic) |
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
#!/usr/bin/env groovy | |
def getBuildNumber() { | |
stage 'Get Build Number' | |
def job = build job: 'ios-buildnumber' | |
env.BUILD_ID = job.getNumber() | |
} | |
node('your node name') { | |
echo "Starting Pipeline" |
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 debian:jessie | |
# Create the jenkins user | |
RUN useradd -d "/var/jenkins_home" -u 1000 -m -s /bin/bash jenkins | |
# Create the folders and volume mount points | |
RUN mkdir -p /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins | |
VOLUME ["/var/log/jenkins", "/var/jenkins_home"] | |
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 jenkinsci/jenkins:2.0 | |
USER root | |
RUN mkdir /var/log/jenkins | |
RUN mkdir /var/cache/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/cache/jenkins | |
USER jenkins | |
ENV JAVA_OPTS="-Xmx8192m" |
NewerOlder