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
<!-- Facebook Conversion code --> | |
{% assign fb_pixel_id = 'yourpixelid' %} | |
<script>(function() { | |
var _fbq = window._fbq || (window._fbq = []); | |
if (!_fbq.loaded) { | |
var fbds = document.createElement('script'); | |
fbds.async = true; | |
fbds.src = '//connect.facebook.net/en_US/fbds.js'; | |
var s = document.getElementsByTagName('script')[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
<?php | |
# "server":{"host":"x","port":22,"username":"x","password":"x","path":"\\/root\\/back","type":"scp","email":"[email protected]"} | |
function backup($user) { | |
global $config; | |
$postdata = http_build_query(array('cpanel_jsonapi_user' => $user, | |
'cpanel_jsonapi_module' => 'Fileman', |
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
// general update | |
sudo apt-get update | |
// general upgrade | |
sudo apt-get upgrade | |
// install midnight commander | |
sudo apt-get install mc | |
// install git |
Follow the instructions at https://letsencrypt.readthedocs.org. Assuming you installed as root, the client will be now be located at /root/letsencrypt.
By default:
- The beta client will use the test infrastructure to issue a certificate, and thus won’t be trusted by browsers;
- The client uses a temporary web server to authenticate the host which will conflict with the existing web server(s);
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
These are some notes to accompany my talk on continuous deployment for ASP.NET with git. Here you'll find all the tools, commands & setup that I mentioned.
I've tried a bunch of different methods of deploying, and find this to be the simplest, easiest way to set up continuous deploy for ASP.NET while still being powerfull and flexible.
Firstly, I like to ensure I have the following tools installed, to make life on windows a bit less painful: