Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
@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 June 1, 2024 17:21
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
@ironicbadger
ironicbadger / vim-shortcuts.md
Created October 27, 2017 13:30 — forked from tuxfight3r/vim-shortcuts.md
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

###MOVEMENT###

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
"id": 1,
"links": [],
@ironicbadger
ironicbadger / example
Created September 16, 2017 00:53
/opt/appdata/letsencrypt/nginx/site-confs/default
# listening on port 80 disabled by default, remove the "#" signs to enable
# redirect all traffic to https
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 80;
server_name www.server.com;
return 301 https://server.com$request_uri;
}
server {
listen 443;
server_name www.server.com;
return 301 https://server.com$request_uri;