I hereby claim:
- I am sethsandaru on github.
- I am sethphat (https://keybase.io/sethphat) on keybase.
- I have a public key ASDiebLsbJ9eFy0STO7FwAwu0sEqe1BKWgPFlxjqRzAHMgo
To claim this, I am signing this object:
<!-- | |
Code By Seth Phat | |
https://sethphat.com | |
--> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>LeafletJS - OpenStreetMap API by Seth Phat</title> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/> | |
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script> |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Seth Phat | |
* Date: 5/4/2019 | |
* Time: 3:41 PM | |
*/ | |
namespace App\Http\Controllers\Social; |
<html> | |
<head> | |
<title>Placeholder Loading - SethPhat</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://unpkg.com/placeholder-loading/dist/css/placeholder-loading.min.css"> | |
</head> | |
<body> | |
<div class="container mt-4"> | |
<h2>1 row 1 item basic info</h2> |
I hereby claim:
To claim this, I am signing this object:
String url = "http://www.example.com"; | |
try { | |
Uri uri = Uri.parse("googlechrome://navigate?url=" + url); | |
Intent i = new Intent(Intent.ACTION_VIEW, uri); | |
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
startActivity(i); | |
} catch (ActivityNotFoundException e) { | |
// Chrome is probably not installed | |
} |
While many of our readers will get away with running the command again with sudo, and succeeding, there is a better way! The permission error stems from access permissions to supervisord’s socket file, which by default is owned by root, and not writeable by other users. We can make supervisord chown and chmod the file to a particular user or group on startup, granting the user or group permission to stop and start the services we’ve configured without requiring sudo. | |
Let’s create a group, add ourselves to it by doing the following | |
groupadd supervisor | |
usermod -a -G supervisor | |
After logging-out/logging-in (so that the new group membership takes effect), edit the supervisord configuration file (/etc/supervisor/supervisor.conf) to make the unix_http_server section look as follows | |
[unix_http_server] |
const express = require('express'); | |
const app = express(); | |
// Sample data in CSV format | |
const csvData = [ | |
['Name', 'Email'], | |
['John Doe', 'johndoe@example.com'], | |
['Jane Smith', 'janesmith@example.com'], | |
]; |
# Using root | |
# Bump ubuntu | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
# Install dependencies | |
sudo apt-get install ca-certificates apt-transport-https software-properties-common lsb-release -y | |
# PHP repo | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update |