1 2 3 |
$a = Get-Item C:\file-in-question.txt $b = Get-Date "11/10/2014 8:00 AM" $a.LastWriteTime = $b |
1 2 3 |
$a = Get-Item C:\file-in-question.txt $b = Get-Date "11/10/2014 8:00 AM" $a.LastWriteTime = $b |
1 |
Get-ChildItem C:\img | ForEach-Object { $_.Name } > C:\img\ims.txt |
1 |
Get-ChildItem "C:\inetpub\tlwchurch" -recurse | Select-String -pattern "navigation->child_link" | group path | select name |
1 |
/etc/csf/csf.pignore |
1 |
cmd:/usr/bin/php /home/<user>/public_html/<yourfile>.php |
1 |
service lfd restart |
1 |
sudo a2enmod ssl |
1 |
openssl req -new -newkey rsa:2048 -nodes -out www_yoururl_com.csr -keyout www_yoururl_com.key -subj "/C=Your Country/ST=Your State/L=Your City/O=Your Company/CN=www.yoururl.com" |
1 |
mv www_yoururl_com.csr /etc/ssl/certs |
1 2 |
pscp.exe C:\\yourcert.crt root@192.168.1.1:/etc/ssl/certs pscp.exe C:\\yourbundle.crt root@192.168.1.1:/etc/ssl/certs |
1 |
cat yourdomain.crt yourdomain.ca-bundle > ssl-bundle.crt |
1 |
vi /etc/apache2/sites-enabled/yoururlcom |
1 2 3 4 5 6 7 |
<VirtualHost *:443> DocumentRoot /var/www/ SSLEngine on SSLCertificateFile /path/to/your_domain_name.crt SSLCertificateKeyFile /path/to/your_private.key SSLCertificateChainFile /path/to/DigiCertCA.crt </VirtualHost> |
1 |
apachectl configtest (sometimes apache2ctl configtest) or service nginx configtest |
1 |
/etc/init.d/apache2 restart or nginx -s reload |