Skip to content

Instantly share code, notes, and snippets.

Avatar
💯

johackim johackim

💯
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Ethibox - Configuration en cours...</title>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-800 text-white min-h-screen flex justify-center items-center">
<main>
@johackim
johackim / remove.sh
Last active Jun 13, 2020
Remove traefik certificate on consul
View remove.sh
#!/bin/sh
DOMAIN=$1
if [[ -z "$1" ]]; then
echo "usage: remove.sh [domain]"
exit 1
fi
consul kv get traefik/acme/account/object | gzip -dc > acme.json
View chrome
#!/bin/bash
/opt/google/chrome/chrome.orig --no-sandbox --ignore-certificate-errors $@
View traefik-ssl.yml
version: "3.7"
services:
consul:
image: consul:1.7.1
command: agent -server -bootstrap-expect=1
environment:
- CONSUL_BIND_INTERFACE=eth0
- CONSUL_CLIENT_INTERFACE=eth0
volumes:
View keybase.md

Keybase proof

I hereby claim:

  • I am johackim on github.
  • I am johackim (https://keybase.io/johackim) on keybase.
  • I have a public key ASDSkU2rkJKtRtocyzKoW0IX7pL8R4cMG1znxim0Z7dWhQo

To claim this, I am signing this object:

View nginx-onlyoffice.conf
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
View traefik.yml
version: '3.7'
services:
traefik:
image: traefik:latest
command:
- --entrypoints.http.address=:80
- --entrypoints.https.address=:443
- --providers.docker
- --certificatesresolvers.mytlschallenge.acme.tlschallenge=true
View nextcloud.yml
version: '3.7'
services:
nextcloud:
image: nextcloud:${VERSION:-17.0.1}
volumes:
- nextcloud:/var/www/html
labels:
- traefik.http.routers.web.rule=Host(`${DOMAIN:-nextcloud.localhost}`)
- traefik.http.routers.web.tls=${HTTPS:-false}
@johackim
johackim / auto-boost.json
Last active Mar 27, 2019
Auto Boost Mastodon
View auto-boost.json
{
"schema_version": 1,
"name": "Auto Boost",
"description": "Auto Boost Mastodon Accounts",
"source_url": false,
"guid": "a2364ae9eccffe6d6af00f40f1d735eb",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2019-03-25T15:51:31Z",
View reactform.js
'use strict';var _createClass=function(){function a(b,c){for(var f,d=0;d<c.length;d++)f=c[d],f.enumerable=f.enumerable||!1,f.configurable=!0,'value'in f&&(f.writable=!0),Object.defineProperty(b,f.key,f)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function _inherits(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var Form=function(a){function b(){var n,h,j,k;_classCallCheck(this,b);for(var l=arguments.length,g=Array(l),m=0;m<l;m++)g[m]=argumen
You can’t perform that action at this time.