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 sh | |
# checks to see if running | |
launchctl list | grep elasticsearch | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
launchctl remove homebrew.mxcl.elasticsearch | |
pkill -f elasticsearch |
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 sh | |
# checks to see if running | |
launchctl list | grep mongo | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
launchctl remove homebrew.mxcl.mongodb | |
pkill -f mongod |
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
$(document).on("page:load ready", function(){ | |
$("input.datepicker").datepicker(); | |
}); |
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
git config --global alias.a 'add --all' | |
git config --global alias.st 'status' | |
git config --global alias.cm 'commit -m' | |
git config --global alias.co 'checkout' |
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
{ | |
"rulers": [80], | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true | |
} | |
Sidebar Enhancements | |
Emmet - expanding html, css | |
Gitgutter - changes in git |
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
edit the file /etc/environment | |
add one line with your LANG, | |
like this LC_ALL="en_US.UTF-8" | |
save and reboot |
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
// ==UserScript== | |
// @name Nms highlighter | |
// @namespace e-price.com.pl | |
// @include http://ms.allegro.pl/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var logoutElement = document.getElementById("user-logout"); | |
if (logoutElement) { | |
var buttonContent = logoutElement.previousSibling.previousSibling.innerHTML; |
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
// ==UserScript== | |
// @name Nms account highlighter | |
// @namespace http://e-price.com.pl | |
// @version 1.0 | |
// @description Set background color for allegro nms account. | |
// @author Jakub Kubacki | |
// @match http://ms.allegro.pl/* | |
// @grant none | |
// ==/UserScript== | |
var logoutElement = document.getElementById("user-logout"); |
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
catalog_search = 'test' | |
catalog_copy_from = 'test2' | |
Dir.glob("#{catalog_search}/**/*").each do |name_target| | |
next if File.directory? name_target | |
name_main = "#{catalog_copy_from}/#{File.basename name_target}" | |
if File.file? name_main | |
content = File.open(name_main, 'rb') {|file| file.read } | |
File.open(name_target, 'wb') {|file| file.write(content) } | |
end | |
end |