This file contains hidden or 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
package ui | |
import ( | |
"fyne.io/fyne/v2" | |
"fyne.io/fyne/v2/container" | |
log "github.com/sirupsen/logrus" | |
) | |
type autoscollLayout struct { | |
lastHeight float32 |
This file contains hidden or 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
package main | |
import ( | |
"image/color" | |
"strings" | |
"time" | |
"fyne.io/fyne/v2" | |
"fyne.io/fyne/v2/app" | |
"fyne.io/fyne/v2/canvas" |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"flag" | |
"bufio" | |
"os" | |
"encoding/hex" | |
log "github.com/sirupsen/logrus" |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'net/ssh' | |
bridges = ["xenbr3", "xenbr4", "xenbr5"] | |
bridge_interfaces = { | |
"xenbr3" => "eth3", | |
"xenbr4" => "eth4", | |
"xenbr5" => "eth5" | |
} |
This file contains hidden or 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 'json' | |
require 'shellwords' | |
present = [] | |
names = {} | |
["hayden", "xobackups"].each do |dir| | |
Dir["#{dir}/**/*"].each do |path| | |
next if !File.file?(path) | |
newname = `echo "#{path}" | sha256sum | cut -d ' ' -f 1`.strip |
This file contains hidden or 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
[Unit] | |
Description=Elasticsearch | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
ExecStart=/usr/bin/docker run -v "/elasticsearch":/usr/share/elasticsearch/data -p=9200:9200 -p=9300:9300 --user="111:117" elasticsearch | |
ExecStop=/usr/bin/docker stop -t 2 elasticsearch |
This file contains hidden or 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
version: '2' | |
services: | |
xo: | |
build: . | |
ports: | |
- "80:80" | |
redis: | |
image: "redis@sha256:b50f15d427aea5b579f9bf972ab82ff8c1c47bffc0481b225c6a714095a9ec34" |
This file contains hidden or 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
FROM node:6-wheezy@sha256:5eb189fa5041cb692146d3212593ef965e8adf58f48a2bfc738fa30bb7f5045f | |
RUN apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install build-essential libpng-dev git python-minimal -y | |
RUN git clone -b stable http://github.com/vatesfr/xo-server /opt/xo-server && \ | |
git clone -b stable http://github.com/vatesfr/xo-web /opt/xo-web | |
RUN cd /opt/xo-server && npm install && npm run build && \ |
This file contains hidden or 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os/exec" | |
"regexp" | |
"strings" | |
) |
This file contains hidden or 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
-----BEGIN PGP MESSAGE----- | |
owF1UmtMFUcUBnxRBLWNQRG0sBepIo+dndkXjwoUryaEgAm1gWpgdnf23uXCvbgX | |
qJRHScValRZKq8X6aAtFHqkBFFNFrK2mKgJGJYC28QeNkVBpUoS02tDYXUIT2qTz | |
YzJzzne+c75zTq3fAg9vT8vZz6asTckpnn3jkseOKc+kUkpyKSVUTCkl52nEWWi+ | |
nDifUDGUg5RI2E2iNFew06WQqFx38BwmgiomultzOQ0UHcVHiVR5hAk3g1XNaSN6 | |
ga6ZXBQWFCLyNFKgqtKqKImCKPOKpDBQgiJWIeIwixCSDEq7y134r6zULGe2phhW | |
BiZBMdFq4BNNfJLhK5p18EhAtIoQBgBxNC3wHMAMlEUIJRGqQDSBbqLPSbI7CrDu | |
ILpZbz7RHXkkW3e5ZkXLhZoJAYg1ODgAaaMi7LYbQZAjqqxgGiBGIVgWkcoiFvMq | |
z/KsLMsASSyWFE4EIpB5SABRkCBCnqFpFQBG4jgaKwygFSLRgkR4RVYBJ0u8pLAK |
NewerOlder