Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| - name: Compare plugins | |
| hosts: jenkins[0] | |
| gather_facts: false | |
| #connection: local | |
| tasks: | |
| - name: Load active plugins list from Jenkins | |
| jenkins_script: | |
| script: | | |
| import groovy.json.JsonOutput | |
| def plugins = [] |
| Install dependencies: | |
| sudo apt install gcc make libc6 linux-headers-generic libccid pcscd libpcsclite1 libgtk2.0-0 gtk2-engines-pixbuf libelf-dev libcanberra-gtk-module -y | |
| Download fpsu ip client: | |
| http://amicon.ru/forum/index.php?attachments/5-0-23_centos_7-5-zip.589/ | |
| Download citrix workspace: | |
| https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html | |
| Install private CA certificates: |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| tasks := []int{1, 2, 3, 4, 5, 6, 7, 8, 9} | |
| qs := 4 |
| #!/bin/bash | |
| set -e | |
| nexus="http://nexus/nexus/content/repositories/pypi/simple" | |
| if [ -z "${1}" ] || [ -z "${NEXUS_USER}" ] || [ -z "${NEXUS_PASSWORD}" ]; then | |
| echo "Upload pip file to Nexus" | |
| echo "Usage:" | |
| echo "${0} [filename]" | |
| echo "Use repo: pip install sphinx --index-url=\"${nexus}\" --trusted-host=\"nexus\"" | |
| echo "Script depends on ruby python-pip pip-wheel curl basename" |
| #!/bin/bash | |
| set -e | |
| if [ -z "$1" ]; then | |
| echo "Upload pip file to minio" | |
| echo "Usage:" | |
| echo "${0} filename" | |
| echo "use repo: pip install sphinx --index-url=\"http://10.116.99.190/files/python/pypi/\" --trusted-host=\"10.116.99.190\"" | |
| exit 0 | |
| fi |
| #!/usr/bin/ruby | |
| =begin | |
| ## USAGE: | |
| # Ruby: | |
| ruby gem-fetch-dependencies.rb fetch <gem_name> --dependencies | |
| # JRuby: | |
| jruby gem-fetch-dependencies.rb fetch <gem_name> --dependencies |
| kernel_lt_version: 4.4.122 | |
| kernel_lt_package: kernel-lt-{{ kernel_lt_version }} | |
| - name: install kernel 4.x | |
| yum: name={{ kernel_lt_package }} | |
| register: kernel_update | |
| - block: | |
| - name: upgrade all packages |
| --- | |
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: Load containers tags | |
| include_vars: "{{ item }}" | |
| with_items: | |
| - ../kubespray/roles/download/defaults/main.yml | |
| - ../kubespray/roles/kubernetes-apps/ansible/defaults/main.yml | |
| - ../var/images.yml |
| import os | |
| import socket | |
| execfile('/wsadminlib/wsadminlib.py') | |
| serverName = os.environ['SERVER_NAME'] | |
| nodeName = os.environ['NODE_NAME'] | |
| cellName = os.environ['CELL_NAME'] | |
| hostName = socket.gethostname() |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000