Skip to content

Instantly share code, notes, and snippets.

View ninadpchaudhari's full-sized avatar
:shipit:

Ninad P.Chaudhari ninadpchaudhari

:shipit:
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ninadpchaudhari
ninadpchaudhari / fix-wordpress-permissions.sh
Last active February 5, 2020 06:39 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
# Edited: Ninad Chaudhari <nchaudhari@albany.edu>
# https://gist.github.com/ninadpchaudhari/5c32d596670e5253a15c6deb69642698
if [[ $# -eq 0 ]] ; then
@ninadpchaudhari
ninadpchaudhari / parser.py
Last active February 4, 2024 10:13 — forked from hreeder/parser.py
Forked : Python nginx Log Parser <<Modified>> : Parsed & normalized the datetime string to native python objects
#!/usr/bin/env python
import gzip
import os
import sys
import re
from datetime import datetime
import pytz
tz = pytz.timezone('UTC')
@ninadpchaudhari
ninadpchaudhari / 98-mylog
Last active March 28, 2024 19:18 — forked from navhaxs/99-keepwanalive
openwrt wan auto reconnect hotplug script
#!/bin/sh
#File for my debugging purposes
echo $ACTION >> /tmp/mylog
echo $INTERFACE >> /tmp/mylog
echo "" >> /tmp/mylog