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 strict"; | |
module.exports = { | |
up: (queryInterface, Sequelize) => { | |
return queryInterface.createTable("users", { | |
id: { | |
allowNull: false, | |
autoIncrement: true, | |
primaryKey: true, | |
type: Sequelize.INTEGER | |
}, |
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
axios.post('/login', { | |
email: self.email, | |
password: self.password | |
}) | |
.then(response => { | |
// successful login | |
}, error => { | |
const responseData = error.response.data; | |
const firstErrorKey = Object.keys(responseData.errors); |
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 | |
# This is where the backup gets emailed too | |
[email protected] | |
DATE=`date` | |
DATABASEUSER=root | |
DATABASEPASS=secret | |
DATABASENAME=test | |
PREFIX=topup_ |
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 | |
$capsule = \Illuminate\Database\Capsule\Manager::connection(); | |
$test = \App\Test::where('id', 1)->get(); | |
error_log('SQL: ' . print_r($capsule->getQueryLog(), true)); | |
//without the bindings |
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
- Modify laradock's /workspace/Dockerfile-<php version> | |
- Update the snippet below (ref: https://github.com/laradock/laradock/commit/3a5100097ab0eb9144c385a1e516ac9a54077bdf) | |
RUN if [ ${INSTALL_AEROSPIKE} = false ]; then \ | |
rm /etc/php/5.6/cli/conf.d/aerospike.ini \ | |
;fi | |
change to |
This file has been truncated, but you can view the full file.
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
## Script generated 11/26/2017 at 05:48:57 (19997 entries) for 4.605 sec. | |
## | |
## Hosts list sources: | |
## > https://cdn.rawgit.com/tarampampam/static/master/hosts/block_shit.txt | |
## > https://adaway.org/hosts.txt | |
## > http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext | |
## > http://someonewhocares.org/hosts/hosts | |
## > http://getadhell.com/standard-package.txt | |
## > https://www.micu.eu/adblock/youtube_complete.txt | |
## > https://www.micu.eu/adblock/ad_list.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
# nov/24/2017 22:10:36 by RouterOS 6.40.5 | |
# software id = XXXXXX | |
# | |
# model = 951G-2HnD | |
# serial number = XXXXX | |
/interface bridge | |
add fast-forward=no name=Bridge-LAN&WAN | |
add admin-mac=6C:3B:6B:91:F5:3F auto-mac=no fast-forward=no name=bridgeLocal | |
/interface wireless | |
set [ find default-name=wlan1 ] band=2ghz-b/g/n country=singapore disabled=no frequency=auto mode=ap-bridge ssid="John 3:16" wireless-protocol=802.11 |
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 | |
# Credentials | |
DATE=`date` | |
DATABASEUSER=root | |
DATABASEPASS=secret | |
DATABASENAME=test | |
[email protected] | |
# For filename purpose |
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
let key = Object.keys(error.response.data)[0]; | |
if(error.response.status === 422) { | |
swal('Oh snap!', error.response.data[key][0], "error"); | |
} else { | |
swal('Error!', error.message, "error"); | |
} |
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
<template> | |
{{text}} | |
</template> | |
<script> | |
export default { | |
props: ['text'] | |
} | |
</script> |