I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
*/ | |
(function() { |
<?php | |
class Encryption { | |
var $skey = "yourSecretKey"; // change this | |
public function safe_b64encode($string) { | |
$data = base64_encode($string); | |
$data = str_replace(array('+','/','='),array('-','_',''),$data); | |
return $data; | |
} |
[mysqld] | |
# Slow Log | |
#slow_query_log = 1 | |
#log_queries_not_using_indexes = 1 | |
#long_query_time = 1 | |
# Disable DNS lookups for performance | |
skip_name_resolve | |
# MySQL >= 5.5.5 uses InnoDB by default, but set it just in case |
server { | |
# Listen on port 80 for any IPv4 address on this server | |
# listen docs: http://wiki.nginx.org/HttpCoreModule#listen | |
listen 80; | |
# Listen on only the selected hostname... | |
server_name <HOSTNAME>; | |
# ...or use the catchall character if you want to handle multiple hostnames | |
# server_name _; |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
# trying to install PPA behind firewall fails: | |
$ sudo add-apt-repository ppa:chris-lea/node.js | |
gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com | |
gpgkeys: HTTP fetch error 7: couldn't connect to host | |
gpg: no valid OpenPGP data found. | |
gpg: Total number processed: 0 | |
recv failed | |
# this is how you get around it (use the key from the command above) | |
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C7917B12 |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
server { | |
client_body_in_file_only clean; | |
client_body_buffer_size 32K; | |
client_max_body_size 300M; | |
sendfile on; | |
send_timeout 300s; | |
# Port that the web server will listen on. | |
#listen 80; |
#!/bin/bash | |
curl -X GET -H "Origin: http://example.com" --verbose http://foo.com/bar | |
curl -X POST -H "Origin: http://example.com" --verbose http://foo.com/bar | |
curl -X PUT -H "Origin: http://example.com" --verbose http://foo.com/bar |
// For: @musaid | |
// https://twitter.com/musaid/status/1039688749205020672 | |
// Ligatures built into Operator Mono as "Operator Mono Lig" with https://github.com/kiliman/operator-mono-lig | |
// VS Code Extensions: | |
// Material Icon Theme (Philip Kief), | |
// indent-rainbow (oderwat), | |
// Rainbow Brackets (2gua), | |
// Subtle Match Brackets (Rafa Mel), | |
// Git Lense | |
// Prettier (Esben Petersen) (require config file with requireConfig) |