Skip to content

Instantly share code, notes, and snippets.

View sawwd's full-sized avatar
💭
What's happening?

Aprier sawwd

💭
What's happening?
View GitHub Profile
<?php
array(
'Pacific/Honolulu' => '(GMT-10:00) Hawaii',
'America/Anchorage' => '(GMT-09:00) Alaska',
'America/Los_Angeles' => '(GMT-08:00) Pacific Time (US &amp; Canada)',
'America/Phoenix' => '(GMT-07:00) Arizona',
'America/Denver' => '(GMT-07:00) Mountain Time (US &amp; Canada)',
'America/Chicago' => '(GMT-06:00) Central Time (US &amp; Canada)',
'America/New_York' => '(GMT-05:00) Eastern Time (US &amp; Canada)',
[
{
"name": "American Samoa",
"time_zone_string": "(GMT-11:00) American Samoa"
},
{
"name": "International Date Line West",
"time_zone_string": "(GMT-11:00) International Date Line West"
},
{
@sawwd
sawwd / all.txt
Created July 19, 2019 06:55 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@sawwd
sawwd / magento2-with-vagrant-on-win10.md
Last active January 10, 2019 13:05
Magento2 with Vagrant on Windows 10

Magento2 with Vagrant on Windows 10

1. Install complatible VirtualBox and Vagrant versions:

Download VirtualBox 5.2.22

Download Vagrant 2.0.2

Note: be sure to install VirtualBox first, since Vagrant depends on it.

@sawwd
sawwd / git-clear-cache.sh
Created June 23, 2018 13:19 — forked from joemaffia/git-clear-cache.sh
Clear git cache
git rm -r --cached .
git add .
git commit -am 'git cache cleared'
git push
@sawwd
sawwd / gitdiffzip.sh
Created May 30, 2018 17:39
Git: archive only the changes between two commits.
#!/bin/bash
IFS=$'\n'
files=($(git diff --name-only $1 $2))
git archive -o $3 $2 "${files[@]}"
@sawwd
sawwd / curl.md
Created January 28, 2018 07:39 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@sawwd
sawwd / http_streaming.md
Created January 24, 2018 16:11 — forked from CMCDragonkai/http_streaming.md
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on

@sawwd
sawwd / hierarchy.php
Created November 21, 2017 09:22 — forked from johnbillion/hierarchy.php
ASCII WordPress Template Hierarchy
<?php
/*
WordPress Template Hierarchy (as of WordPress 4.8)
is_404() -------------------------------------------------------------------------------------------------> 404.php
is_search() ----------------------------------------------------------------------------------------------> search.php
is_front_page() ------------------------------------------------------------------------------------------> front-page.php
is_home() ------------------------------------------------------------------------------------------------> home.php
@sawwd
sawwd / plugin.php
Created November 20, 2017 22:05 — forked from johnbillion/plugin.php
First pass at removing the vulnerabilities from this plugin. Untested. *bites nails*
<?php
/* Plugin Name: Damn Vulnerable WordPress Plugin
* Description: Intentionally vulnerable plugin for plugin author education
* Version: 0.1
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/
* Author: Jon Cave
* Author URI: http://joncave.co.uk
* License: GPLv2+
*
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE