Skip to content

Instantly share code, notes, and snippets.

View dobbbri's full-sized avatar
🚀
Working from ISS/NASA

Sergio Dobri dobbbri

🚀
Working from ISS/NASA
View GitHub Profile
@dobbbri
dobbbri / sketch-never-ending.md&env=plain
Last active May 3, 2019 03:08 — forked from ismailmechbal/sketch-never-ending.md
Modify Sketch to never ending trial
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
@dobbbri
dobbbri / LICENCE SUBLIME TEXT
Created February 8, 2019 16:39
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@dobbbri
dobbbri / beerSchema.js
Created January 13, 2019 13:09 — forked from suissa/beerSchema.js
Creating models dynamically
var mongoose = require('mongoose');
var BeerSchema = new mongoose.Schema({
id: { type: Number, min: 0},
name: { type: String, default: '' },
description: { type: String, default: '' },
abv: { type: Number, min: 0},
category: { type: String, default: ''},
created_at: { type: Date, default: Date.now },
updated_at: { type: Date, default: Date.now }
@dobbbri
dobbbri / e2s.py
Created September 29, 2018 09:30 — forked from AmedeeBulle/e2s.py
Simple script to import (Evernote) notes to Simplenote
#!/usr/bin/env python
"""
e2s: simple script to import (Evernote) notes to Simplenote
This script relies on two projects:
- ever2simple (https://github.com/claytron/ever2simple) to covert Evernote ENEX files to JSON
- simplenote python API (https://pypi.python.org/pypi/simplenote) used in this script to upload the notes
Note: Simplenote expects dates in UNIX Timestamp format. I have posted a pull request for ever2simple
to issue dates in this format, but so far the PR is still pending. In the meantime you shoudl use my fork
@dobbbri
dobbbri / disable.sh
Created August 6, 2018 20:36 — forked from gopsmith/disable.sh
Disable bunch of #$!@ in Sierra (Version 2.1)
#!/bin/bash
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# Agents to disable
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi
import Axios from 'axios'
state = {
todos : null
},
getters = {
TODOS : state => {
return state.todos;
}
},
@dobbbri
dobbbri / vue.config.js
Created July 20, 2018 03:17 — forked from Akryum/vue.config.js
Auto-import styles with vue-cli 3
const path = require('path')
module.exports = {
chainWebpack: config => {
addStyleResource(config.module.rule('stylus').oneOf('vue-modules'))
addStyleResource(config.module.rule('stylus').oneOf('vue'))
addStyleResource(config.module.rule('stylus').oneOf('normal-modules'))
addStyleResource(config.module.rule('stylus').oneOf('normal'))
},
}
@dobbbri
dobbbri / CatchAllOptionsRequestsProvider.php
Created October 27, 2017 03:08 — forked from danharper/CatchAllOptionsRequestsProvider.php
Lumen with CORS and OPTIONS requests
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {
@dobbbri
dobbbri / index.html
Created June 27, 2017 01:42 — forked from deltaepsilon/index.html
Firebase 3.0 Authentication Demo
<!--
Install dependencies with Bower:
bower install PolymerElements/paper-elements#^1.0.7
-->
<html>
<head>
<title>Auth Example</title>
<link rel="shortcut icon" href="/favicon.png" type="image/x-icon">