Skip to content

Instantly share code, notes, and snippets.

@gp187
gp187 / linkedin-industry-codes.json
Created February 9, 2017 14:03
LinkedIn Full Industry Codes in JSON
[
{"Code": 47,"Groups": "corp, fin","Description": "Accounting"},
{"Code": 94,"Groups": "man, tech, tran","Description": "Airlines/Aviation"},
{"Code": 120,"Groups": "leg, org","Description": "Alternative Dispute Resolution"},
{"Code": 125,"Groups": "hlth","Description": "Alternative Medicine"},
{"Code": 127,"Groups": "art, med","Description": "Animation"},
{"Code": 19,"Groups": "good","Description": "Apparel & Fashion"},
{"Code": 50,"Groups": "cons","Description": "Architecture & Planning"},
{"Code": 111,"Groups": "art, med, rec","Description": "Arts and Crafts"},
{"Code": 53,"Groups": "man","Description": "Automotive"},

Keybase proof

I hereby claim:

  • I am gp187 on github.
  • I am c3zar (https://keybase.io/c3zar) on keybase.
  • I have a public key whose fingerprint is 814C 5CCF 901C C2A9 D877 00F9 07BF 57AE 8384 E40A

To claim this, I am signing this object:

@gp187
gp187 / gradle-nexus-letsencrypt.sh
Created October 10, 2017 23:15
How to make Gradle work with Letsencrypt certificates in Nexus
#!/bin/sh
# Download the certificate you need from the website
openssl s_client -connect my-nexus-website.com:443 > www.crt
# Go into the certificate and delete everything before -------START ----- and after ------ END ------
# Create your own keystore to use for this certificate -- add as many as you want
sudo keytool -trustcacerts -keystore cacerts -storepass cacerts -noprompt -importcert -alias www -file www.crt
@gp187
gp187 / odoo-v9-install.sh
Created October 31, 2017 14:29
Odoo V9 Install
################################################################################
# Script for installing Odoo V9 on Ubuntu 14.04 LTS (could be used for other version too)
# Author: Yenthe Van Ginneken
#-------------------------------------------------------------------------------
# This script will install Odoo on your Ubuntu 14.04 server. It can install multiple Odoo instances
# in one Ubuntu because of the different xmlrpc_ports
#-------------------------------------------------------------------------------
# Make a new file:
# sudo nano odoo-install.sh
# Place this content in it and then make the file executable:
@gp187
gp187 / install_rx580.sh
Last active March 11, 2018 08:21
AMD RX580 6 card rig | Install Ubuntu 16 and drivers
#!/bin/sh
# Get the Mining Driver
# https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-Pro-Beta-Mining-Driver-for-Linux-Release-Notes.aspx
# Install it normally
# KNOWN ISSUE: if ubuntu fails to load after the restart means the intel driver was remove
# use this to add it again
# sudo apt install -f intel-graphics-update-tool
# rsync over ssh (entire dirs)
rsync -a ~/dir1 username@remote_host:destination_directory
@gp187
gp187 / nginx.conf
Created September 2, 2018 12:35 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@gp187
gp187 / calendar.component.html
Created September 5, 2018 13:49 — forked from bentedder/calendar.component.html
calendar component angular 4
<div class="calendar">
<div class="calendar-navs">
<div class="month-nav">
<button (click)="prevMonth()">&lt;</button>
<span class="p4">{{ currentDate.format('MMMM') }}</span>
<button (click)="nextMonth()">&gt;</button>
</div>
<div class="year-nav">
<button (click)="prevYear()">&lt;</button>
<span>{{ currentDate.format('YYYY') }}</span>
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.15.5
export VERSION_NGINX=nginx-$NGINX_VERSION
export VERSION_LIBRESSL=libressl-2.8.1
export VERSION_PCRE=pcre-8.42
#export NPS_VERSION=1.9.32.10
#export VERSION_PAGESPEED=v${NPS_VERSION}-beta
@gp187
gp187 / matomo.conf
Created July 8, 2019 08:58
nginx conf for matomo
upstream php-handler {
server app:9000;
}
server {
listen 80;
add_header Referrer-Policy origin; # make sure outgoing links don't show the URL to the Matomo instance
root /var/www/html; # replace with path to your matomo instance
index index.php;