Skip to content

Instantly share code, notes, and snippets.

View relaxdiego's full-sized avatar
🤓

Mark Maglana relaxdiego

🤓
  • The Linux Foundation
  • Earth, Solar System, Milky Way, Laniakea
View GitHub Profile
[2020-02-18T17:32:13.786] [info] [sshfs-mounts] mounting /Users/mark/src => src in dev
[2020-02-18T17:32:13.786] [info] [sshfs-mounts] process program '/Library/Application Support/com.canonical.multipass/bin/sshfs_server'
[2020-02-18T17:32:13.786] [info] [sshfs-mounts] process arguments '192.168.64.2, 22, ubuntu, /Users/mark/src, src, 501:-1,, 20:-1,'
[2020-02-18T18:38:59.941] [info] [dev] hyperkit: [INFO] Allocator: 149631 used; 0 junk; 0 erased; 255 available; 0 copies; 0 roots; 0 Copying; 0 Copied; 0 Flushed; 0 Referenced; max_cluster = 150458
[2020-02-18T18:38:59.941] [info] [dev] hyperkit: [INFO] Allocator: file contains cluster 0 .. 150713 will enlarge file to 0 .. 151225
[2020-02-18T18:38:59.941] [info] [dev] hyperkit: [INFO] resize: adding available clusters (Node ((x 150714) (y 151225) (l Empty) (r Empty) (h 1) (cardinal 512)))
[2020-02-19T00:32:40.767] [info] [dev] hyperkit: [INFO] Allocator: 150143 used; 0 junk; 0 erased; 255 available; 0 copies; 0 roots; 0 Copying; 0 Copied; 0 Flushed; 0 Referenc
[2020-02-04T01:47:28.257] [info] [rpc] gRPC listening on unix:/var/run/multipass_socket, SSL:on
[2020-02-04T01:47:28.267] [warning] [url downloader] Cannot retrieve last modified date for http://cloud-images.ubuntu.com/releases/streams/v1/index.json: Host cloud-images.ubuntu.com not found. Using cached data instead.
[2020-02-04T01:47:28.273] [warning] [url downloader] Cannot retrieve last modified date for http://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:download.json: Host cloud-images.ubuntu.com not found. Using cached data instead.
[2020-02-04T01:47:28.587] [info] [update] Failed to fetch update info: failed to download from 'https://multipass.run/static/latest-release.json': Host multipass.run not found
[2020-02-04T01:47:28.691] [warning] [url downloader] Cannot retrieve last modified date for http://cloud-images.ubuntu.com/daily/streams/v1/index.json: Host cloud-images.ubuntu.com not found. Using cached data instead.
[2020-02-04T01:47:28.692] [warning] [url downloader] Cannot
#
# setup ssh-agent
#
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
mmaglana@localhost:~$ sudo -i
root@localhost:~# cd /var/snap/domotzpro-agent-publicstore/common/log
root@localhost:/var/snap/domotzpro-agent-publicstore/common/log# ls -al
total 8
drwxr-xr-x 2 root root 4096 Dec 5 02:59 .
drwxr-xr-x 5 root root 4096 Dec 5 02:59 ..
root@localhost:/var/snap/domotzpro-agent-publicstore/common/log# systemctl | grep domotz
mmaglana@localhost:~$ sudo cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu Core 18"
mmaglana@localhost:~$ sudo cat /etc/os-release
NAME="Ubuntu Core"
VERSION="18"
ID=ubuntu-core
Nov 29 08:54:22 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Nov 29 08:54:22 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Nov 29 08:54:24 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: Skip the Updater simulation, status=(ubuntu_core,undefined)
Nov 29 08:54:24 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: MAIN - Start agent [2.8.1-b001] at Fri Nov 29 2019 08:54:24 GMT+0000 (GMT)
Nov 29 08:54:24 raspberrypi domotzpro-agent-publicstore.domotzpro-agent-publicstore[1530]: MAIN - +------------------------------------------------+
Nov 29 08:54:24 raspberrypi domotzpro-agent-publ
#
# Installation:
# mkdir -p ~/.byobu
# wget -O ~/.byobu/keybindings.tmux byobu.relaxdiego.com
# tmux source-file ~/.byobu/keybindings.tmux
#
# Rebind Ctrl-a as the prefix
unbind-key -n C-a
set -g prefix ^A
#!/bin/bash
set -e
arch=${1:-amd64}
repo=${2:-"http://ftp.us.debian.org/debian/dists/stable/main"}
url="${repo}/Contents-${arch}.gz"
gz_path="$HOME/.deb_content_files/$(sed -r 's|https?://||g' <<< $url)"
txt_path=${gz_path/%.gz/}
kind: List
apiVersion: v1
items:
- kind: Namespace
apiVersion: v1
metadata:
name: guestbook
- kind: Deployment
@relaxdiego
relaxdiego / upload-github-release-asset.sh
Created July 4, 2017 18:22 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
# * repo