This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2015 littleman.co | |
* | |
* 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: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
func main() { | |
interval := 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m += memory.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean | |
install: | |
sudo insmod memory.ko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFyjIfEBEADryFqbJGSjmPGLa6NRtcmLIYVdeFk9U2tJOV0Wq+cMLa7By64F | |
BFP0eEumynY7kdOc8gk/8osbC+owpz83hoyZI1zpUrjLQ8MzMoWJdL8lGVR+FyyV | |
iR4oY+HCES/VqjbGgZe2uHr1suysn2+IQjb20x3ukVQxmJtVtrmWy4fAxQ9EKDgI | |
mTRvfhvPKkH2jt3iudm8YMEk9foPsL53/H811mZccpd1/48gGX+DY7D+ePXJqmAB | |
mCVGhRqGKrOoSaTLHd9sAWYvI1QMs2Emt5BkUwgrfWS1np+xlmmrVYf476QF21rL | |
ypcynYNY0vKDDPFyp4XdOcmCDyPqlNCPUMAC/jr9bcZaqx8OmFHDfBFugj3CGUEq | |
IN9E6JofZbOc2tKdFh4j6laoA09f/4elDOyHHOoDhtxraxfqKOu8ZTfk6Yl8oZ/+ | |
nweLJCJI0zSXUXA9218cq/MgVePrE0Z2lu4PUXagu6zfX6jQAcTALtD8/k0I8Eu6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import dns.resolver | |
import netifaces | |
from subprocess import call | |
def get_interface_by_ip(ip): | |
"""Given an IP will return the interface associated. Doesn't support the same IP bound to multiple interfaces. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kubernetes import client, config | |
import sched | |
import time | |
import logging | |
import threading | |
# Debugging | |
from pprint import pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SCRIPT_PATH="$0" | |
SCRIPT_NAME="$(basename $0)" | |
function __get_list() { | |
SEARCH_TERM="$1" | |
LIST=$(ps -ef | grep "${SEARCH_TERM}" | awk '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1, | |
"title": "Alerts", | |
"tags": [], | |
"style": "dark", | |
"timezone": "browser", | |
"editable": true, | |
"sharedCrosshair": false, | |
"hideControls": false, | |
"time": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
data: | |
all-nodes-dashboard.json: |- | |
{ | |
"dashboard": { | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "prometheus", | |
"description": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: "Install tools to prevent the developer hurting themselves" | |
package: | |
name: "{{ item }}" | |
state: "latest" | |
with_items: | |
- "safe-rm" | |
- name: "Replace the normal rm command with safe-rm" | |
alternatives: |
NewerOlder