Skip to content

Instantly share code, notes, and snippets.

View posidoni's full-sized avatar
🪴

Mikhail Kuznetsov posidoni

🪴
  • Blum | ex avito-tech | ex ozon-tech | ex gotbit
  • /dev/tty
View GitHub Profile
@posidoni
posidoni / Public_DNS.md
Created August 17, 2025 07:05 — forked from 7r1ck8o7/Public_DNS.md
Public DNS Server

Google Public DNS [AS15169]:


Google Public DNS

Preferred IPv4 DNS server 8.8.8.8
Alternate IPv4 DNS server 8.8.4.4
Preferred IPv6 DNS server 2001:4860:4860:8888
Alternate IPv6 DNS server 2001:4860:4860:0:0:0:0:8888
Preferred IPv6 DNS server 2001:4860:4860:8844
Alternate IPv6 DNS server 2001:4860:4860:0:0:0:0:8844

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@posidoni
posidoni / GitCommitEmoji.md
Created May 27, 2022 16:24 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@posidoni
posidoni / ANSI-color-codes.h
Created May 7, 2022 12:51 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@posidoni
posidoni / ANSI-color-codes.h
Created May 7, 2022 12:51 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@posidoni
posidoni / GoogleDorking.md
Created December 17, 2021 09:13 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@posidoni
posidoni / gh-pages-deploy.md
Created November 6, 2021 19:52 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).