Skip to content

Instantly share code, notes, and snippets.

View buddyp1952's full-sized avatar
๐Ÿ™‚
Working from home

Buddy Palumbo buddyp1952

๐Ÿ™‚
Working from home
View GitHub Profile
@diyism
diyism / BargeOS on Digitalocean
Last active March 26, 2021 14:38
BargeOS on Digitalocean
1.download latest release barge.img file (13MB) from: https://github.com/bargees/barge-os/releases
2.login and goto https://cloud.digitalocean.com/images/custom_images
3.click "Upload Image" and select barge.img to upload
4.Create Droplets/Custom images/barge.img
5.ssh bargee@<vps ip> (password is also bargee)
6.sudo fdisk -l, found the "EndLBA" is <26635>
7.sudo fdisk /dev/vda,
Command (m for help): n,
Partition type: p,
Partition number (1-4): 2,
@avishayp
avishayp / Dockerfile
Created September 25, 2018 19:02
Add non-root user for alpine linux
# non root user example for alpine
#
# usage:
# $ docker build --build-arg "USER=someuser" --tag test .
# $ docker run --rm test
FROM alpine
ARG USER=default
ENV HOME /home/$USER
@islander
islander / fsck_qcow2.md
Last active June 8, 2024 07:42
Recover a qcow2 image using fsck

Recover a qcow2 image using fsck

Load network block device module:

# modprobe nbd max_part=8

Poweroff machine:

# virsh destroy virtual-machine

@ribasco
ribasco / how-to-install-java-on-raspbian.md
Last active March 27, 2021 18:37
How to install the latest java version in Raspbian (Stretch)

Introduction

The default version of java provided in the latest raspbian images are outdated, so we are going to install from the ppa:webupd8team/java repository instead. Please note that add-apt-repository ppa:webupd8team/java will not work, so we will need to add the repository manually.

Installation

  1. Create the gpg key file and paste the following lines of text below
nano key.txt
@DavidGoodwin
DavidGoodwin / tplink.sh
Created January 18, 2018 16:11
control a tplink HS100/HS110 smart plug from bash/the cli
@shuhaowu
shuhaowu / debug-dnsmasq.sh
Created May 16, 2016 18:05
Debug dnsmasq by logging its queries
#!/bin/bash
echo 'log-queries' > /etc/dnsmasq.conf
service network-manager restart
tail -f /var/log/syslog
Moved to: https://github.com/stevejenkins/Google-Fiber-EdgeRouter-Configs
@fgrep
fgrep / wheezy-mips-toolchain
Last active March 31, 2018 01:58
Debian wheezy mips toolchain
# Debian 7 MIPS Toolchain
# http://cdimage.debian.org/cdimage/archive/7.8.0/amd64/iso-cd/debian-7.8.0-amd64-CD-1.iso
# Basic install + SSH Server + Standard system utilities
# Update
mkdir /usr/src/mips-toolchain && cd /usr/src/mips-toolchain
apt-get update
apt-get upgrade
# Binutils
@corny
corny / dynv6.sh
Last active October 5, 2025 11:47
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi