Skip to content

Instantly share code, notes, and snippets.

View aletson's full-sized avatar
🤗

Alli aletson

🤗
View GitHub Profile
@aletson
aletson / import.sh
Last active November 3, 2017 15:08 — forked from gionn/import.sh
Migration script from Windows DNS to PowerDNS
#!/bin/bash
for file in `ls -1 ~/zones`
do
suffix=".dns"
domainname=${file%$suffix}
echo " "
echo "$domainname being imported"
zone2sql --zone=$file --gmysql --zone-name=$domainname | mysql -h
localhost -D pdns -u pdns
pdnsutil set-kind $domainname master
From f89fa6404142834b16a6bd54b7650eccb5f51e30 Mon Sep 17 00:00:00 2001
From: tje3d <tje3d@yahoo.com>
Date: Thu, 28 Sep 2017 21:28:17 +0330
Subject: [PATCH] wg_tena_gm
---
src/server/game/Battlefield/Battlefield.cpp | 3 ++
.../game/Battlefield/Zones/BattlefieldWG.cpp | 52 ++++++++--------------
src/server/game/Battlefield/Zones/BattlefieldWG.h | 2 +
3 files changed, 23 insertions(+), 34 deletions(-)
From 1247667c4f7a9dba28829eb2c88a81c7836773ef Mon Sep 17 00:00:00 2001
From: tje3d <tje3d@yahoo.com>
Date: Thu, 28 Sep 2017 21:33:19 +0330
Subject: [PATCH] wg_tena_teleporter_aura
---
.../game/Battlefield/Zones/BattlefieldWG.cpp | 39 +++++++++++++++-------
src/server/game/Battlefield/Zones/BattlefieldWG.h | 4 ++-
src/server/scripts/Northrend/zone_wintergrasp.cpp | 2 +-
3 files changed, 31 insertions(+), 14 deletions(-)
@aletson
aletson / wordpress search and replace full database
Created September 25, 2017 18:50 — forked from mkdizajn/wordpress search and replace full database
mysql search and replace whole database... serialized data also!
<?php
// This script is to solve the problem of doing database search and replace
// when developers have only gone and used the non-relational concept of
// serializing PHP arrays into single database columns. It will search for all
// matching data on the database and change it, even if it's within a serialized
// PHP array.
// The big problem with serialised arrays is that if you do a normal DB
// style search and replace the lengths get mucked up. This search deals with
@aletson
aletson / .htaccess
Last active September 13, 2016 14:29 — forked from jonathonbyrdziak/.htaccess
htaccess mod_expires / mod_cache / mod_deflate / mod_headers
<IfModule mod_mime.c>
AddType audio/mp4 m4a f4a f4b
AddType audio/ogg oga ogg
AddType application/javascript js jsonp
AddType application/json json
AddType video/mp4 mp4 m4v f4v f4p
AddType video/ogg ogv
AddType video/webm webm
AddType video/x-flv flv
@aletson
aletson / fix-wordpress-permissions.sh
Last active September 12, 2016 13:51 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
WP_OWNER=fpmuser # <-- wordpress owner
WP_GROUP=fpmuser # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
WS_GROUP=apache # <-- webserver group
# reset to safe defaults
find ${WP_ROOT} -exec chown ${WP_OWNER}:${WP_GROUP} {} \;
find ${WP_ROOT} -type d -exec chmod 755 {} \;
@aletson
aletson / install-wp.sh
Created September 12, 2016 13:49 — forked from BFTrick/install-wp.sh
Download & Install WordPress via Curl
curl -O https://wordpress.org/latest.zip
unzip latest.zip
mv wordpress site
rm latest.zip