Skip to content

Instantly share code, notes, and snippets.

@TheJJ
TheJJ / idracclient.py
Last active April 11, 2024 17:26
Dell iDRAC linux/mac/windows client launcher
#!/usr/bin/env python3
"""
Dell iDRAC client launcher for Linux, macOS and Windows.
probably works with Dell iDRAC 6/7/8
Downloads needed Java files and sets up port forwarding via SSH.
example usage: ./idracclient.py -J jumphost.lol.domain srv42-serviceprocessor.lol.domain
for more info, see ./idracclient.py --help
@wernersmit
wernersmit / microcaching.md
Created September 20, 2017 10:28
Nginx Microcaching in Plesk

Create /etc/nginx/conf.d/cache.conf with contents:

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:5m max_size=1000m;
proxy_cache_key "$host$request_uri$cookie_user";

Add the following to nginx directives for the specific domain:

@xbb
xbb / README
Last active April 17, 2024 20:21
IDRAC6 Virtual Console Launcher
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You can use the user and password that you use for the web interface.
You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS.
You don't need to install it, just extract it or copy the files in "jre" folder.
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor.
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture.
Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs.
@ThijsFeryn
ThijsFeryn / varnishusage.go
Last active June 7, 2019 00:33
A Go script that retrieves the Varnish memory consumption and returns it via a RESTful API using GoJi
package main
import (
"strconv"
"net/http"
"github.com/zenazn/goji"
"github.com/zenazn/goji/web"
"os/exec"
"encoding/json"
)
@superhero
superhero / charset-converter.php
Last active April 23, 2024 06:14
UTF-8 Encoding Debugging
<?php
$search = array(
'á',
'ä',
'Ä',
'ç',
'é',
'É',