This file contains 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
[Desktop Entry] | |
Type=Service | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=video/*; | |
Actions=getSubtitles | |
[Desktop Action getSubtitles] | |
Name=Get Subtitles | |
Icon=plasma | |
Exec=konsole -e subliminal download -l en -s %U |
This file contains 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
internals\scripts\CheckPortInUse.js:13 | |
throw new Error(_chalk.default.whiteBright.bgRed.bold(`Port "${port}" on "localhost" is already in use. Please use another port. ex: PORT=4343 yarn dev`)); | |
^ | |
Error: Port "1212" on "localhost" is already in use. Please use another port. ex: PORT=4343 yarn dev | |
at C:\Users\Argo\Documents\_dev\automation\chocolatey-sync\internals\scripts/CheckPortInUse.js:10:13 | |
at listen (C:\Users\Argo\Documents\_dev\automation\chocolatey-sync\node_modules\detect-port\lib\detect-port.js:93:13) | |
at Server.server.listen (C:\Users\Argo\Documents\_dev\automation\chocolatey-sync\node_modules\detect-port\lib\detect-port.js:118:12) | |
at Object.onceWrapper (events.js:273:13) | |
at Server.emit (events.js:182:13) |
This file contains 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 path = require('path'); | |
var webpack = require('webpack'); | |
var UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | |
var autoprefixer = require('autoprefixer'); | |
module.exports = { | |
mode: 'development', | |
devtool: 'cheap-module-source-map', | |
entry: { | |
client : [ |
This file contains 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
function renderStyles(){ | |
var rules = document.getElementById('stylesheetLinkName').sheet.cssRules; | |
//console.log(document.styleSheets); | |
for (var idx = 0, len = rules.length; idx < len; idx++) { | |
var collection = document.querySelectorAll(rules[idx].selectorText); | |
var pointer = 0; | |
for(pointer = 0; pointer < collection.length; pointer++){ | |
collection[pointer].style.cssText += rules[idx].style.cssText; |
This file contains 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
/** | |
* Instructions to compile PHP7 with a feature set | |
* as close as possible to HHVM core and extensions. | |
* | |
* Target: Debian 7.x and derivatives. | |
* | |
* Latest update: | |
* August 5, 2015 | |
* | |
* |
This file contains 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
[Nemo Action] | |
Active=true | |
Name=Download subtitles... | |
Comment=Download subtitles for a movie | |
Exec=gnome-terminal -x sh -c "cd '%P' && subliminal -l en -s '%U'" |
This file contains 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 | |
/* gd.upload.php | |
* Upload images while converting them to jpeg | |
* with white background, if applicable. | |
* | |
* (c) 2014 Mauro Colella | |
* This code is licensed under MIT license (see http://opensource.org/licenses/MIT for details) | |
*/ |
This file contains 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 bash | |
# Toggle between Compiz and Openbox on Ubuntu. | |
# | |
# (c) 2014 Mauro Colella | |
# This code is licensed under MIT license (see http://opensource.org/licenses/MIT for details) | |
# | |
if ps -C openbox | grep openbox; | |
then | |
echo "Switching to Compiz" |
This file contains 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 bash | |
# Compress/minify all assets of a website in place. | |
# | |
# (c) 2014 Mauro Colella | |
# This code is licensed under MIT license (see http://opensource.org/licenses/MIT for details) | |
# | |
find . -name "*.jpg" -print0 | xargs -0 -I filename jpegtran -copy none -progressive -optimise -outfile filename filename | |
find . -name "*.png" -print0 | xargs -0 -I filename optipng filename | |
find . -name "*.css" -print0 | xargs -0 -I filename csso -i filename -o filename filename |
This file contains 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 bash | |
# Start/stop the LEMP stack on Ubuntu Linux. | |
# | |
# (c) 2014 Mauro Colella | |
# This code is licensed under MIT license (see http://opensource.org/licenses/MIT for details) | |
# | |
echo "Start/stop the extended LEMP stack" | |
sudo -s | |
if service nginx status | grep not; |