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
Nov 1 06:52:01 definingthenextdecade CRON[30362]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )) | |
Nov 1 06:52:05 systemd[1]: Starting Daily apt upgrade and clean activities... | |
Nov 1 06:52:25 systemd[1]: Reloading. | |
Nov 1 06:52:26 systemd[1]: Stopping LSB: automatic crash report generation... | |
Nov 1 06:52:26 apport[30649]: * Stopping automatic crash report generation: apport | |
Nov 1 06:52:26 apport[30649]: ...done. | |
Nov 1 06:52:26 systemd[1]: Stopped LSB: automatic crash report generation. | |
Nov 1 06:52:26 systemd[1]: Reloading. | |
Nov 1 06:52:26 systemd[1]: Starting Daily apt download activities... | |
Nov 1 06:52:26 systemd[1]: Reloading. |
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
# config/application.rb | |
# Don't generate assets and helpers | |
config.generators do |g| | |
g.assets = false | |
g.helper = false | |
end | |
# Don't include all helpers globally, just the right helper for the current namespace | |
config.action_controller.include_all_helpers = false |
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
# Apart from simplicity, another advantage of using process | |
# substitution is Bash will automatically parallelize your tasks. | |
diff <(curl http://somesite/file1) <(curl http://somesite/file2) | |
# Where some-command accepts a filename (or multiple filenames) | |
# as arguments, and another-command writes output to stdout. | |
some-command <(another-command) |
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
log_level :info | |
log_location STDOUT | |
node_name 'benjaminmateev' | |
client_key '/Users/benjamenmateev/Sites/xxx/chef/chef-repo/.chef/benjaminmateev.pem' | |
validation_client_name 'chef-validator' | |
validation_key '/etc/chef/validation.pem' | |
chef_server_url 'http://chef.xxx.com:4000' | |
cache_type 'BasicFile' | |
cache_options( :path => '/Users/benjamenmateev/Sites/xxx/chef/chef-repo/.chef/checksums' ) |
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
$ -> | |
$('#header_search').autocomplete | |
source: "/search/autocomplete" | |
formatItem: (item) -> | |
"<img src=\"#{item.url}\" />#{item.title}" | |
select: (event, ui) -> | |
location.href = ui.item.href |
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
tail -f /va-bash: /dev/fd/62: No such file or directory | |
-bash: /dev/fd/60: No such file or directory | |
# Workaround: | |
sudo ln -s /proc/self/fd /dev/fd |
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
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |
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
app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php | |
<?php | |
public function getRowUrl($row) { | |
return $this->getUrl(’*/*/edit’, array(’page_id’ => $row->getId())); | |
} | |
?> |
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
# vim /etc/sysctl.conf | |
sunrpc.ve_allow_rpc = 1 | |
fs.nfs.ve_allow_nfs = 1 | |
kernel.ve_allow_kthreads = 1 | |
# sysctl -p | |
# vzctl stop 101 | |
# vzctl set 101 --features "nfs:on" --save |
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
root:~# cd /usr/src | |
root:/usr/src# ln -s linux-2.4.18 linux | |
root:/usr/src# ls -l linux | |
lrwxrwxrwx 1 root root 9 Mär 24 12:26 linux -> linux-2.4.18 |
NewerOlder