Skip to content

Instantly share code, notes, and snippets.

View puccaso's full-sized avatar

Puc puccaso

  • [txq.io]
  • Ireland
View GitHub Profile
@puccaso
puccaso / DWM-ON-OS-X.md
Created August 29, 2022 19:15 — forked from angel333/DWM-ON-OS-X.md
Updated for .xinitrc.d and $USERWM, simplified

Installing and configuring dwm on OS X (tested on Mountain Lion, Mavericks)

  1. Install XQuartz.

  2. Install dwm using Homebrew (or whatever):

    brew install dwm
    
  3. Create a xinitrc.d script for dwm:

@puccaso
puccaso / install_docker_in_ubuntu_21-10.sh
Created February 25, 2022 12:50 — forked from pablodz/install_docker_in_ubuntu_21-10.sh
Install Docker in Ubuntu 21.10, Install Dockercompose on Ubuntu 21.10
# [🟨OPTIONAL] Uninstall old docker versions
sudo apt-get remove docker docker-engine docker.io containerd runc
# Refresh latest version
sudo apt-get update
# Install pre-req
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
@puccaso
puccaso / Base64_CheatSheet.md
Created November 9, 2021 07:32 — forked from Neo23x0/Base64_CheatSheet.md
Learning Aid - Top Base64 Encodings Table

Learning Aid - Top Base64 Encodings Table

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16)
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" <. Often used by Emotet (UTF-16)
@puccaso
puccaso / deployment-tool-ansible-puppet-chef-salt.md
Created September 22, 2021 16:15 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@puccaso
puccaso / Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Created September 15, 2021 10:05 — forked from G-UK/Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Building the Raspberry Pi 4 Arm64 Linux Kernel

The Raspberry Pi foundation have now released a beta version of an official 64-bit Kernel which can be installed using the rpi-update script. The rpi-update script can be found at https://github.com/Hexxeh/rpi-update/blob/master/rpi-update or through the Raspbian repositories

Introduction

The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 4B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.

Notes:

  • Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
    • (N: drive on Windows and /mnt/NAS on Linux in this example).
  • For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.
  • Greater than 3GB RAM only currently available on Kernel 4.19
@puccaso
puccaso / distcc-ccache-setup.sh
Created September 14, 2021 22:51 — forked from codatory/distcc-ccache-setup.sh
Ubuntu distcc & ccache setup script
#!/bin/bash
apt-get install -y distcc distcc-pump ccache
sed -ie 's/STARTDISTCC="false"/STARTDISTCC="true"/' /etc/default/distcc
sed -ie 's/ALLOWEDNETS="127.0.0.1"/ALLOWEDNETS="192.168.0.0\/16 172.16.0.0\/12 10.0.0.0\/8"/' /etc/default/distcc
sed -ie 's/LISTENER="127.0.0.1"/LISTENER="0.0.0.0"/' /etc/default/distcc
sed -ie "s/JOBS=\"\"/JOBS=\"`grep processor /proc/cpuinfo | wc -l`\"/" /etc/default/distcc
sed -ie 's/ZEROCONF="false"/ZEROCONF="true"/' /etc/default/distcc
@puccaso
puccaso / ddclient.conf
Created February 15, 2021 00:18 — forked from iamhunter/ddclient.conf
DDClient configuration for CloudFlare DDNS
##
## Cloudflare (cloudflare.com)
##
daemon=1800
use=web, web=ipinfo.io/ip, web-skip='IP Address'
ssl=yes
protocol=cloudflare, \
server=www.cloudflare.com, \
login=*cloudflare-email* \
password=*cloudflare-global-api-key* \
@puccaso
puccaso / ddclient.conf
Created February 15, 2021 00:18 — forked from klittlepage/ddclient.conf
A ddclient config file for use with Cloudflare. See https://gist.github.com/klittlepage/7243505 for a Cloudflare patch to the 3.8.1 version of ddclient.
daemon=1800 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
cache=/tmp/ddclient.cache
@puccaso
puccaso / ddclient.conf
Created February 15, 2021 00:18 — forked from klittlepage/ddclient.conf
A ddclient config file for use with Cloudflare. See https://gist.github.com/klittlepage/7243505 for a Cloudflare patch to the 3.8.1 version of ddclient.
daemon=1800 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
cache=/tmp/ddclient.cache
@puccaso
puccaso / remove_apt_cache
Created January 25, 2021 21:14 — forked from marvell/remove_apt_cache
Remove APT cache (for Dockerfile)
apt-get clean autoclean
apt-get autoremove --yes
rm -rf /var/lib/{apt,dpkg,cache,log}/