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 / 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 \
@antonydevanchi
antonydevanchi / install nano.sh
Created December 18, 2020 05:29 — forked from BlakeGardner/install nano.sh
Syntax highlighting in nano on Mac OS
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
# install nano from homebrew
brew install nano
# update your nanorc file with the contents of the nanorc file below
nano ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
}
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},