Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-6-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 3.5" DT01ACA... Desktop HDD
Device Model: TOSHIBA DT01ACA300
Serial Number: X3544DGKS
LU WWN Device Id: 5 000039 ff4cff983
Firmware Version: MX6OABB0
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
public class Deck {
public Deck()
{
// do something
// note the tab spacing
}
public static void main(String[] args)
{
@ironicbadger
ironicbadger / zm.cfg
Created April 4, 2018 19:08
zm configuration
# ZM supports configuration via configuration files.
# Configuration files are used if the '--cfg-file' option is given on the
# command line. All additional command line options are ignored in this case.
# Options are grouped into sections - each option is a 'key=value(s)' pair.
# Lists of values are separated by ',' (spaces are not allowed).
# Comments start with '#'.
# ZM supports the setup of multiple pools.
# Pools are ordered by their priority. Higher priority pools are configured
# above lower priority pools in this file. ZM connects to the highest priority
@ironicbadger
ironicbadger / dnsmasq.conf
Last active February 1, 2021 09:57
example dnsmasq config
$ cat /etc/dnsmasq.conf
no-resolv
server=/eu-west-1.compute.internal/10.0.24.2
server=/example.local/10.160.16.10
server=10.0.24.2
server=/example.local/10.10.16.10
server=/140.10.in-addr.arpa/10.0.24.2
server=/82.10.in-addr.arpa/10.0.24.2
address=/.apps-build.euw1.aws.example.local/10.0.25.100
address=/master-ocp-build.euw1.aws.example.local/10.0.25.100
@ironicbadger
ironicbadger / gist:d0e633f1bb5a0fa24166bcff951aaec7
Created January 1, 2018 18:53
influx-gpu-nvidia-scrape.sh
#!/bin/bash
# wrote by Ox HaK
# https://pbs.twimg.com/media/DPplpHnW4AIFg8j.jpg:large
# ccminer need parameter --api-bind=127.0.0.1:4068 --api-allow=0/0
# https://wiki.archlinux.org/index.php/Grafana
# https://wiki.archlinux.org/index.php/InfluxDB
# https://docs.influxdata.com/influxdb/v1.3/guides/writing_data/
let x=0
#while [ "true" ]
@ironicbadger
ironicbadger / bootlace
Last active January 20, 2018 05:27
nvidia gpu check mining linux
# https://github.com/IronicBadger/bootlace
@ironicbadger
ironicbadger / nvidia.sh
Last active February 5, 2022 13:42
nvidia linux overclocking for crypto mining
#!/bin/bash
#nvidia-xconfig --allow-empty-initial-configuration --enable-all-gpus --cool-bits=28 --separate-x-screens
nvidia-smi -pm ENABLED
export GPU_FORCE_64BIT_PTR=0
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
@ironicbadger
ironicbadger / etc-telegraf-telegraf.conf
Last active March 12, 2021 00:09
grafana dashboard
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
@ironicbadger
ironicbadger / bash_aliases
Last active October 22, 2023 13:04
Lets Encrypt Reverse Proxy Files
alias dcp='docker-compose -f /opt/docker-compose.yml '
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
alias df='df -h -x aufs -x tmpfs -x udev'
alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default'
#!/usr/bin/env ruby
# USAGE
# See : https://github.com/thuehlinger/daemons
#
# ruby nest_poller_control.rb run (foreground)
# ruby nest_poller_control.rb start
# ruby nest_poller_control.rb stop
# ruby nest_poller_control.rb status