grep -r Mage::dispatchEvent /path/to/your/Magento/* > events.txt
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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/bash | |
# Auto suspend and wake-up script | |
# | |
# Puts the computer on standby and automatically wakes it up at specified time | |
# | |
# Written by Romke van der Meulen <[email protected]> | |
# Minor mods fossfreedom for AskUbuntu | |
# | |
# Takes a 24hour time HH:MM as its argument |
Run git log --pretty=oneline
to log your commits history, assume after run it, you have this:
aedb68e3f87cf3df01b73a18e71fbcbbb5d30071 commit 3
efd0274052ab449bfe6c6ac64f595b095717d680 commit 2
53ece1e4c61e74a4d44371e2dd3215af3ba3a146 commit 1
6d618ffbb605e686b6f9c4da8c169e8e5d091c9a commit 0
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/bash | |
# Dependencies: gnome, sshpass, ssh, gui | |
gnome-terminal --maximize --tab --title='Hades' --command 'sshpass -p "afsd@#$5u89f" ssh [email protected]' \ | |
--tab --title='Kronos' --command 'sshpass -p "sad;fi@#$0al" ssh [email protected]' \ | |
--tab --title='Zeus' --command 'sshpass -p "afsd@#$5u89f" ssh [email protected]' \ | |
--tab --title='Midas' --command 'sshpass -p "sad;fi@#$0al" ssh [email protected]' \ | |
--tab --title='Thor' --command 'sshpass -p "afsd@#$5u89f" ssh [email protected]' \ | |
--tab --title='Herc' --command 'sshpass -p "sad;fi@#$0al" ssh [email protected]' |
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 | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |
Coinbase has the best wallets around! Please use this link cause I get $5 referal bonus.
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
Run this command to install MG-CLI: | |
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
to start miner (4 cores for BCN) use this command: | |
minergate-cli -user <[email protected]> -bcn 4 | |
Feel free to send some of your earnings to me: | |
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j |
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
#!/usr/bin/env bash | |
# How to start: | |
# 1. Sign up for DigitalOcean with this link https://www.digitalocean.com/?refcode=7bf219507e61 | |
# -- it will be filled with $10 to start out (if you use the above link) | |
# 2. Go to https://cloud.digitalocean.com/settings/applications and find you API key | |
# 3. In your shell, run 'export DIGITALOCEAN_TOKEN="INSERT TOKEN HERE"', without the outer quotes. | |
# 4. `brew install jq` | |
# 5. `./digitalocean-proxy` | |
# 6. When you are done, press CTRL+C ONCE, and everything will be cleaned up. |
This script can be used in conjunction with the ISPmail tutorial and the Roundcube autoreply plugin
Create the following table in the database where you created the tables from the ISPmail tutorial.
OlderNewer