$ gem install kontena-cli
$ kontena login {ip}
$ kontena grid use staging
$ kontena vpn config > kontena.ovpn
$ sudo openvpn --config kontena.ovpn --script-security 2 --daemon
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
# ===== Common side in gem apress-api | |
Rails.application.routes.draw do | |
scope module: "apress", constraints: {domain: :current} do | |
namespace "api/v1" do | |
post 'callbacks/:service' => 'callbacks#create' | |
end | |
end | |
end |
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
require 'benchmark/ips' | |
require 'open-uri' | |
require 'bigdecimal' | |
require 'bigdecimal/math' | |
class Contract | |
DIGITS = 10_000 | |
URL = 'http://www.nooooooooooooooo.com/'.freeze | |
def call(parallel_io_only:, cpu_count:, io_count:) |
I hereby claim:
- I am bibendi on github.
- I am bibendi (https://keybase.io/bibendi) on keybase.
- I have a public key ASDynTp-5ubsrL1hm6jHzh0KkUbBfmCcb-sn_JLrSVU_awo
To claim this, I am signing this object:
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
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
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
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
require "octokit" | |
client = Octokit::Client.new(access_token: "") | |
client.auto_paginate = true | |
client.organization_repositories('abak-press', type: 'all').each do |repo| | |
client.delete_subscription(repo.id) | |
client.forks(repo.id).each do |fork| | |
client.delete_subscription(fork.id) |
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