This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 ----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
q |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Axios from 'axios' | |
state = { | |
todos : null | |
}, | |
getters = { | |
TODOS : state => { | |
return state.todos; | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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"> |
NewerOlder