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
#!/bin/bash | |
echo ”bye!” | |
reboot |
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
# List virtual machines | |
VBoxManage list vms | |
"MyVM" {e4b0c92c-4301-4a7d-8af8-fe02fed00451} | |
# Start VM in headless mode | |
VBoxManage startvm MyVM --type headless | |
# Power off VM | |
VBoxManage controlvm MyVM poweroff |
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
#!/bin/sh | |
########################################################################################## | |
# Create time date stamped log | |
########################################################################################## | |
logFile="/private/var/log/OurCompany.log" | |
log () { | |
/bin/echo $1 | |
/bin/echo $(date "+%Y-%m-%d %H:%M:%S: ") $1 >> $logFile |
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
#!/bin/sh | |
########################################################################################## | |
# Create time date stamped log | |
########################################################################################## | |
logFile="/private/var/log/OurCompany.log" | |
log () { | |
/bin/echo $1 | |
/bin/echo $(date "+%Y-%m-%d %H:%M:%S: ") $1 >> $logFile |
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
/opt/TurboVNC/bin/vncserver | |
roslaunch sjaak_nav explore.launch |
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 filter-branch --env-filter ' | |
WRONG_EMAIL="[email protected]" | |
NEW_NAME="New Name Value" | |
NEW_EMAIL="[email protected]" | |
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$NEW_NAME" | |
export GIT_COMMITTER_EMAIL="$NEW_EMAIL" | |
fi |
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
const int piezoPin = A0; | |
const int threshold = 600; | |
int sensorReading = 0; | |
int outputPin = 2; | |
void setup() { | |
pinMode(piezoPin, INPUT); | |
pinMode(outputPin, INPUT); | |
Serial.begin(9600); |
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
#include <SPI.h> | |
#include "SSD1306Spi.h" | |
// The OLED display width and height | |
#define int DISPLAY_HEIGHT = 64; | |
#define int DISPLAY_WIDTH = 128; | |
SSD1306Spi display(0,16,2); // RESET, DC, CS | |
byte count; |
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
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
#include <SPI.h> | |
#include "SSD1306Spi.h" | |
// Change here the ssid and password to your own. | |
const char *ssid = "SSID"; | |
const char *password = "password"; | |
String ss = ssid; |