Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
#! /bin/sh | |
for x | |
do | |
echo "Converting $x" | |
tr -d '\015' < "$x" > "tmp.$x" | |
mv "tmp.$x" "$x" | |
done |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
# servers to proxy to | |
upstream servers { | |
server 10.0.0.1; | |
server 10.0.0.2; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; | |
server_name www2.domain.com |
# Defines all Languages known to GitHub. | |
# | |
# type - Either data, programming, markup, prose, or nil | |
# aliases - An Array of additional aliases (implicitly | |
# includes name.downcase) | |
# ace_mode - A String name of the Ace Mode used for highlighting whenever | |
# a file is edited. This must match one of the filenames in http://git.io/3XO_Cg. | |
# Use "text" if a mode does not exist. | |
# wrap - Boolean wrap to enable line wrapping (default: false) | |
# extensions - An Array of associated extensions (the first one is |
<?php | |
if( !is_admin() && $pagenow != 'wp-login.php' && pll_current_language() == 'en' ) | |
{ | |
wp_redirect(site_url().'/de/'); | |
die(); | |
} |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
npm install
npm start
http://localhost:8080
# Add to file: /etc/fail2ban/jail.local | |
[nginx-badbots] | |
enabled = true | |
port = http,https | |
filter = nginx-badbots | |
logpath = %(nginx_access_log)s | |
maxretry = 1 | |
findtime = 604800 | |
bantime = 604800 |
<!-- DNS preconnect --> | |
<meta http-equiv="x-dns-prefetch-control" content="on"> | |
<link rel="preconnect" href="//ajax.googleapis.com"> | |
<link rel="dns-prefetch" href="https://fonts.gstatic.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> | |
<link rel="dns-prefetch" href="https://use.fontawesome.com"> | |
<link rel="preconnect" href="https://use.fontawesome.com" crossorigin> | |
<link rel="preconnect" href="//cdnjs.cloudflare.com"> | |
<link rel="preconnect" href="//www.googletagmanager.com"> | |
<link rel="preconnect" href="//www.google-analytics.com"> |