Skip to the relevant sections if needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Copyright: © 2015 Jeffrey Clark <https://github.com/h0tw1r3/> | |
# License: GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html) | |
# | |
set -o errtrace | |
error() { | |
echo "ERROR in $0 : line $1 exit code $2" | |
exit $2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW64 here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW32 here] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* libsig.h - Trivial signal/callback library. | |
* | |
* Copyright (c) 2015 Matthew Brush <[email protected]> | |
* You can use this code under the MIT license as described here: | |
* https://opensource.org/licenses/MIT | |
* | |
* To create a signal, declare member variables of type | |
* `libsig::signal<...>` in your class. The template parameter is the | |
* argument types that will be passed to the callback functions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://wiki.wxwidgets.org/CMake | |
PROJECT(Test) | |
SET(wxWidgets_USE_LIBS) | |
FIND_PACKAGE(wxWidgets) | |
IF(wxWidgets_FOUND) | |
INCLUDE("${wxWidgets_USE_FILE}") | |
ADD_EXECUTABLE(MyTest WIN32 main.cpp) | |
# and for each of your dependant executable/library targets: | |
TARGET_LINK_LIBRARIES(MyTest ${wxWidgets_LIBRARIES}) | |
ELSE(wxWidgets_FOUND) |
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Things in C/C++ that are hard to parse | |
====================================== | |
Type names | |
---------- | |
C is "mostly" LL(1) and generally relatively straightforward to parse. The primary | |
unncessary complication is that parsing C requires keeping a symbol table during | |
parsing that knows whether a given identifier in the current scope refers to a type | |
name or not. Take this example snippet: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2016-2017 Soverance Studios. | |
# Scott McCutchen | |
# This file will search all files and folders within a given directory, and use Notepad++ to convert their encoding to UTF-8 without Byte Order Marks | |
# | |
# This file must be run using the PythonScript plugin from within Notepad++, which is available through the Notepad++ Plugin Manager | |
# | |
# You must have Python 2.7 installed | |
# | |
# Additionally, this script can only exist and be run from within the Notepad++ user's working directory, the default of which is here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global http.proxy 'socks5://127.0.0.1:1080' | |
git config --global https.proxy 'socks5://127.0.0.1:1080' |