If you want to use a reserved TLD like test for local development, read one of the following:
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
edit /etc/hosts add my.
This gist is based off the fedoramagazine article about NetworkManager's dnsmasq plugin
$ cat /etc/NetworkManager/conf.d/00-use-dnsmasq.conf
# Enables the dnsmasq plugin.
[main]
dns=dnsmasq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* dl-file.php | |
* | |
* Protect uploaded files with login. | |
* | |
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
* | |
* @author hakre <http://hakre.wordpress.com/> | |
* @license GPL-3.0+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Author: Sasha Nikiforov | |
# source of inspiration | |
# https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions | |
# Detect platform | |
if [ "$(uname)" == "Darwin" ]; then | |
# MacOS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ ! -d "$1" ]]; then | |
echo "Not a directory: $1" | |
exit 1 | |
fi | |
find "$1" -type f | while read name | |
do | |
./php-src/sapi/cli/php ./words.php "$2" < "$name" >/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var mat4 = require('gl-mat4'); | |
var interpolator = require('mat4-interpolator'); | |
var inherits = require('inherits'); | |
// | |
// Inlining mat4-css-parse & mat4-css-stringify here since RequireBin fails requiring them... | |
// nrmaliy we would just do | |
// var parseMatrix = require('mat4-css-parse'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var mat4 = require('gl-mat4'); | |
var interpolator = require('mat4-interpolator'); | |
var inherits = require('inherits'); | |
// | |
// Inlining mat4-css-parse & mat4-css-stringify here since RequireBin fails requiring them... | |
// nrmaliy we would just do | |
// var parseMatrix = require('mat4-css-parse'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<doctrine-mapping | |
xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
xsi="http://www.w3.org/2001/XMLSchema-instance" | |
schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping | |
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
<entity name="Application\Sonata\MediaBundle\Entity\Media" | |
table="media__media"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'Benchmark/Timer.php'; | |
$timer = new Benchmark_Timer(); | |
$nb_iterations = 1000; | |
/** | |
* BOOTSTRAP | |
**/ |
NewerOlder