Skip to content

Instantly share code, notes, and snippets.

View wanxe's full-sized avatar
:octocat:
Focusing

Jorge Nieto wanxe

:octocat:
Focusing
View GitHub Profile
@wanxe
wanxe / localhost-ssl-certificate.md
Created August 12, 2022 09:04 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS

🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert and mkcert -install. Keep it simple!


This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

@wanxe
wanxe / cloudSettings
Created April 14, 2019 23:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-14T23:10:01.905Z","extensionVersion":"v3.2.8"}
@wanxe
wanxe / cloudSettings
Last active April 12, 2019 08:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-12T08:32:40.920Z","extensionVersion":"v3.2.8"}
@wanxe
wanxe / jsconfig.json
Last active August 22, 2018 22:50
Improves the webpack aliases VSCode vue files
{
"include": [
"./src/**/*"
],
"compilerOptions": {
"baseUrl": ".",
"target": "ES6",
"checkJs": false,
"paths": {
"@/*": ["src/*"],
@wanxe
wanxe / productsRepository.js
Created February 11, 2018 20:24
Simple Repository Pattern
import Repository from './SomeAjaLibrary' // Axios, jQuery, fetch....
export default {
get () {
return Repository.get('/api/products')
},
create (payload) {
return Repository.post('/api/products', payload)
}
}
@wanxe
wanxe / fonts.styl
Last active March 21, 2018 21:28
Include material design fonts
font_path = '~@/assets/fonts/'
@font-face
font-family 'Material Icons'
font-style normal
font-weight 400
src url(font_path + 'MaterialIcons-Regular.eot')
src local('Material Icons'),
local('MaterialIcons-Regular'),
url(font_path + 'MaterialIcons-Regular.woff2') format('woff2'),
url(font_path + 'MaterialIcons-Regular.woff') format('woff'),