Skip to content

Instantly share code, notes, and snippets.

@MiRaIOMeZaSu
MiRaIOMeZaSu / nxrm-minio.md
Created December 5, 2022 07:39 — forked from ataylor284/nxrm-minio.md
Creating a Minio S3 Blobstore on NXRM 3.13

Creating a Minio S3 Blobstore on NXRM 3.13

This is a quick guide on creating using the NXRM S3 blob store with Minio's S3 implementation. Disclaimer: Using Minio with NXRM is not officially supported by Sonatype.

Step 1: Start Minio locally

Follow the quick start guide here: https://github.com/minio/minio. For my testing, I started minio with docker with

@MiRaIOMeZaSu
MiRaIOMeZaSu / 00.imgproxy_vs_alternatives.md
Created October 23, 2022 14:34 — forked from DarthSim/00.imgproxy_vs_alternatives.md
imgproxy vs alternatives benchmark

imgproxy vs alternatives benchmark

Setup

  • c5.xlarge AWS instance: 4 CPUs, 8 GB RAM
  • Ubuntu 18.04
  • Go 1.12
  • Python 2.7
  • Vips 8.7.4
@MiRaIOMeZaSu
MiRaIOMeZaSu / Git: Empty branch.md
Created July 1, 2022 06:30 — forked from blattmann/Git: Empty branch.md
Git: Create empty branch

Replace empty-branch with your desired branch name.

git checkout --orphan empty-branch

Then you can remove all the files you'll have in the staging area (so that they don't get committed):

git rm -rf .

At this point you have an empty branch, on your machine.

@MiRaIOMeZaSu
MiRaIOMeZaSu / updater.py
Created November 29, 2020 04:08 — forked from viewv/updater.py
A simple Clash config file downloader for Linux in python.
import os
import requests
from ruamel import yaml
from tqdm import tqdm
URL = "Your Url"
PATH = "Your Config Path"
NAME = "config.yml"
IPHOST = "127.0.0.1:1234" # external-controller
@MiRaIOMeZaSu
MiRaIOMeZaSu / readme.md
Created November 15, 2020 05:41 — forked from troyfontaine/readme.md
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This requires you to be able to ssh into the instance using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customation-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and

Step 1 - Copy /home Contents

To backup the contents of /home, do the following:

Github provides no facility to do this via the UI. This is sad, because it would be extremely useful in order to draft something before publishing it. It would also be trivial for them to implement. Never mind; here's how to do it manually:

  1. Get the "Clone this Gist" text from the left-hand side of the private Gist, e.g. https://gist.github.com/b9cc265982870c091a1e.git, and extract the ID b9cc265982870c091a1e.
  2. Go to https://gist.github.com/ and create a dummy new public Gist.
  3. Get the "Clone this Gist" text from the left-hand side, e.g. https://gist.github.com/8270253.git, and extract the ID 8270253.
  4. git clone [email protected]:b9cc265982870c091a1e tmp-dir && cd tmp-dir && git push -f [email protected]:8270253.git
@MiRaIOMeZaSu
MiRaIOMeZaSu / PY0101EN-4-1-ReadFile.ipynb
Created October 22, 2020 02:51 — forked from ffridlan/PY0101EN-4-1-ReadFile.ipynb
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MiRaIOMeZaSu
MiRaIOMeZaSu / HelloGist.ipynb
Created June 7, 2020 14:24
helloworld.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.