Skip to content

Instantly share code, notes, and snippets.

View talnetd's full-sized avatar

talnetd talnetd

View GitHub Profile
#!/bin/sh
# install stable nginx
# even though nginx will be replaced
# by compiling from source
# this installs latest versions
# of required libs
add-apt-repository -y ppa:nginx/stable \
&& apt-get update \
&& apt-get install -y nginx \
@talnetd
talnetd / NPC Groups Target Profiles [pyfa].txt
Created March 21, 2022 19:59 — forked from jdtech3/NPC Groups Target Profiles [pyfa].txt
All the NPC ships in EVE made into 2 lists of pyfa target profiles. I recommend using groups profiles or pick and choose from ships profiles, since pyfa is not great for handling 4000+ profiles xD (Disclaimer: accuracy not guaranteed!)
# Exported from npc_groups_profiles.py by JDTech
#
# Values are in following format:
# TargetProfile = [name],[EM %],[Thermal %],[Kinetic %],[Explosive %],[Max velocity m/s],[Signature radius m],[Radius m]
TargetProfile = Sentry Gun,22.499999999999996,18.125000000000004,19.374999999999996,18.75,0.0,100.0,100.0
TargetProfile = Police Drone,18.458819370802402,19.288617886178862,21.57601235415237,22.222782258064516,2000.0,100.0,100.0
TargetProfile = Pirate Drone,18.59375,18.281250000000004,21.030745967741936,20.46875,250.0,87.5,87.5
TargetProfile = LCO Drone,0.0,0.0,0.0,0.0,350.0,100.0,100.0
TargetProfile = Minor Threat,18.282493368700266,15.714285714285714,23.67302955665025,27.224221627050554,380.0,45.0,45.0
TargetProfile = Rogue Drone,17.14285714285714,18.571428571428573,24.28571428571429,25.71428571428571,250.0,45.0,45.0
@talnetd
talnetd / export-node-stats.md
Created June 24, 2022 02:28 — forked from ScriptingSquirrel/export-node-stats.md
Setup prometheus-node-exporter and push stats to Pushgateway with cron job

(Assuming a Debian 8-like system)

  • Install prometheus-node-exporter

    $ sudo apt update && sudo apt install prometheus-node-exporter
  • Configure prometheus-node-exporter to expose metrics only to localhost, not on to all networks. Modify file /etc/default/prometheus-node-exporter:

    # Set the command-line arguments to pass to the server.