Skip to content

Instantly share code, notes, and snippets.

View pablopunk's full-sized avatar
:shipit:
shipping

Pablo P Varela pablopunk

:shipit:
shipping
View GitHub Profile
@pablopunk
pablopunk / nginx example.md
Last active February 4, 2019 15:38
Example of a simple nginx config

Edit this file /etc/nginx/sites-available/default and replace all contents with:

server {
  server_name my-domain.xyz;
  root /home/my-username/www;
  
 location /project1 {
@pablopunk
pablopunk / amd-egpu-macmini.md
Created February 20, 2019 12:37
AMD eGPU + Mac mini
@pablopunk
pablopunk / disable-thunderbolt-hackintosh.md
Last active June 27, 2019 22:15
Disable thunderbolt hackintosh
@pablopunk
pablopunk / test-true-colors.sh
Created May 28, 2019 15:07
Test true colors on terminal
# from https://twitter.com/josh_cheek/status/1116321447234940928
ruby -eh,w=$LINES,$COLUMNS'
B=(0..20).map{[0,rand*h,rand*5,rand]}
loop{B. map!{|x,y,v,a|[(x+v),y+a=y<0?-a:a-0.1,v,a]}
$><<"\e[H"<<h.times. map{|v|w.times. map{|u|d=B. map{|x,y|Math.sqrt (w/2-(x+w/2-u)%w)**2/4+(v-y)**2}.min*9
"\e[48;2;#{d<0?0:d>255?255:d. to_i};0;0m "}*""}*"\n"}'
@pablopunk
pablopunk / run-elastic-search-without-security-manager.sh
Created July 17, 2019 01:08
Disable elasticsearch security policy
./elasticsearch -Dsecurity.manager.enabled=false
@pablopunk
pablopunk / windows-terminal-profiles.json
Last active December 19, 2020 12:54
Windows terminal profiles
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"profiles":
{
@pablopunk
pablopunk / stylus-2020-04-08.json
Created April 8, 2020 09:11
Stylus Chrome Backup
[
{
"enabled": true,
"updateUrl": null,
"md5Url": null,
"url": null,
"originalMd5": null,
"installDate": 1576532770539,
"name": "github dark",
"sections": [
[
{
"enabled": true,
"updateUrl": "https://userstyles.org/styles/chrome/175752.json?ik-W=ik-WAM",
"md5Url": "https://update.userstyles.org/175752.md5",
"url": "http://userstyles.org/styles/175752",
"originalMd5": "65a20cc7bb26c15b36059b39047ecc8a",
"installDate": 1588241372078,
"sections": [
{
[
{
"enabled": true,
"updateUrl": "https://userstyles.org/styles/chrome/175752.json?ik-W=ik-WAM",
"md5Url": "https://update.userstyles.org/175752.md5",
"url": "http://userstyles.org/styles/175752",
"originalMd5": "65a20cc7bb26c15b36059b39047ecc8a",
"installDate": 1588241372078,
"sections": [
{