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 { promisify } = require('util'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const jimp = require('jimp'); | |
const mm = require('music-metadata'); | |
const Id3Writer = require('browser-id3-writer'); | |
const start = Date.now(); | |
const writeFile = promisify(fs.writeFile); |
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
#!/usr/bin/env bash | |
echo "noop noop" |
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
#!/usr/bin/env bash | |
# Global variables. | |
artifactDownloadLink="https://eccel.co.uk/wp-content/downloads/rfidb1-tool.zip" | |
# Color variables. | |
default='\e[00;0m' | |
red='\e[00;31m' | |
green='\e[00;32m' | |
magenta='\e[00;35m' |
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 <stdio.h> | |
#define ITERATIONS 10 | |
typedef struct | |
{ | |
double a; | |
double b; | |
} motor_props_t; |
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
sudo apt install mingw-w64 | |
x86_64-w64-mingw32-g++ main.cpp -o primer.exe --static | |
./primer.exe | |
# prints only on Windows: g++ on Windows rocks |
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
#!/usr/bin/env bash | |
# check if script is run via sudo | |
if [ "$EUID" -ne 0 ] | |
then echo "This script must be run via sudo." | |
exit | |
fi | |
echo "" | |
echo ">> Updating package list ..." |
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
sudo apt update && sudo apt upgrade | |
sudo apt install -y g++ |
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
g++ main.cpp -o primer.exe | |
./primer.exe | |
# prints: g++ on Windows rocks |
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
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux |
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
lxrun /uninstall /full |