src: https://www.stationx.net/nmap-cheat-sheet
| Switch | Example | Description |
src: https://www.stationx.net/nmap-cheat-sheet
| Switch | Example | Description |
| #!/bin/bash | |
| # Quick script to disable an internal webcam if an external one is attached, or | |
| # enable the internal one if the external one's not attached. | |
| # by Shimon Rura, 25 Jan 2018. In the public domain. | |
| # To use, run `lsusb` and identify the lines for your internal and external camera devices. | |
| # For example, mine are: | |
| # internal: |
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <string> | |
| #include <algorithm> | |
| #include <chrono> | |
| #include <functional> | |
| #define GLFW_INCLUDE_VULKAN | |
| #include <GLFW/glfw3.h> |
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
| colorscheme desertex | |
| ########### | |
| # Plugins # | |
| ########### | |
| source "%val{config}/plugins/plug.kak/rc/plug.kak" | |
| plug "andreyorst/plug.kak" branch "dev" noload | |
| plug "andreyorst/fzf.kak" | |
| plug "occivink/kakoune-sudo-write" |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| ############################################################################### | |
| # Author: ddnomad | |
| # Version: 1.1.2 | |
| # Last Update: 2020-06-16 | |
| # | |
| # External contributors: | |
| # - u/momasf (https://www.reddit.com/user/momasf) - an excellent | |
| # tip to use 'reflector' to speed up downloads during the base | |
| # installation | |
| # - eXhumer (https://github.com/eXhumer) - Fixes for things that |
| version: '3' | |
| services: | |
| reverse-proxy: | |
| image: traefik:v2.0 | |
| restart: always | |
| container_name: traefik | |
| command: | |
| - "--api=true" | |
| - "--providers.docker=true" |