Skip to content

Instantly share code, notes, and snippets.

xbb / README
Last active Jan 23, 2021
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.
zz85 / mesh_simplify.html
Last active Jan 23, 2021
Fast Quadric Mesh Simplification JS port
View mesh_simplify.html
<!DOCTYPE html>
<html lang="en">
<title>three.js webgl - modifier - Fast Quadric Mesh Simplification</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
body {
font-family: Monospace;
background-color: #f0f0f0;
mkojoa /
Created Jan 23, 2021
But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
using System;
namespace FizzBuzzGame
public class GameFizzBzz
//lenght prop
public int Lenght { get; set; }
// By default lenght
jiffyclub / svstatic
Last active Jan 23, 2021
Convert a SnakeViz HTML file into a self-contained static file that can be hosted anywhere. This script replaces instances of static files being loaded from the local server by having them come from the rawgit CDN.
View svstatic
#!/usr/bin/env python
Prepare an HTML file from SnakeViz for use as a static page.
This makes it so all static files are loaded from a CDN instead
of from the local server.
To get the SnakeViz HTML file run the snakeviz CLI to load a profile
in your browser, than save that page as an HTML file to your computer.
Finally, run this script on that HTML file.
gvolpe /
Last active Jan 23, 2021
Dependency Injection in Functional Programming

Dependency Injection in Functional Programming

There exist several DI frameworks / libraries in the Scala ecosystem. But the more functional code you write the more you'll realize there's no need to use any of them.

A few of the most claimed benefits are the following:

  • Dependency Injection.
  • Life cycle management.
  • Dependency graph rewriting.
wojteklu /
Last active Jan 23, 2021
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

AnatomicJC /
Created Oct 6, 2019
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications:

View Newman-github-actions.yml
name: Newman Test Run
- master
- staging
runs-on: ubuntu-latest
jeremyjaymes / filetype-extension.php
Last active Jan 23, 2021
WordPress Get Attachment File Type Extension
View filetype-extension.php
* Get attachment file type extension
* Requires that you have the attachment id
* See this post…ordpress-theme/ for more explanation
//* Assumes we're in a loop and have our attachment id already
$file_url = wp_get_attachment_url( $file_id );