Skip to content

Instantly share code, notes, and snippets.

View bcachet's full-sized avatar

Bertrand Cachet bcachet

  • Neuchatel; Switzerland
View GitHub Profile
checksum uuid url created url account_id
0f1af4394586b5ca2748fde0a6de0f1f b19ab99c-f607-43ad-b658-844674a2f01d http://vendor-images.sos-ch-dk-2.exo.io/FortiGate-6_0_4-2019-01-16-0f1af4-100G.qcow2 2019-01-24 10:08:10 NULL 12906
197e1d0622fa9f5b7d1b6b9c21286583 694bdc8f-c231-49a7-a059-f092158b9bfb http://vendor-images.sos-ch-dk-2.exo.io/CheckPoint-R80_20-2019-01-24-197e1d-200G.qcow2 2019-01-24 14:02:14 NULL 12906
0d0e9c6da82a97e4c496deb8a996f4ff 10b3cdbb-61fa-449c-a433-5ef7ff323213 http://vendor-images.sos-at-vie-1.exo.io/CheckPoint-R8010-2019-01-30-0d0e9c-200G.qcow2 2019-02-05 14:18:06 NULL 12906
7a66de26a4ed1b0a9c6ce944ae50b5c1 3e658dc0-5b4c-4c87-badc-a1b40f5cd2a0 http://vendor-images.sos-at-vie-1.exo.io/CiscoASAv-9101-2018-12-21-7a66de-50G.qcow2 2019-02-05 14:23:48 NULL 12906
0d0e9c6da82a97e4c496deb8a996f4ff 1e999a89-b652-4a0e-8505-45a5fffe7c47 http://vendor-images.sos-at-vie-1.exo.io/CheckPoint-R8010-2019-01-30-0d0e9c-200G.qcow2 2019-02-05 15:05:39 NULL 12906
0d0e9c6da82a97e4c496deb8a996f4ff a171564b-e451-4
diff --git src/obwald/service/dns.clj src/obwald/service/dns.clj
index 5bc6584..89263b0 100644
--- src/obwald/service/dns.clj
+++ src/obwald/service/dns.clj
@@ -219,8 +219,8 @@
(defn update-domain-record!!
[request params record-id record]
(d/let-flow [domain (fetch-domain!! request params)
- record (dnsimple/update-domain-record (->dnsimple-client request)
+ result (dnsimple/update-domain-record (->dnsimple-client request)
diff --git src/obwald/client/dnsimple.clj src/obwald/client/dnsimple.clj
index a502e02..407b797 100644
--- src/obwald/client/dnsimple.clj
+++ src/obwald/client/dnsimple.clj
@@ -267,6 +267,7 @@
(select-keys [:name :content :ttl :prio])
(record->v2))})
(fn [response]
+ (debug (-> response :body :data))
(if (successful? response)
(ns play-with-manifold
(:gen-class)
(:require
[aleph.http :as http]
[manifold.stream :as s]
[manifold.bus :as b]
[manifold.deferred :as d]
[byte-streams :as bs]
[cheshire.core :as json])
(:import io.netty.handler.codec.http.HttpContentDecompressor
@bcachet
bcachet / export-cassandra-keyspaces.sh
Last active April 24, 2018 08:33
Cassandra: Export all tables from keyspaces on server
#!/bin/bash
function join
{
local IFS="$1"; shift; echo "$*";
}
function cqlsh_on
{
server=$1
@bcachet
bcachet / Exoscale_S3.cs
Created April 12, 2018 12:46
Configuration of AWS S3 for .Net with Exoscale SOS
var config = new Amazon.S3.AmazonS3Config()
{
ServiceURL = "https://sos-ch-dk-2.exo.io",
};
var client = new Amazon.S3.AmazonS3Client(apikey, secretKey, config);
@bcachet
bcachet / README.md
Last active March 2, 2018 16:54
Upload file to sos-ch-dk-2.exo.io with aws PHP SDK and curl

Usage

It is important that file field is in last position (fields after file are omitted)

curl `./post_upload.php` -F file=@some-file-to-upload.txt
@bcachet
bcachet / Dockerfile
Last active February 27, 2018 12:11
Elasticsearch 2.4.6
FROM elasticsearch:2.4.6
RUN bin/plugin install cloud-aws
@bcachet
bcachet / PKGBUILD
Last active December 18, 2017 13:16
libzookeeper PKGBUILD patch
# Maintainer: <aaron.l.france@gmail.com>
pkgname=libzookeeper
pkgver=3.4.7
pkgrel=1
pkgdesc="libzookeeper"
arch=('i686' 'x86_64')
url="https://github.com/apache/zookeeper"
license=('Apache')
makedepends=(apache-ant autoconf cppunit)
checkdepends=()
@bcachet
bcachet / profile.ps1
Last active August 29, 2017 15:01
PowerShell Profile
$modules = @('posh-git', 'Jump.Location', 'PathUtils')
$notInstalledModules = New-Object System.Collections.ArrayList
$modules | ForEach-Object {
If(-Not (Test-Path -Path (Join-Path $PSScriptRoot ".\Modules\$_")))
{
$notInstalledModules.Add($_)
}
}