Skip to content

Instantly share code, notes, and snippets.

View koma-xrd's full-sized avatar
I may be slow to respond.

komatz koma-xrd

I may be slow to respond.
View GitHub Profile
Mattiabe98 / babylon-dashboard.json
Created September 29, 2023 10:43
Radix Babylon Grafana dashboard
"annotations": {
"list": [
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
"enable": true,
xarmengol /
Last active April 17, 2023 13:51
How to increase partition disk on vmware CentOS 8

Steps to increase the disk for a vmware centos 8 server

1. Increase the virtual machine disk by using vCenter

Increase the disk space of the machine, using vCenter. If there is any existing snapshot, this could not be done. So any existing snapshot have to be deleted previously.

Not sure if needed, but once the disk space is increased, reboot the machine.

2. Create a new partition disk by using fdisk

JeremyIglehart /
Last active February 8, 2023 18:36
How to create a new user and remove the `pi` user on a Raspberry Pi

How to create a new user and remove the pi user on a Raspberry Pi

Note: This has been tested in Rasbian Buster released on 2019-06-20

Important: replace jeremy below with whatever username you'd like as your new user.

  1. sudo adduser jeremy
    • You will be asked to enter a password
    • When filling out basic information about the user, you may leave it blank
mistic100 / vimeo-downloader.js
Created September 15, 2018 09:01
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
Orangenhain / import_minimizer.rb
Created November 28, 2013 12:45
Script that takes a ObjC .m file and tries to find unused (or duplicate) import statements by commenting out each #import line in turn and seeing if the project still compiles. You will have to change BUILD_DIR & BUILD_CMD.
#!/usr/bin/env ruby -w
class String
def starts_with?(prefix)
prefix.respond_to?(:to_str) && self[0, prefix.length] == prefix
HEADER_REGEX = /^#import\s+["<](.*)[">]/