Skip to content

Instantly share code, notes, and snippets.

View hervehobbes's full-sized avatar

Hervé hervehobbes

View GitHub Profile
//
// ContentView.swift
// AnimationTimingCurve
//
// Created by Chris Eidhof on 25.09.19.
// Copyright © 2019 Chris Eidhof. All rights reserved.
//
import SwiftUI
@hervehobbes
hervehobbes / FTPUpload.swift
Created April 19, 2020 10:20 — forked from Nirma/FTPUpload.swift
Upload a file via FTP on iOS or macOS
import Foundation
import CFNetwork
public class FTPUpload {
fileprivate let ftpBaseUrl: String
fileprivate let directoryPath: String
fileprivate let username: String
fileprivate let password: String
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
[ subject ]
@echo off
set /p domain="Enter Domain: "
set OPENSSL_CONF=../conf/openssl.cnf
if not exist .\%domain% mkdir .\%domain%
..\bin\openssl req -config cert.conf -new -sha256 -newkey rsa:2048 -nodes -keyout %domain%\server.key -x509 -days 365 -out %domain%\server.crt
echo.
echo -----
@hervehobbes
hervehobbes / vaccination-stats.js
Created December 31, 2020 07:22 — forked from marco79cgn/vaccination-stats.js
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
const cacheMinutes = 60 // 60 min
const today = new Date();
let result
let widget = new ListWidget()
widget.setPadding(8, 8, 8, 8)
widget.url = "https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Impfquoten-Tab.html"
await getNumbers()
await createWidget()
Script.setWidget(widget)
<link rel="shortcut icon" width=32px>
<canvas style="display: none" id="loader" width="16" height="16"></canvas>
<script>
class Loader {
constructor(link, canvas) {
this.link = link;
this.canvas = canvas;
this.context = canvas.getContext('2d');
this.context.lineWidth = 2;
@hervehobbes
hervehobbes / .github-workflows-main.yaml
Created September 13, 2021 05:51 — forked from mathieu-coingt/.github-workflows-main.yaml
Github Actions Workflow for Symfony project
name: CI/CD production
on:
push:
branches: [ production ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Mandatory : fetch the current repository
@hervehobbes
hervehobbes / api.md
Created November 13, 2021 10:43 — forked from alexandrevilain/api.md
Livebox API
@hervehobbes
hervehobbes / learn.md
Created November 13, 2021 10:47
Ressources pour l'apprentissage de Docker et de Kubernetes