- Right click Solution and click Add New Project
- Select Setup Project under Other Project Types and click OK
- Right click installer project and click Add > Project Output
- Select Primary output and any other targets.
- If necessary, select Add > Files (ie. for icon, PDFs, other scripts, etc.)
- Fill in properties for installer project (ie. Company, Version, etc.)
- Note: Version must be different for RemovePreviousVersion to work!
- Right click Primary output... and select Properties
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
//macro for detection af rasing edge | |
#define RE(signal, state) (state=(state<<1)|(signal&1)&3)==1 | |
//macro for detection af falling edge | |
#define FE(signal, state) (state=(state<<1)|(signal&1)&3)==2 | |
// Usage: | |
const int btn = 11; //btn pin | |
int btnState; | |
... |
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
// Step 1: Go to forms designer, set AutoScaleMode property from Font (default) to Dpi | |
// Step 2: Add the following to Program.cs | |
static class Program | |
{ | |
[STAThread] | |
static void Main() | |
{ | |
if (Environment.OSVersion.Version.Major >= 6) | |
SetProcessDPIAware(); |
- In repository, create ssh key pair under Settings > Pipelines > SSH Keys
- Add public key to through Google Cloud Platform compute engine admin console. Can't just add to
~/.ssh/authorized_keys
because GCP must have some firewall settings that can't be bypassed. - Optional: Add public key to repository under General > Access Keys. (Don't know if this is necessary though)
- Add deployment step to
bitbucket-pipelines.yml
.
Example file:
image: python:3.7.2
To write the output of a command to a file, there are basically 10 commonly used ways.
Please note that the n.e. in the syntax column means "not existing".
|| visible in terminal || visible in file || existing
Syntax || StdOut | StdErr || StdOut | StdErr || file
==========++==========+==========++==========+==========++===========
> || no | yes || yes | no || overwrite
>> || no | yes || yes | no || append
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
# Turn wifi off | |
iwconfig wlan0 txpower off | |
# Turn wifi back on | |
iwconfig wlan0 txpower auto | |
# Turn USB off | |
echo 0 | sudo tee /sys/devices/platform/soc/20980000.usb/buspower >/dev/null | |
# Turn USB on |
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
/** | |
* @name someFunction | |
* @author | |
* | |
* Basic usage: | |
* var someFunction = new SomeFunction(); | |
* someFunction.init(); | |
* | |
* additionally you can use methods like someFunction.methodName(); | |
* |
Check if id_rsa.pub exists:
ls ~/.ssh
Generate new SSH keys (press enter all the way through):
ssh-keygen