sudo apt-get update
sudo apt-get -y install software-properties-common
My typical setup for a development box in VirtualBox uses two NICs. The first uses NAT to allow the box to communicate with the outside world through my host computer’s network connection. (NAT is the default, so shouldn't require any setup.) The second is a "host-only" connection that allows my host and guest to interact.
To create a host-only connection in VirtualBox, start by opening the preferences in VirtualBox. Go to the "Network" tab, and addd a Host-only Network. Modify the host-only network, and disable DHCP. Make a note of the IP address. (Feel free to set the IP address as well, if you like.)
Next, assign this host-only adapter to the virtual machine. Select the VM and press "Settings". Go to the "Network" tab, and select "Adpater 2". Enable the adapter, set it to a "Host-only Adapter", and select the adpater you created above.
| #view current chains | |
| $ iptables -L | |
| #remove/flush all rules & delete chains | |
| $ iptables -F | |
| $ iptables -X | |
| $ iptables -t nat -F | |
| $ iptables -t nat -X | |
| $ iptables -t mangle -F | |
| $ iptables -t mangle -X |
| sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/osmc/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/home:osmc.list" | |
| sudo apt-get update | |
| sudo apt-get install osmc-installer |
| "scripts": { | |
| "dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| "watch": "NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| "hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| "production": "NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | |
| } |
| import React from "react"; | |
| import { StatusBar } from "react-native"; | |
| import { Container, Button, text, ListItem, Text } from "native-base"; | |
| import Expo from "expo"; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { loading: true }; | |
| } |
| <?php | |
| $users = User::whereHas('roles', function ($query) { | |
| $query->where('id', 2); | |
| })->get(); |
| <?php | |
| public function boot() | |
| { | |
| Schema::defaultStringLength(191); | |
| } |
| <?php | |
| public function boot() | |
| { | |
| Schema::defaultStringLength(191); | |
| } |
| {"lastUpload":"2019-08-14T13:10:02.608Z","extensionVersion":"v3.4.1"} |