$ sudo killall VDCAssistant
$ killall Dock
$ sudo ifconfig en0 up
| // Vue.js method to force a file download, in this example a *.jpg | |
| forceDownload(url, fileName) { | |
| const dlFile = fileName || url.substring(url.lastIndexOf('/') + 1); | |
| const mimeType = 'image/jpeg'; | |
| const extension = '.jpg'; | |
| const xhr = new XMLHttpRequest(); | |
| xhr.open('GET', url, true); | |
| xhr.responseType = 'blob'; | |
| this.trackEvent(url); |
A Webhook, in simple terms, is a user-defined HTTP callback. It is a mechanism for the system to notify you about an event.
In our case, we need to send messages to a particular channel in slack. Slack calls in Incoming Webhook. It is a mechanism
to send messages to your Slack Channel from external sources. These external sources could be any application or service
that is capable of sending a JSON payload over HTTP into a Slack Channel. Each Channel will be identified by a
unique Incoming Webhook URL to which you can post the message from outside. This configuration is done via the Integrations for your channel.
incoming webhook integration below the heading Incoming Webhooks.Replace empty-branch with your desired branch name.
git checkout --orphan empty-branch
Then you can remove all the files you'll have in the staging area (so that they don't get committed):
git rm -rf .
At this point you have an empty branch, on your machine.
| var path = require('path'); | |
| var fs = require('fs'); | |
| module.exports = function (grunt) { | |
| 'use strict'; | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| var gulp = require('gulp'), | |
| webserver = require('gulp-webserver'), | |
| del = require('del'), | |
| sass = require('gulp-sass'), | |
| karma = require('gulp-karma'), | |
| jshint = require('gulp-jshint'), | |
| sourcemaps = require('gulp-sourcemaps'), | |
| spritesmith = require('gulp.spritesmith'), | |
| browserify = require('browserify'), | |
| source = require('vinyl-source-stream'), |