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
# Use the below in your nginx config to allow `go get` to be used for self-hosted gitlab repos. | |
server { | |
server_name code.example.com; | |
# define error page | |
error_page 404 = @notfound; | |
# error page location redirect 301 |
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
define('IMAP_SERVER', 'imap.example.com'); | |
define('IMAP_PORT', 993); | |
define('IMAP_OPTIONS', '/ssl/norsh'); |
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
define('TIMEZONE', 'Europe/Dublin'); | |
define('STATE_DIR', '/domains/z-push.example.com/state/'); | |
define('LOGFILEDIR', '/domains/z-push.example.com/logs/'); | |
define('BACKEND_PROVIDER', 'BackendIMAP'); |
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
Alias /Microsoft-Server-ActiveSync /domains/z-push.example.com/public_html/index.php | |
<Directory "/domains/z-push.example.com/public_html"> | |
Options -Indexes | |
AllowOverride None | |
Require all granted | |
php_flag magic_quotes_gpc off | |
php_flag register_globals off | |
php_flag magic_quotes_runtime off | |
php_flag short_open_tag on |
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
Hi, | |
I wish to make an access request under Article 15 of the General Data Protection Regulation (GDPR) for a copy of any information, including but not limited to on computer or in manual form. | |
If you are making automated decisions about me or this account, including profiling, whether or not on the basis of Article 22 of the GDPR, please provide me with information concerning the basis for the logic in making such automated decisions, and the significance and consequences of such processing. | |
I would like to know whether or not my personal data has been disclosed inadvertently by your company in the past, or as a result of a security or privacy breach. | |
If you are additionally collecting personal data about me from any source other than me, please provide me with all information about their source, as referred to in Article 14 of the GDPR. | |
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
[data-darkreader-inline-bgcolor] { | |
background-color: var(--darkreader-inline-bgcolor) !important; | |
} | |
[data-darkreader-inline-bgimage] { | |
background-image: var(--darkreader-inline-bgimage) !important; | |
} | |
[data-darkreader-inline-border] { | |
border-color: var(--darkreader-inline-border) !important; | |
} | |
[data-darkreader-inline-border-bottom] { |
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
syntax on | |
set autoindent " keep indentation when starting new lines | |
set tabstop=2 " spaces per tab | |
set softtabstop=1 " spaces per tab (when tabbing/backspacing) | |
set shiftwidth=2 " spaces per tab (when shifting) | |
set expandtab " always use spaces instead of tabs | |
au BufWinEnter,BufNewFile * silent tab | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s\+$/ | |
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ |
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
### | |
# Shows your local weather using curl | |
# Defaults to Dublin, Ireland (DUB) if the Weather server cannot determine your location | |
# instead of Oymyakon, Russia (coldest place on earth) | |
### | |
LOCAL_WEATHER=$(curl -s -N http://wttr.in/?m | head -n 7 | grep "Weather report: Oymyakon, Russia") | |
if [[ $LOCAL_WEATHER == 'Weather report: Oymyakon, Russia' ]] | |
then |
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
#include <stdio.h> | |
#include <locale.h> | |
int main() | |
{ | |
/* | |
This will print out as 999,999,999 | |
The magic is in the %'d but you need the locale set first | |
*/ |
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
# Downloads the first 100 pages of images from SUBREDDIT | |
for I in `seq 1 100`; do wget -q "http://imgur.com/r/SUBREDDIT/page/$I" -O - | grep '"post"' | grep class | cut -d\" -f 2 | while read ID; do echo "Downloading $ID.jpg"; wget -q -c "http://i.imgur.com/$ID.jpg"; done; done |
NewerOlder