-
Install the packages
sudo apt-get install libinput-tools xserver-xorg-input-libinput -
Identify the touchpad device with
sudo /usr/bin/libinput-list-devices ... Device: DLL06E5:01 06CB:7A13 Touchpad Kernel: /dev/input/event16
Group: 8
| # Usage: ansible-playbook aws-cf-delete-stacks.yml -e '{"stacks": ["jenkins", "openvpn", "network", "iam"], "region": "us-west-2"}' | |
| - hosts: localhost | |
| gather_facts: no | |
| connection: local | |
| tasks: | |
| - name: Delete Stacks | |
| with_items: "{{ stacks }}" | |
| cloudformation: | |
| stack_name: "{{ item }}" | |
| state: "absent" |
| #!groovy | |
| import jenkins.model.* | |
| import java.util.logging.Logger | |
| def plugins = "job-dsl git docker-custom-build-environment pipeline-stage-view github workflow-aggregator workflow-multibranch conditional-buildstep parameterized-trigger rebuild email-ext".split() | |
| def log = Logger.getLogger("") | |
| def instance = Jenkins.getInstance() | |
| def updateCenter = instance.getUpdateCenter() |
| # File: /etc/systemd/system/docker-tcp.socket | |
| [Unit] | |
| Description=Docker Socket for the API | |
| [Socket] | |
| ListenStream=2375 | |
| BindIPv6Only=both | |
| Service=docker.service | |
| [Install] |
| git clone https://github.com/waltervargas/docker-gnome-builder.git | |
| cd docker-gnome-builder | |
| sed -i "s/waltervargas/$USER/g" Dockerfile | |
| docker build -t gnome-builder . | |
| docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME:$HOME --name gnome-builder gnome-builder |
| docker build -t gnome-builder . |
| FROM ubuntu:16.10 | |
| RUN apt-get update && apt-get install -y gnome-builder | |
| RUN useradd waltervargas | |
| USER waltervargas | |
| ENV HOME /home/waltervargas | |
| CMD /usr/bin/gnome-builder |
Install the packages
sudo apt-get install libinput-tools xserver-xorg-input-libinput
Identify the touchpad device with
sudo /usr/bin/libinput-list-devices
...
Device: DLL06E5:01 06CB:7A13 Touchpad
Kernel: /dev/input/event16
Group: 8
| #!/bin/bash | |
| cd packer/jenkins | |
| if [ ! -f bin/packer ]; then | |
| wget -c https://releases.hashicorp.com/packer/0.12.3/packer_0.12.3_linux_amd64.zip | |
| unzip -d bin packer_0.12.3_linux_amd64.zip | |
| fi | |
| branch=$(git rev-parse --abbrev-ref HEAD) | |
| git_url=$(git config --get remote.origin.url) | |
| tmpl=$(git rev-parse --show-prefix) | |
| tmpl+=jenkins.json |
| --- | |
| Description: Create a VPC with a SG which references itself | |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Resources: | |
| vpc: | |
| Type: AWS::EC2::VPC | |
| Properties: | |
| CidrBlock: 172.16.0.0/16 | |
| EnableDnsSupport: false | |
| EnableDnsHostnames: false |
| from flask import Flask | |
| from flask import jsonify | |
| from redis import Redis | |
| import time | |
| app = Flask(__name__, static_url_path="") | |
| redis = Redis('redis') | |
| @app.route('/') | |
| def root(): |