For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
// Lists of countries with ISO 3166 codes, presented in various formats. | |
// Last Updated: July 30, 2020 | |
// If you're using PHP, I suggest checking out: | |
// https://github.com/thephpleague/iso3166 | |
// or Laravel: https://github.com/squirephp/squire | |
// | |
// JS developers can check out: | |
// https://www.npmjs.com/package/iso3166-2-db | |
// |
For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
To run access a remote jupyter notebook, you will need to do the following:
~/.ssh/config
):Host FLIP # access point server
HostName access.engr.oregonstate.edu
User ONIDusername
Host DGX # target server
HostName submit-b.hpc.engr.oregonstate.edu
User ONIDusername
# Create 4 tunnels, each for different ports, with only https enabled | |
# This way the ngrok process stays bellow the Free plan limit (4 tunnels) | |
# command: ngrok start --all # to start all of them | |
# command: ngrok start note tb # to run jupyter notebook server and tensorboard server only | |
# refer to this page for more info: https://ngrok.com/docs#multiple-tunnels | |
authtoken: ... | |
log: ngrok.log | |
tunnels: | |
# to run jupyter notebook server |