This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import json | |
import hashlib | |
import requests | |
from subprocess import call | |
from concurrent.futures import ThreadPoolExecutor as PoolExecutor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
m = hashlib.md5() | |
m.update("whatever your string is") | |
print m.hexdigest() | |
# Code is awesome. | |
# You can do it in dozens different ways and always wrong. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tb24.fn.network; | |
import com.google.gson.JsonObject; | |
import com.tb24.fn.model.account.*; | |
import retrofit2.Call; | |
import retrofit2.http.*; | |
import java.util.List; | |
import java.util.Map; |
-
Go to PhpStorm Preferences | Tools | Settings Repository
-
Add Read-only Source https://gist.github.com/pronskiy/e0463181ed5bf1f08cdcccb32af87dc6 (URL of this Gist)
-
Restart PhpStorm.
-
WordPress
template group should be available inSettings
>Live Templates
. -
Suggest functions to add in comments! :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config to don't allow the browser to render the page inside an frame or iframe | |
# and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
# if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
# https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
add_header X-Frame-Options SAMEORIGIN; | |
# when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header, | |
# to disable content-type sniffing on some browsers. | |
# https://www.owasp.org/index.php/List_of_useful_HTTP_headers | |
# currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx |
https://github.com/minio/mc
mc alias set <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> --api <API-SIGNATURE> --path <BUCKET-LOOKUP-TYPE>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# @link https://gist.github.com/lavoiesl/11022667 | |
mysqldump $@ \ | |
--set-gtid-purged=OFF \ | |
--skip-comments \ | |
--hex-blob \ | |
--create-options \ | |
--disable-keys \ |