Skip to content

Instantly share code, notes, and snippets.

@simos
simos / snapcraft.yaml
Last active February 6, 2017 15:10
how2 snapcraft.yaml
name: how2 # you probably want to 'snapcraft register <name>'
version: '20170206' # just for humans, typically '1.2+git' or '1.3.2'
summary: how2, stackoverflow from the terminal
description: |
how2 finds the simplest way to do something in a unix shell.
It is like the man command, but you can query it in natural language.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
@simos
simos / snapcraft.yaml
Last active February 9, 2017 19:04
snapcraft.yaml for httpstat
name: httpstat # you probably want to 'snapcraft register <name>'
version: '1.1.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: Curl statistics made simple # 79 char long summary
description: |
httpstat is a utility that analyses show fast a website is
when you try to connect to it.
This utility is particularly useful to Web administrators.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
@simos
simos / snapcraft.yaml
Created February 20, 2017 17:04
Snapcraft.yaml for howdoi
name: howdoi # you probably want to 'snapcraft register <name>'
version: '20170207' # just for humans, typically '1.2+git' or '1.3.2'
summary: instant coding answers via the command line # 79 char long summary
description: |
Are you a hack programmer? Do you find yourself constantly Googling
for how to do basic programing tasks?
Suppose you want to know how to format a date in bash. Why open your browser
and read through blogs (risking major distraction) when you can simply
stay in the console and ask howdoi.
@simos
simos / kodi-headless-ubuntu1604.sh
Created March 14, 2018 19:02
Script to compile Kodi with --headless option on Ubuntu 16.04 (in a LXD container)
#!/bin/sh
# Converted from https://github.com/linuxserver/docker-kodi-headless/blob/master/Dockerfile
#FROM lsiobase/xenial
#
## set version label
#ARG BUILD_DATE
#ARG VERSION
#LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
@simos
simos / build-esp32-toolchain
Last active October 9, 2018 17:31
Script to build the ESP32 toolchain on Ubuntu
#!/bin/bash
# Adapted from https://raw.githubusercontent.com/lpodkalicki/blog/master/esp32/tools/build_esp32_toolchain.sh
# This gist came from: https://gist.github.com/simos/fdc2633bab0a5b17945c26b611c4fcdc
# Configuration
BASE_DIR=~/esp
TOOLCHAIN_BASE_URL=https://dl.espressif.com/dl/
TOOLCHAIN_FILENAME=xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
@simos
simos / boot1.log
Created October 1, 2018 22:59
Packet.net first boot
Booting from PXE Device 1: NIC in Slot 2 Port 1 Partition 1
>>Start PXE over IPv4.
Station IP address is 147.75.83.19
Server IP address is 147.75.204.3
NBP filename is ipxe.efi
NBP filesize is 988192 Bytes
Downloading NBP file...
@simos
simos / kernel-packet-net.log
Created October 1, 2018 23:09
Ubuntu boot messages on AMD EPYC baremetal server at packet.net
Booting in blind mode
[ 0.000000] Linux version 4.15.0-20-generic (buildd@lgw01-amd64-039) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 (Ubuntu 4.15.0-20.21-generic 4.15.17)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz root=UUID=f46ede68-dc97-4fc6-9c60-37f4387850b5 ro serial console=tty0 console=ttyS1,115200n8 biosdevname=0 net.ifnames=1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
@simos
simos / GitHub-Forking.md
Created October 3, 2018 11:19 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@simos
simos / part1.md
Created December 18, 2018 12:48 — forked from vlandham/part1.md
Feature Branches and Pull Requests : Walkthrough

Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.

Questions, comments, and suggestions for improvements welcome!

Start with the latest on master

When starting a new feature, I make sure to start with the latest and greatest codebase:

git checkout master
@simos
simos / snapcraft.yaml
Last active December 20, 2018 22:31
GNOME Boxes Snapcraft configuration (WIP)
name: gnome-boxes
base: core18 # the base snap is the execution environment for this snap
version: '3.33.1'
summary: A simple GNOME 3 application to access remote or virtual systems.
description: |
GNOME Boxes is an application
of the GNOME Desktop Environment,
used to access remote or virtual systems.
Boxes uses the QEMU, KVM, and
libvirt virtualisation technologies.