Skip to content

Instantly share code, notes, and snippets.

@humbertodias
humbertodias / Kind.md
Created Mar 27, 2022 — forked from newerton/Kind.md
Kind, crie seu cluster Kubernetes localmente com Docker
View curl start.spring.io sample
curl start.spring.io
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Initializr :: https://start.spring.io
@humbertodias
humbertodias / mermaid-pandoc-guide.md
Created Dec 13, 2021 — forked from letientai299/mermaid-pandoc-guide.md
Render PDF from markdown that using mermaid
View mermaid-pandoc-guide.md

Render PDF from Markdonw that using mermaid

You will need:

sudo apt install pandoc -y
View docker-compose-mongo-replicaset.yml
version: "3"
services:
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo:4.0-xenial
expose:
- 27017
ports:
- 27011:27017
View Installing Ubuntu on Nvidia RTX2060 Laptop.md

Installing Ubuntu on my Nvidia RTX2060 Laptop (Lenovo Legion Y7000SE)

Procrastinated for three years, I finally decided to buy my very first "first-hand" computer. Now I am bankrupted. I got it from the school's notebook ownership program which is rather worth it given the OP spec. With just 12000 HKD, I got 1TB SSD, Gen 9 i7 intel CPU core, Nvidia RTX 2060, 32GB RAM, HD screen, as well as a gigantic power supply yay~. As a professional IT dog, the very first thing I need to do is to install linux dual boot on it, but it has been cries and tears doing so. Took me several days TAT.

1. Install Nvidia Driver

I cant directly install from desktop images as it will enter a broken screen as the computer don't have Nvidia driver at fresh install.

Therefore I install ubuntu by first installing a ubuntu server, install the Nvidia driver manually, finally install the desktop.

@humbertodias
humbertodias / nginx.conf
Created May 14, 2021 — forked from mccabiles/nginx.conf
Using gzip with Nginx and Vue CLI project
View nginx.conf
...
gzip on;
gzip_static on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_proxied any;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
@humbertodias
humbertodias / install-sonar-scanner.sh
Created Jan 16, 2021 — forked from Chetan07j/install-sonar-scanner.sh
Install sonar-scanner in linux mint, ubuntu...
View install-sonar-scanner.sh
#!/bin/bash
# https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip
SONAR_SCANNER_VERSION=4.5.0.2216
cd /tmp || exit
echo "Downloading sonar-scanner....."
if [ -d "/tmp/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip" ];then
sudo rm /tmp/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
fi
@humbertodias
humbertodias / GLFW.cs
Last active Sep 24, 2020 — forked from andykorth/gist:5100871
GLFW for C#
View GLFW.cs
using System;
using System.Runtime.InteropServices;
// https://stackoverflow.com/questions/10394994/where-can-i-find-custom-opengl-datatypes-in-sharpgl
using GLbitfield = System.UInt32;
using GLboolean = System.Boolean;
using GLbyte = System.SByte;
using GLclampf = System.Single;
using GLdouble = System.Double;
using GLenum = System.UInt32;
View gist:04422f4a4b832d834cedd2b1d56d8f1e
watch -t -n 0.0001 xdotool getmouselocation
View gist:fccb5b90c4ded1191d88cd3171d69a94
xinput --enable 12
xinput --disable 12