Skip to content

Instantly share code, notes, and snippets.

View lazypower's full-sized avatar
💭
Bring back independent blogs, rss feeds, and the small web.

Charles "Chuck" Butler lazypower

💭
Bring back independent blogs, rss feeds, and the small web.
View GitHub Profile
#!/usr/bin/python3
#
# Copyright 2017 Canonical, Ltd. Authored by Marco Ceppi
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@kylemanna
kylemanna / arch-linux-install.md
Last active April 4, 2025 08:56 — forked from binaerbaum/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
@solidnerd
solidnerd / GitlabContainerRegistrySetup.md
Last active February 21, 2024 14:48
GitLab Container Registry Setup

Settting up a Container Registry with docker-gitlab

This should be used for new users to getting started with the container registry feature on docker-gitlab.

Requirements

@luxas
luxas / Dockerfile
Last active November 29, 2017 16:10
Build Kubernetes binaries for ARM on amd64
FROM golang:1.5.2
MAINTAINER Lucas Käldström <[email protected]>
# Enable cgo cross-compilation for armel
RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.list.d/crosstools.list \
&& curl -s http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - \
&& dpkg --add-architecture armel \
&& apt-get update \
&& apt-get install -y build-essential crossbuild-essential-armel rsync upx
@rachelmyers
rachelmyers / Chromebook_setup.md
Last active October 19, 2024 04:52
How I set up my Chromebooks' dev environment

Chromebook Setup Options

Option 1: Stay in Chrome OS

If you're writing bare-bones javascript for the browser, creating Chrome Apps and Extensions, or using remote coding apps like cloud9, Koding, or Nitrous, you may not need to install Ubuntu. Some tutorials can be done entirely within the browser. The tradeoff is that you won't have a full-featured command line, and you may hit a point where you can't install something that you need.

To start coding within Chrome OS, install Text or Caret as a text editor. (Text stores files in Google Docs and Caret stores the files locally on your machine, which may help you choose.) After that, you're good to go, since Chromebooks come with a browser installed.

Optio

@ake-persson
ake-persson / gist:ca29cca70f0b458aee4d
Last active January 28, 2022 17:43
Homebrew Formula for a Go app

Homebrew Formula for a Go app

These are quick notes from making my own Formula and Tap.

Add go build script to your Git repo

gobuild.sh

#!/bin/bash
@whitmo
whitmo / apt-update.sh
Last active August 29, 2015 14:21
conditional update
function conditional_apt_update(){
if expr $(date +%s) - $(stat -c %Y /var/lib/apt/periodic/update-success-stamp) > $0
then
echo HI
fi
}
conditional_apt_update 10
anonymous
anonymous / install.sh
Created May 12, 2015 14:30
#!/bin/bash
set -ex
echo "Installing consul server on $JUJU_UNIT_NAME"
apt-get install -qy unzip
TGT_DIR=/usr/local/bin
ARCH=linux_amd64
@Reve
Reve / Crucible Server Tutorial.md
Last active May 30, 2021 21:48
Crucible Server Tutorial

'''The EVEmu project is a developing EVE Online server suite and as yet does not support most features offered in the game.'''

'''EVEmu Crucible is compatible with EVE Crucible Client v1.6.5 build 360229.'''

= DISCLAIMER = EVEmu is an educational project. This means, our primary interest is to learn and teach us and our users more about C++ project development in a large scale. Our software is not intended for running public servers, and we do not support that. We are not responsible for what others do with the source code downloaded from this project. [[:New Users Guide|For users who are new]] to build servers and would like some background information on what they are doing for learning please go [[:New Users Guide|here]]'''.

There is a video guide [http://www.youtube.com/watch?feature=player_embedded&v=6-1WyPIbptw here]. Evemu did NOT make this guide and it is different to the instructions listed below.

@whitmo
whitmo / dir_into_dir.py
Last active August 29, 2015 14:13
dir_into_dir
def copy_into(directory, target_dir):
with directory.relpath():
for pth in path('./').walk():
tgt = target_dir.joinpath(*pth.splitpath())
if pth.isdir():
tgt.makedirs_p()
continue
if pth.islink():
link = pth.realpath().relpath()