This file contains 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 | |
#============================================================================== | |
#title :example_bash_script | |
#description :This script is an example of some basic functions | |
#author :John Doe | |
#organization :My example organization | |
#date :20231128 | |
#============================================================================== |
This file contains 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 <PPMReader.h> | |
#include <Joystick.h> | |
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID, JOYSTICK_TYPE_GAMEPAD, | |
4, 0, // Button Count, Hat Switch Count | |
true, true, false, // X, Y, Z Axis | |
true, true, false, // Rx, Ry, Rz | |
true, true, // rudder or throttle | |
false, false, false); // accelerator, brake, or steering |
This file contains 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
[Unit] | |
Description=VNC Server for X11 | |
Requires=display-manager.service | |
After=syslog.target network-online.target ##optional for better performance | |
Wants=syslog.target network-online.target ##optional for better performance | |
[Service] | |
ExecStart=/usr/bin/x11vnc -display :0 -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/<my-user>/.vnc/passwd -rfbport 5900 -shared | |
ExecStop=/usr/bin/x11vnc -R stop | |
Restart=on-failure |
This file contains 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
[Unit] | |
Description=VirtualBox VM %I | |
After=network.target vboxdrv.service | |
Before=runlevel2.target shutdown.target | |
[Service] | |
User=<my-user> | |
Group=vboxusers | |
Type=forking | |
Restart=no |
This file contains 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
[Unit] | |
Description=Start TightVNC server at startup | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
User=<my-user> | |
Group=<my-user> | |
WorkingDirectory=/home/<my-user> |