Windows 10 minimum version 2004 Build 19041 (find it by using Win+R, type winver
then [ENTER] )
- Run PowerShell as Administrator and type
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# See your gpg public key: | |
gpg --armor --export YOUR_KEY_ID | |
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
Release executable binary downloaded from: | |
https://github.com/ViRb3/wgcf | |
# Release file name is currently | |
wgcf_1.0.6_darwin_amd64 | |
# install to local bin | |
chmod +x wgcf_1.0.6_darwin_amd64 | |
cp wgcf_1.0.6_darwin_amd64 /usr/local/bin |
<?php | |
@date_default_timezone_set('Europe/Rome'); | |
_init_magicQuotes(); | |
$db=new db; | |
$conn=$db->conn(); | |
This is a short post to show you how to enable JSX commenting in Sublime Text 3. At the end of this post you will be able to comment and uncomment JSX by pressing CMD + /
or Ctl + /
Here are the steps we will be taking. First we will install the ‘Babel’ package to add support for JSX. Then we will disable the ‘JavaScript’ package so it’s settings don’t override Babel’s settings. Finally we will modify the Babel package to add support for JSX commenting. Lets get started!
Make sure you have python, OpenFace and dlib installed. You can either install them manually or use a preconfigured docker image that has everying already installed:
docker pull bamos/openface
docker run -p 9000:9000 -p 8000:8000 -t -i bamos/openface /bin/bash
cd /root/openface
This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes
const crypto = require('crypto') | |
var sharedSecret = crypto.randomBytes(32); // should be 128 (or 256) bits | |
var initializationVector = crypto.randomBytes(16); // IV is always 16-bytes | |
// var initializationVector = '0123456789abcdef' | |
var plaintext = "Everything's gonna be 200 OK!"; | |
var encrypted; |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
/* | |
* Get GPS coordinates promise for Android and iOS | |
* This React Native component fixes the particular error that comes from Android: "location request timed out" | |
* @author a3diti | |
* 0x332D7E58 | |
USAGE: | |
import getCoordinates from './gps' | |
getCoordinates().then(position => { | |
const coordinates = position.coords.latitude+','+position.coords.longitude |