Skip to content

Instantly share code, notes, and snippets.

Avatar

Nicholas Dille nicholasdille

View GitHub Profile
View Handyumzug.md

Handyumzug

Diese Beschreibung wurde nur für zwei Samsung-Handys getestet.

Wichtig: Nichts installieren oder konfigurieren ohne Aufforderung. Die SIM-Karte und die SD-Karte verbleiben im alten Handy, bis der passende Schritt weiter unten erreicht ist.

Annahme: Fotos wurden direkt auf der SD-Karte gespeichert. Fotos im Handyspeicher werden aber übernommen.

Annahme: Kontakte befinden sich nicht im Handyspeicher. Vermutlich funktioniert die Übernahme, wurde aber nicht getestet.

@nicholasdille
nicholasdille / ansible
Last active Jun 26, 2019
Containerized tools
View ansible
alias ansible-playbook="docker container run -it --rm --mount type=bind,source=$(pwd),target=/$(basename $(pwd)) --workdir /$(basename $(pwd)) nicholasdille/ansible"
alias ansible-vault="docker container run -it --rm --mount type=bind,source=$(pwd),target=/$(basename $(pwd)) --workdir /$(basename $(pwd)) --entrypoint ansible-vault nicholasdille/ansible"
alias ansible-galaxy="docker container run -it --rm --mount type=bind,source=$(pwd),target=/$(basename $(pwd)) --workdir /$(basename $(pwd)) --entrypoint ansible-galaxy nicholasdille/ansible"
@nicholasdille
nicholasdille / cloudflare.sh
Created Jun 25, 2019
CloudFlare using bash
View cloudflare.sh
get_zone_id() {
local email=$1
local token=$2
local domain=$3
curl -sLfH "X-Auth-Email: ${email}" -H "X-Auth-Key: ${token}" https://api.cloudflare.com/client/v4/zones | jq --raw-output ".result[] | select(.name == \"${domain}\") | .id"
}
get_zone_records() {
local email=$1
@nicholasdille
nicholasdille / docker-distribution
Last active May 13, 2019
Docker CLI Plugin to interact with a registry
View docker-distribution
#!/usr/bin/env bash
docker_cli_plugin_metadata() {
local vendor="nicholasdille"
local version="v0.0.1"
local url="https://dille.name"
local description="Interact with a Docker registry"
cat <<-EOF
{"SchemaVersion":"0.1.0","Vendor":"${vendor}","Version":"${version}","ShortDescription":"${description}","URL":"${url}"}
EOF
View gist:6db050ee2eb9aea656b991136f993b82
Verifying my Blockstack ID is secured with the address 1AYDdmU7yydyKtNe6MuhmPEXmvjJaEBeAa https://explorer.blockstack.org/address/1AYDdmU7yydyKtNe6MuhmPEXmvjJaEBeAa
View blockstack
Verifying my Blockstack ID is secured with the address 1AYDdmU7yydyKtNe6MuhmPEXmvjJaEBeAa https://explorer.blockstack.org/address/1AYDdmU7yydyKtNe6MuhmPEXmvjJaEBeAa
View Reconnect.ps1
$SessionOption = New-PSSessionOption -OutputBufferingMode Drop -IdleTimeout (60*60*2*1000)
Invoke-Command -ComputerName Server2 -SessionOption $SessionOption -InDisconnectedSession -Name MySession
Get-Session
$MySession = Get-Session -ComputerName Server2
Enter-PSSession -Session $MySession
@nicholasdille
nicholasdille / Test-ShouldProcess.ps1
Created Jul 17, 2017
Skeleton for ShouldProcess in PowerShell functions
View Test-ShouldProcess.ps1
Function New-Something {}
Function Test-ShouldProcess {
[CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')]
Param(
[Parameter()]
[switch]
$Force
)
@nicholasdille
nicholasdille / onename.txt
Created Feb 9, 2017
Verifying that "nicholasdille.id" is my Blockstack ID. https://onename.com/nicholasdille
View onename.txt
Verifying that "nicholasdille.id" is my Blockstack ID. https://onename.com/nicholasdille
View keybase.md

Keybase proof

I hereby claim:

  • I am nicholasdille on github.
  • I am nicholasdille (https://keybase.io/nicholasdille) on keybase.
  • I have a public key whose fingerprint is 6FA7 3A4F 40D9 5BFF 3338 8072 686E 1548 50D2 50F8

To claim this, I am signing this object: