Skip to content

Instantly share code, notes, and snippets.

@curly210102
curly210102 / .editorconfig
Last active December 21, 2024 03:15
code-canonicalization
# https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
@cirops
cirops / quickstart-editorconfig-eslint-prettier-react.md
Created October 4, 2020 18:36
Quickstart for editorconfig, eslint and prettier for ReactJS development

Boilerplate Typescript React with Eslint and Prettier

Create-react-app

  1. Create a react app with typescript template
npx create-react-app . --template typescript

EditorConfig

  1. Create .editorconfig on the root folder:
@riblo
riblo / ovf2kvm.sh
Last active March 15, 2024 18:47
Import VMware images (ovf based) to Proxmox VE
#!/bin/bash
# Script that import VMware images (ovf based) to Proxmox VE
# Your VM_NAME needs to be the same for: VM_NAME (directory) and VM_NAME.ovf
PROXMOX_USER=root
PROXMOX_PASS=ch4ng3m3!
PROXMOX_HOST=1.2.3.4
PROXMOX_PORT=22
PROXMOX_STORAGE=local-lvm
VM_PATH=/mnt/hgfs/shared/VM-Backup/
@jabrown85
jabrown85 / AspNetCoreSentryRequestFactory.cs
Last active April 12, 2019 13:25
A basic implementation of sentry for aspnet core using existing RavenSharp (full .NET framework required)
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;
using SharpRaven.Data;
@Foxandxss
Foxandxss / nginx-vhost
Last active June 12, 2020 07:12 — forked from bartvanremortele/nginx-vhost
Nginx vhost configuration for proxying requests to an API running on a different port. Easy to avoid CORS / JSONP
upstream api_node_js {
server 127.0.0.1:8080;
}
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/my-kickass-domain/public_html;
index index.html index.htm;
@wdullaer
wdullaer / install.sh
Last active October 4, 2025 11:31
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"