All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
# -------- | |
# Hardware | |
# -------- | |
# Opcode - operational code | |
# Assebly mnemonic - abbreviation for an operation | |
# Instruction Code Format (IA-32) | |
# - Optional instruction prefix | |
# - Operational code |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { | |
cmd.exe /c "call `"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd`" /x64 && call `"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat`" x86_amd64 && set > %temp%\vcvars.txt" | |
} else { | |
cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt" | |
} | |
Get-Content "$env:temp\vcvars.txt" | Foreach-Object { | |
if ($_ -match "^(.*?)=(.*)$") { | |
Set-Content "env:\$($matches[1])" $matches[2] | |
} |
One of the most annoying things about C++ is the incompatibility with C's void *
conversion. In C, void *
can be cast implicitly to any pointer type, but C++ needs an explicit cast.
Most C code is valid C++ code, but the most common issue is malloc
, which returns void *
.
For example, this is valid C code, but not valid C++ code:
struct Foo *x = malloc(sizeof(struct Foo));