Download the windows image you want.
AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)
So Home wont work.
pipeline { | |
options { | |
buildDiscarder(logRotator(numToKeepStr: '10')) // Retain history on the last 10 builds | |
ansiColor('xterm') // Enable colors in terminal | |
timestamps() // Append timestamps to each line | |
timeout(time: 20, unit: 'MINUTES') // Set a timeout on the total execution time of the job | |
} | |
agent { | |
// Run this job within a Docker container built using Dockerfile.build | |
// contained within your projects repository. This image should include |
const exec = require('child_process').exec; | |
const fs = require("fs"); | |
exports.handler = function(event, context) { | |
console.log("creating certificate"); | |
exec('openssl req -x509 -newkey rsa:4096 -keyout /tmp/key.pem -out /tmp/cert.pem -subj "/C=DE/ST=Bavaria/L=Munich/O=apimeister org/OU=org unit/CN=apimeister.com" -days 45 -nodes', (error, stdout, stderr) => { | |
if (error) { | |
throw error; | |
} | |
console.log("reading certificate"); |
## Delete a remote branch | |
$ git push origin --delete <branch> # Git version 1.7.0 or newer | |
$ git push origin :<branch> # Git versions older than 1.7.0 | |
## Delete a local branch | |
$ git branch --delete <branch> | |
$ git branch -d <branch> # Shorter version | |
$ git branch -D <branch> # Force delete un-merged branches | |
## Delete a local remote-tracking branch |
import os | |
import json | |
from flask import Flask, request, redirect, jsonify | |
from rauth import OAuth2Service | |
GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth' | |
GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke' | |
GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' | |
GOOGLE_ANALYTICS_API_ENDPOINT = 'https://www.googleapis.com/analytics/v3/' |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
tar -xzf Python-2.7.3.tgz | |
cd Python-2.7.3 | |
./configure --prefix=/usr --enable-shared | |
make | |
sudo make install | |
cd .. |