Skip to content

Instantly share code, notes, and snippets.

View h3ct0rjs's full-sized avatar
:shipit:

Héctor F. Jiménez. S h3ct0rjs

:shipit:
View GitHub Profile
@rrichards
rrichards / grafana custom.ini
Created February 20, 2020 09:34 — forked from mvadu/grafana custom.ini
nginx config for using grafana, Influxdb via reverse proxy with authentication
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
@wshihadeh
wshihadeh / docker-compose.yml
Created January 19, 2020 09:19
LDAP Docker compose file
version: '3.7'
services:
ldap_server:
image: wshihadeh/openldap:withdata
environment:
LDAP_ADMIN_PASSWORD: test1234
LDAP_BASE_DN: dc=shihadeh,dc=intern
ports:
- 389:389
volumes:
@jdnichollsc
jdnichollsc / ABC.md
Last active April 16, 2024 03:40
The Job Interview Guide

The Job Interview Guide 💼

And English is a Work in Progress ⌛

@jamlfy
jamlfy / Muyian.js
Last active June 10, 2020 21:51
Minimal Date
class Muyian extends Date {
to (date, locale) {
return this.diff(date, true);
}
form (date, locale) {
return this.diff(date, true);
}
@cyanpencil
cyanpencil / gsoc_report_final.md
Last active October 19, 2018 03:38
Cyanpencil's GSOC 2018 Summary: Console Interface Improvements

Cyanpencil's GSOC 2018 Summary: Console Interface Improvements

Graph view of a switch statement

Introduction

I had a lot of fun spending this summer coding for radare. I learned so many things, and had an amazing experience overall. I am very grateful to my mentors, Xvilka, Pancake and Maijin, they were always present and closely followed me during the entire summer.

@jdjuan
jdjuan / meta-regimen.md
Last active June 15, 2018 22:32
Meta Regimen: How to stick to your habits

Meta Regimen

Lessons I've learned throughout the years to keep up with my habits.

1. Motivate Yourself 💪

Nothing will make you skip your habits more than the lack of motivation

  • Believe you can
  • Watch motivational videos
@levi-turner
levi-turner / qsr_backup.ps1
Created March 26, 2018 17:12
Backing up the QSR database using PowerShell
# Set the postgres user password
$env:PGPASSWORD = 'password';
# Get the date and format into YYYY-MM-DD format
$date = Get-Date -format "yyyy-MM-dd"
# Test if there is a QSR directory
Set-Location /
if (Test-Path C:\QSR) {
Write-Host "C:\QSR already exists." -ForegroundColor Green
} else {
Write-Host "Creating QSR directory for PostgreSQL backup" -ForegroundColor Green
@jeffbrl
jeffbrl / describe_instances.py
Created February 27, 2018 17:28
How to make datetime.datetime json serializable - boto3 ec2 describe_instances
# Adapted from https://stackoverflow.com/questions/35869985/datetime-datetime-is-not-json-serializable
import datetime
import json
import boto3
def datetime_handler(x):
if isinstance(x, datetime.datetime):
return x.isoformat()
@asmateus
asmateus / instructions.md
Last active February 6, 2024 22:07
Simple Slurm configuration in Debian based systems

Slurm Configuration Debian based Cluster

Here I will describe a simple configuration of the slurm management tool for launching jobs in a really simplistic cluster. I will assume the following configuration: a main node (for me it is an Arch Linux distribution) and 3 compute nodes (for me compute nodes are Debian VMs). I also assume there is ping access between the nodes and some sort of mechanism for you to know the IP of each node at all times (most basic should be a local NAT with static IPs)

Basic Structure

Slurm management tool work on a set of nodes, one of which is considered the master node, and has the slurmctld daemon running; all other compute nodes have the slurmd daemon. All communications are authenticated via the munge service and all nodes need to share the same authentication key. Slurm by default holds a journal of activities in a directory configured in the slurm.conf file, however a Database management system can be set. All in all what we will try to do is:

  • Install `munge