React: Unexpected use of 'location';
Solution: Use window.location
instead of bare location
.
cat /etc/systemd/system/geth.service | |
systemctl daemon-reload | |
systemctl status geth | |
systemctl restart geth | |
tail -n0 -f /opt/bsc/node/bsc.log |
#Grabs IP's from a file | |
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' file.txt | |
#COMMA SEP IP | |
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' ssl.txt | tr '\n' ',' | sed 's/.$//' - comma seperated ips |
<?php | |
define('DB_USERNAME', 'root'); | |
define('DB_PASSWORD', 'Hoang123'); | |
define('DB_NAME', 'session_example'); | |
define('DB_SERVER', 'localhost'); | |
/* Attempt to connect to MySQL database */ | |
/** @var mysqli $mysqli */ | |
$mysqli = new mysqli(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME); |
React: Unexpected use of 'location';
Solution: Use window.location
instead of bare location
.
var http = require('http'); | |
var express = require('express'); | |
var app = express(); | |
var exphbs = require('express3-handlebars'); | |
var path = require('path'); | |
var server = http.createServer(app); | |
var io = require('socket.io').listen(server); | |
var mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost:30000/people'); |