Skip to content

Instantly share code, notes, and snippets.

View antonydevanchi's full-sized avatar
💭
I may be slow to respond.

Anton Piskunov antonydevanchi

💭
I may be slow to respond.
View GitHub Profile
@antonydevanchi
antonydevanchi / get_gists.py
Last active September 24, 2021 18:33 — forked from selimslab/get_gists.py
Download all Gists for a specific user
#!/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
@antonydevanchi
antonydevanchi / 01-simple.py
Created June 14, 2021 22:33
How to get MD5 sum of a string using python?
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.
@antonydevanchi
antonydevanchi / AccountService.java
Created May 29, 2021 22:00 — forked from Amrsatrio/AccountService.java
some epic/fortnite endpoints
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;
@antonydevanchi
antonydevanchi / wp-perf.md
Created April 8, 2021 02:32 — forked from Ruzgfpegk/wp-perf.md
WordPress Performance & Development tips
@antonydevanchi
antonydevanchi / readme.md
Created April 8, 2021 01:10 — forked from pronskiy/readme.md
WordPress Live Templates for PhpStorm
@antonydevanchi
antonydevanchi / security.conf
Created March 29, 2021 04:17 — forked from ambroisemaupate/security.conf
Nginx CSP example
# 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
@antonydevanchi
antonydevanchi / README.md
Last active January 26, 2025 23:48
octodns + octodns-lexicon + dns-lexicon — automation tool for 91 DNS Provider

Yandex.PDD Setup

Install

mkdir workspace; cd workspace

pipenv install; pipenv shell
@antonydevanchi
antonydevanchi / swag.md
Last active February 3, 2021 18:29
AWS to YC EZ MIGRATION

1. Install by one-step-guide

Linux / OS X / Windows Binary! / in Docker / build from sources

https://github.com/minio/mc

2. Set-up aliases

mc alias set <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> --api <API-SIGNATURE> --path <BUCKET-LOOKUP-TYPE>

@antonydevanchi
antonydevanchi / README.md
Created December 22, 2020 19:00 — forked from magnetikonline/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
  • List every object at each commit.
@antonydevanchi
antonydevanchi / mysqldump.sh
Created December 20, 2020 15:46 — forked from lavoiesl/mysqldump.sh
mysqldump
#!/bin/sh
#
# @link https://gist.github.com/lavoiesl/11022667
mysqldump $@ \
--set-gtid-purged=OFF \
--skip-comments \
--hex-blob \
--create-options \
--disable-keys \