Skip to content

Instantly share code, notes, and snippets.

View shivam-tripathi's full-sized avatar
💫
Call it magic, Call it code

Shivam Tripathi shivam-tripathi

💫
Call it magic, Call it code
  • Bangalore, India
View GitHub Profile
➜ acousticbrainz-server git:(master) ✗ vagrant up
/usr/share/vagrant/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /home/shivam_new/.local/bin in PATH, mode 040777
/usr/share/gems/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/shivam_new/.local/bin in PATH, mode 040777
Bringing machine 'acousticbrainz' up with 'libvirt' provider...
==> acousticbrainz: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
acousticbrainz: Box Provider: libvirt
acousticbrainz: Box Version: >= 0
==> acousticbrainz: Loading metadata for box 'ubuntu/trusty64'
acousticbrainz: URL: https://atlas.hashicorp.com/ubuntu/trusty64
The box you're attempting to add doesn't support the provider
➜ acousticbrainz-server git:(master) ✗ vagrant up --provider=virtualbox
/usr/share/vagrant/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /home/shivam_new/.local/bin in PATH, mode 040777
/usr/share/gems/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/shivam_new/.local/bin in PATH, mode 040777
The provider 'virtualbox' that was requested to back the machine
'acousticbrainz' is reporting that it isn't usable on this system. The
reason is shown below:
VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.
# -*- coding: utf-8 -*-
# Pitivi video editor
# Copyright (c) 2005, Edward Hervey <[email protected]>
# Copyright (c) 2009, Alessandro Decina <[email protected]>
# Copyright (c) 2012, Jean-François Fortin Tam <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
@shivam-tripathi
shivam-tripathi / git diff
Created February 24, 2018 10:07
BB npm install
diff --git a/package-lock.json b/package-lock.json
index e99046ac..1a9243e5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1983,6 +1983,7 @@
"requires": {
"anymatch": "1.3.2",
"async-each": "1.0.1",
+ "fsevents": "1.1.3",
"glob-parent": "2.0.0",
@shivam-tripathi
shivam-tripathi / name.json
Created February 26, 2018 08:33
Elastic mapping
"defaultAlias": {
"properties": {
"sortName": {
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import shiftHeader from 'rollup-plugin-shift-header';
import commonjs from 'rollup-plugin-commonjs';
export default {
input: 'src/bookdepository/bookdepository.js',
output: {
file: 'lib/bookdepository.user.js',
format: 'cjs',
// ==UserScript==
// @name Import entities from bookdepository
// @description One-click importing of entities from bookdepository.
// @version 1.0.0
// @author Shivam Tripathi
// @include /^https?:\/\/(?:www\.)?(?:bookdepository\.com\/.*)/
// @grant none
// ==/UserScript==
import Log from '../utils/logger';
// ==UserScript==
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/*
* Logger class
/*
* Logger class
* - debug
* - info
* - error
* - warn
* - setLevel
*/
export default class Log {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>