- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
This file contains 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
Name: Flash | |
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
Thank you! |
@ http://www.dslreports.com/speak/print/default;24622031
Using 0.0.0.0 instead of 127.0.0.1 is indeed faster because you don't have to wait for a timeout. It also does not interfere if you are running a web server on the local PC.
If you use 0.0.0.0, you may want to add this entry just before your first 0.0.0.0 "blocking" entry:
This file contains 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
<? | |
// Link image type to correct image loader and saver | |
// - makes it easier to add additional types later on | |
// - makes the function easier to read | |
const IMAGE_HANDLERS = [ | |
IMAGETYPE_JPEG => [ | |
'load' => 'imagecreatefromjpeg', | |
'save' => 'imagejpeg', | |
'quality' => 100 |
This file contains 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 | |
/** | |
* Distance between two points | |
* | |
* @param float $lat1 Latitude 1 | |
* @param float $lng1 Longitude 1 | |
* @param float $lat2 Latitude 2 | |
* @param float $lng2 Longitude 2 | |
* @param string $unit [mi|km] miles|kilometers |
This file contains 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 | |
/** | |
* ----------------------------------------------------------------------------------------- | |
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
* ----------------------------------------------------------------------------------------- | |
*/ | |
// HTML Minifier | |
function minify_html($input) { |
This file contains 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
just edit the vnc_user in this text | |
------------------------------- | |
apt-get install gnome-core xfce4 firefox | |
apt-get install vnc4server | |
adduser vnc_user | |
su - vnc_user | |
vncserver | |
cp ~/.vnc/xstartup ~/.vnc/xstartup.bak | |
rm -rf ~/.vnc/xstartup |
This file contains 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
Start a g2.2xlarge or better (GPU instance) with https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#LaunchInstanceWizard:ami=ami-ffba7b94 | |
Login, username is ubuntu | |
Update a bunch of stuff and make sure cudnn R2 is used: | |
luarocks install image | |
luarocks install loadcaffe | |
luarocks install torch | |
export LD_LIBRARY_PATH=/home/ubuntu/torch-distro/install/lib:/home/ubuntu/torch-distro/install/lib:/home/ubuntu/cudnn-6.5-linux-x64-v2-rc2 |
This file contains 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 | |
function radius_search($lat, $long, $distance = 100){ | |
global $wpdb; | |
return $wpdb->get_results("SELECT DISTINCT item_latitude.post_id, | |
wp_posts.post_title, | |
((ACOS(SIN($lat * PI() / 180) * SIN(item_latitude.meta_value * PI() / 180) + COS($lat * PI() / 180) * COS(item_latitude.meta_value * PI() / 180) * COS(($long - item_longitude.meta_value) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance | |
FROM wp_postmeta AS item_latitude | |
LEFT JOIN wp_postmeta as item_longitude ON item_latitude.post_id = item_longitude.post_id | |
INNER JOIN wp_posts ON wp_posts.ID = item_latitude.post_id | |
WHERE item_latitude.meta_key = 'latitude' AND item_longitude.meta_key = 'longitude' |
NewerOlder