- Configure shutter to save your screenshot directly intoyour dropbox public folder.
- Place
dropbox-puburl.sh
in the location of your choice (here~/tools/bin/dropbox-puburl.sh
) - Place
dropbox-screenshot-puburl.desktop
into/usr/share/applications
(you need to be root) - Eventually update the path to your Bash script
- exec
sudo update-desktop-database
- Quit and restart shutter. Go into
Preferences > Actions > Open With
and select Dropbox copy public file URL to clipboard
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
/** | |
* This function intends to work as jest.mock() but fixes issues with llocal modules sharing the same name but a | |
* different path. See https://github.com/facebook/jest/issues/2070 | |
* | |
* Make sure that doMock() is called BEFORE the import and require as the calls are not hoisted like jest.mock()! | |
* | |
* It's used exactly as jest.mock() and will ensure the right mock is loaded without conflicts. You can provide a | |
* factory function so you don't have to worry when to use jest.mock() or doMock(). | |
* |
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
'use strict'; | |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
jshint: { | |
options: { | |
jshintrc: '.jshintrc' | |
}, | |
all: [ | |
'js/*.js' | |
] |
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/sh | |
# | |
# Usage | |
# ######## | |
# | |
# This script backup all your user MySQL databases to a dedicated GZIP file (in a folder) | |
# while forcing a storage strategy to control disk space | |
# It is best used in a cron to perform hourly, daily, weekly and monthly backups | |
# Backups are stored in the target folder under : /folder/$PERIOD-YYMMDD-hhmm/mysql-$DB-$PERIOD-YYMMDD-hhmm.sql.gz | |
# Old backups are automatically deleted if too old |