(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #! /usr/bin/env python | |
| """ Convert values between RGB hex codes and xterm-256 color codes. | |
| Nice long listing of all 256 colors and their codes. Useful for | |
| developing console color themes, or even script output schemes. | |
| Resources: | |
| * http://en.wikipedia.org/wiki/8-bit_color | |
| * http://en.wikipedia.org/wiki/ANSI_escape_code |
| # -*- coding:utf-8 -*- | |
| import time | |
| from ctypes import * | |
| import win32gui, win32con | |
| PUL = POINTER(c_ulong) | |
| class KeyBdInput(Structure): |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: <SCRIPT_NAME> | |
| # Required-Start: $local_fs $network $named $time $syslog | |
| # Required-Stop: $local_fs $network $named $time $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: Script to run asp.net 5 application in background | |
| ### END INIT INFO |
| # This script can be used to generate a ca-cert.crt file that can be used by | |
| # Unix-based utilities like curl, git, ... | |
| # | |
| # It allows you to synchronize the root certificates (CA) based on the | |
| # certificates installed in your Windows certification stores. You can also | |
| # get a list from Mozilla, but I think it's convenient to have the same CA | |
| # certificates in all tools. | |
| # | |
| # Some examples on how to use this script: | |
| # |
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
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
| #Requires -Version 7 | |
| # Version 1.2.13 | |
| # check if newer version | |
| $gistUrl = "https://api.github.com/gists/a208d2bd924691bae7ec7904cab0bd8e" | |
| $latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version') | |
| $versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)" | |
| if ([System.IO.File]::Exists($latestVersionFile)) { |
| Windows Registry Editor Version 5.00 | |
| ; Windows terminal | |
| [-HKEY_CLASSES_ROOT\Directory\shell\MenuWindowsTerminal] | |
| [-HKEY_CLASSES_ROOT\Directory\background\shell\MenuWindowsTerminal] | |
| [-HKEY_CLASSES_ROOT\Directory\LibraryFolder\shell\MenuWindowsTerminal] |
| <?xml version="1.0"?> | |
| <!-- | |
| DualSense (DS5) USB HID Report Descriptor | |
| Documentation WIP | |
| TODO: Extract info from hid-playstation and cross-verify with us. | |
| --> |