When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
->Setting processData to false lets you prevent jQuery from automatically transforming the data into a query string. | |
And Setting the contentType to false is imperative. | |
Refference link: https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects | |
//01// File Upload using FormData Object in Javascript | |
Syntax: | |
var formData = new FormData(); // Currently empty | |
formData.append(name, value); // custom text field where key/value pair | |
formData.append(name, value, filename); // Custom file uploading |
#!/bin/bash | |
settings() { | |
SCRIPT_DIR="$(dirname "$0")" | |
} | |
main() { | |
request $@ | |
settings | |
run |
# Read email in inbox, look for any URLs and update them to wallabag, delete email if URLs found in it. | |
# Built from various internet sources. Final code donated under GPL v3 by Github user aptgetupgrade | |
# Tested using python 2. Could be run as part of a crontab, e.g. every 5 mins. | |
# | |
import sys | |
import imaplib | |
import getpass | |
import email | |
import email.header | |
import datetime |
# get total requests by status code | |
awk '{print $9}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | |
# get top requesters by IP | |
awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | awk -v OFS='\t' '{"host " $2 | getline ip; print $0, ip}' | |
# get top requesters by user agent | |
awk -F'"' '{print $6}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | |
# get top requests by URL |
To remove a submodule you need to:
##Perks of Microsoft
####Salary
####Health and Wellness Care