Skip to content

Instantly share code, notes, and snippets.

View Tedezed's full-sized avatar
🍀

JM Torres Tedezed

🍀
View GitHub Profile
@milesbxf
milesbxf / monzo-alertmanager-config.yaml
Last active December 4, 2025 15:03
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@Guidoom
Guidoom / gist:d5db0a76ce669b139271a528a8a2a27f
Last active October 25, 2025 19:14
Sample odoo.conf file
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
# BootKube Deployment (FINAL):
## NEW INSTALLATIONS:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y docker.io vim ethtool traceroute git build-essential lldpd
## Cleanup
sudo systemctl stop kubelet.service
sudo docker rm bootkube-render
sudo docker stop $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop)
sudo docker rm -f $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop)
sudo docker rm -f $(sudo docker ps -a | grep bootkube| cut -c1-20 | xargs sudo docker stop)
@keithmorris
keithmorris / drive-format-ubuntu.md
Last active September 22, 2025 03:28
Partition, format, and mount a drive on Ubuntu
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active October 22, 2025 09:55
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@jirutka
jirutka / -README.md
Last active August 12, 2025 09:57
How to use terminal on Windows and don’t go crazy…

How to use terminal on Windows without going crazy…

Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.

Install stuff

  1. Download and install Git for Windows* with:
    • [✘] Use Git from the Windows Command Prompt
  • [✘] Checkout as-is, commit Unix-style line endings
@kozmonaut
kozmonaut / linux-packages
Created April 14, 2014 11:44
Backup and restore installed packages inside Linux Debian
# Backup your packages list
# Get a packages list
dpkg --get-selections > ~/Package.list
# Copy list of repositories
sudo cp /etc/apt/sources.list ~/sources.list
# Export repo keys
sudo apt-key exportall > ~/Repo.keys
@corny
corny / install-cacert.sh
Created March 25, 2014 13:54
Install CA Cert certificates on Debian/Ubuntu
#!/bin/sh -e
mkdir -p /usr/share/ca-certificates/cacert.org/
curl http://www.cacert.org/certs/root.crt > /usr/share/ca-certificates/cacert.org/cacert.org.crt
curl http://www.cacert.org/certs/class3.crt >> /usr/share/ca-certificates/cacert.org/cacert.org.crt
sed -i 's/^\!\(cacert\)/\1/' /etc/ca-certificates.conf
update-ca-certificates
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active November 30, 2025 00:48
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@tech2077
tech2077 / pylcd.py
Last active October 6, 2015 08:07
PCA8574 Controlled HD44780 LCD library
'''
Copyright (C) 2012 Matthew Skolaut
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial