Skip to content

Instantly share code, notes, and snippets.

View talnetd's full-sized avatar

talnetd talnetd

View GitHub Profile
@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.
@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
#!/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 / nginx.conf
Created July 17, 2020 20:36 — forked from morhekil/nginx.conf
Full request/response body logging in nginx
http {
log_format bodylog '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time '
'<"$request_body" >"$resp_body"';
lua_need_request_body on;
set $resp_body "";
body_filter_by_lua '
@talnetd
talnetd / install_note.md
Created July 5, 2020 17:08
docker,kubernetes and minikube on ubuntu
@talnetd
talnetd / autorun.cfg
Created May 25, 2020 11:42
CSGO AUTORUN
// righthand toggle
bind l "toggle cl_righthand 0 1"
// Rates
rate "786432" // max rate, lower if having network issues
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interp_ratio "1"
cl_interpolate "1"
@talnetd
talnetd / README-Template.md
Created July 15, 2019 01:29 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@talnetd
talnetd / crud.c
Created February 12, 2015 15:59
Simple CRUD in C to understand how one connect to DATABASE
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
@talnetd
talnetd / vim
Created January 29, 2015 05:42
Just a simple VIM setup
#!/usr/bin
# Lets get started
sudo apt-get update
# Install Vi Improved
sudo apt-get install vim
# Get the NeoBundle to the house
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
upstream unicorn {
server unix:/tmp/unicorn.projectname.sock fail_timeout=0;
}
server {
listen 80 default_server deferred;
# server_name example.com;
root /home/username/apps/projectname/current/public;
location ^~ /assets/ {