Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| FROM ubuntu | |
| MAINTAINER Dustin Sallings "dustin@spy.net" | |
| ADD http://cbfs-ext.hq.couchbase.com/couchbase-dist/couchbase-server-enterprise_2.2.0_x86_64.deb /tmp/couchbase-server-enterprise_2.2.0_x86_64.deb | |
| RUN apt-get update | |
| RUN apt-get install -y librtmp0 python-httplib2 | |
| RUN dpkg -i /tmp/couchbase-server-enterprise_2.2.0_x86_64.deb | |
| RUN rm /tmp/couchbase-server-enterprise_2.2.0_x86_64.deb | |
| RUN /etc/init.d/couchbase-server stop |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| Step 1. Preparation | |
| -------------------- | |
| First take care of the dependencies for Android Application Development. | |
| Dependencies are - | |
| 1. Java | |
| 2. ant | |
| 3. Eclipse and Android Development tools (IDE) | |
| 4. Android SDK and NDK | |
| 5. adb |
You might want to read this to get an introduction to armel vs armhf.
If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.
First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/mail" | |
| "net/smtp" | |
| "crypto/tls" | |
| ) |
| // This systemd runs iptables-restore on boot: | |
| [Unit] | |
| Description=Packet Filtering Framework | |
| DefaultDependencies=no | |
| After=systemd-sysctl.service | |
| Before=sysinit.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/sbin/iptables-restore /opt/docker/scripts/iptables/iptables.rules |
| #cloud-config | |
| coreos: | |
| etcd: | |
| # generate a new token for each unique cluster from https://discovery.etcd.io/new | |
| discovery: https://discovery.etcd.io/<token> | |
| # multi-region deployments, multi-cloud deployments, and droplets without | |
| # private networking need to use $public_ipv4 | |
| addr: $private_ipv4:4001 | |
| peer-addr: $private_ipv4:7001 |
This python script is intended to automate the extraction of embedded certificates and keys from OpenVPN config files.
Unfortunately the GNOME Network-Manager is not able to automatically import OpenVPN config files with embedded certificates and keys. A workaround is to manually extract these and store them in separate files (e.g. see https://naveensnayak.wordpress.com/2013/03/04/ubuntu-openvpn-with-ovpn-file/).
Instructions:
Make shure all the required packages are installed. For example on Ubuntu and Debian run:
$ sudo apt-get install python3 network-manager-openvpn-gnome
| # See docs/examples | |
| # http://doc.gitlab.com/ce/ci/quick_start/README.html | |
| # http://doc.gitlab.com/ce/ci/yaml/README.html | |
| # GitLab CI template for Go tests. Note this installs | |
| # a new working copy of Go in a non-standard path such | |
| # that sudo/root is not needed for the install stage. | |
| # note that this particular install-environment stage | |
| # is overly verbose in order to debug anything tricky |
| ! Trying to F*** with my keyboard. | |
| ! | |
| ! The theory is that if I make the caps lock be the "Mode_switch" key, | |
| ! then I can change what happens for each key when I press the "Mode_switch" key. | |
| ! | |
| ! I'm not using the "Mode_switch" key anyway... | |
| ! | |
| ! This will make the caps lock be the "Mode_switch" key. | |
| clear Lock |