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
| ------WebKitFormBoundary5WJNeD3zhUXIUDU8 | |
| Content-Disposition: form-data; name="daily_donation_limit" | |
| null | |
| ------WebKitFormBoundary5WJNeD3zhUXIUDU8 | |
| Content-Disposition: form-data; name="end_ts" | |
| 2018-08-31T20:42:00 | |
| ------WebKitFormBoundary5WJNeD3zhUXIUDU8 | |
| Content-Disposition: form-data; name="admin_email" |
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
| $ = document.querySelector.bind(document); |
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
| /* It's important to use the new global analytics script, if you are using the old one | |
| * this will not work. The new script looks like this: | |
| * | |
| * <!-- Global site tag (gtag.js) - Google Analytics --> | |
| * <script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script> | |
| * <script> | |
| * window.dataLayer = window.dataLayer || []; | |
| * function gtag(){dataLayer.push(arguments);} | |
| * gtag('js', new Date()); | |
| * |
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
| set nocompatible " be iMproved, required | |
| so ~/.vim/plugins.vim | |
| let mapleader = ',' "The default is \, but a comma is much better. | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => Powerline config | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
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 | |
| #backuping the database | |
| mysqldump -uroot database_name >/root/Dropbox/db/$(date +%F)_bkp.sql | |
| #zipping it | |
| 7z a /root/Dropbox/db/$(date +%F)_bkp.7z /root/Dropbox/db/*.sql | |
| #removing non-zipped files | |
| rm -f /root/Dropbox/db/*.sql | |
| #deleting backups older than 15 days | |
| find /root/Dropbox/db/* -mtime +14 -type f -delete |
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
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} !^www\. [NC,OR] | |
| RewriteCond %{HTTPS} !^on | |
| RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] |
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
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^domain1.com [OR] | |
| RewriteCond %{HTTP_HOST} ^domain2.com [OR] | |
| RewriteCond %{HTTP_HOST} ^domain3.com [OR] | |
| #if you are redirecting a domain that matchs the | |
| #beggining of the new one, like foo.com to foo.com.bar | |
| #use the regex like: | |
| #RewriteCond %{HTTP_HOST} ^foo.bar$ | |
| RewriteCond %{HTTP_HOST} ^domain4.com [OR] | |
| RewriteCond %{HTTP_HOST} ^domain5.com |
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
| RewriteEngine On | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
| RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
| RewriteCond $1 !^(index\.php|assets|google999621f70dbac9aa\.html|robots\.txt) | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ index.php/$1 [L,QSA] |
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
| ssh -L 3307:localhost:3306 <user>@<server_ip> |
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
| RewriteEngine on | |
| RedirectMatch 301 ^(.*)$ http://website.example.com |
NewerOlder