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
| t = Delayed::Job.find(9739273); | |
| yaml_data = YAML::load(t.handler); | |
| yaml_data.job_data['arguments'].first['segment_event']['userId'] = "some@email.com"; | |
| yaml_data.job_data['arguments'].first['userId'] = "some@email.com"; | |
| l = YAML::dump(yaml_data); | |
| t.handler = l; | |
| t.attempts = 2; | |
| t.failed_at = nil; | |
| t.save if t.valid? |
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
| php admin/tool/task/cli/schedule_task.php --list | |
| php admin/tool/task/cli/schedule_task.php --execute=\\local_getsmarter\\task\\taskname |
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
| kill $(ps aux | grep '[d]elayed_job' | awk '{print $2}') | |
| Credit: | |
| http://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex |
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
| du -h --max-depth=1 | sort -hr |
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
| bundle clean --force |
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
| scp source_file_name username@destination_host:destination_folder |
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
| scp username@remotecomputer:/path/to/file/you/want/to/copy where/to/put/file/on/laptop |
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
| Dump: | |
| mysqldump -uUSERNAME -pPASSWORD DBTODUMP > /path/to/DUMPFILE.sql | |
| Import: | |
| mysql -uUSERNAME -pPASSWORD DBTOIMPORTTO < /path/to/DUMPFILE.sql/ |
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
| su gsadmin |
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
| # soft delete | |
| git branch -d -r remote_name/branch_name | |
| # hard delete | |
| git push origin :branchname |
NewerOlder