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 <poll.h> | |
#include <signal.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <termios.h> | |
#include <time.h> | |
#include <unistd.h> | |
/* Base configuration definitions to avoid magic values */ |
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
#!/usr/bin/env bash | |
set -e | |
# Configuration | |
# Partitioning | |
DEVICE="/dev/sdd" # Please make sure it's correct, the script won't ask you for any confirmation. | |
FIRMWARE_MODE=auto # uefi, bios, auto | |
SWAP_SIZE=4096MiB | |
# Time and date |
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
{"contents":{"launch":{"version":"0.2.0","configurations":[{"type":"node","request":"launch","name":"Launch via NPM","runtimeExecutable":"npm","runtimeArgs":["run-script","debug"],"port":9229},{"type":"node","request":"attach","name":"Attach to Remote","address":"localhost","port":9229,"localRoot":"${workspaceFolder}","remoteRoot":"${workspaceFolder}/backend/dist/index.js"},{"type":"node","request":"launch","name":"Launch Program","program":"${workspaceFolder}/backend/src/config/socket.io.ts","outFiles":["${workspaceFolder}/**/*.js"]}]}},"overrides":[],"keys":["launch.version","launch.configurations"]} |
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
package main | |
import ( | |
"fmt" | |
"github.com/faiface/beep/mp3" | |
"github.com/faiface/beep/speaker" | |
"image" | |
"image/color" | |
"image/jpeg" | |
"io/ioutil" |