View link_binaries.sh
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
for bin in *; do ln -s "/opt/jdk-17.0.2+8/bin/$bin" "/usr/bin/$bin"; done |
View rebuild_dkms_modules.sh
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
ls /var/lib/initramfs-tools | \ | |
sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start |
View webpack.config.js
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
const encore = require("@symfony/webpack-encore"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const frontend = path.join(__dirname, "frontend/"); | |
const output = path.join(__dirname, "public", "build"); | |
// Checks whether NODE_ENV is set to dev/development, otherwise defaults to production. | |
const env = ["dev", "development"].includes(String(process.env.NODE_ENV).toLowerCase()) | |
? "development" |
View _deploy.js
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
/** | |
* Script that deploys the application to an FTP/SFTP server. | |
*/ | |
const {params, credentials, deploy: deployConfig} = require("./utils") | |
const {exec} = require("better-exec"); | |
const {Deploy} = require("@vottuscode/deploy-script"); | |
const {SftpFileRemote} = require("@remotefull/file"); | |
const {SshCmdRemote} = require("@remotefull/commander"); | |
const deploy = new Deploy( |
View apt-manager.js
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
const {BaseCmdRemote} = require("@remotefull/commander/dist/remote/BaseCmdRemote") | |
class AptCommandError extends Error { | |
/** | |
* Raw command output. | |
* @type {string[]|null} | |
*/ | |
rawOut; | |
/** |
View remove_ps_eval.sh
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
rm ~/.config/JetBrains/PhpStorm*/options/other.xml | |
rm ~/.config/JetBrains/PhpStorm*/eval/* | |
rm -rf .java/.userPrefs |
View build.sh
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/sh | |
set -eux | |
v="$1" | |
mkdir -p build | |
cd build | |
npm init --yes | |
npm i "pkg" --dev |
View bump-deps-major.js
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
const { exec } = require('child_process') | |
const path = require('path') | |
const glob = require('glob').sync | |
const bumpDeps = async (depsList, dev = false, workspace) => { | |
for (const dependency in depsList) { | |
await new Promise((resolve, reject) => { | |
const _workspace = workspace ? `workspace ${workspace}` : '-W' | |
const _devFlag = dev ? '-D' : '' |
View nohiber.sh
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
if ! [ $(id -u) = 0 ]; then | |
echo "You need to run this script as root (or use sudo)." >&2 | |
exit 1 | |
fi | |
if grep -qs '/dev/sda4 ' /proc/mounts; then | |
echo '/dev/sda4 is already mounted, proceeding to unmount' | |
umount /dev/sda4 | |
if [ $? -eq 0 ]; then |
View build.gradle.kts
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
tasks.withType<JavaCompile> { | |
options.encoding = "UTF-8" | |
} | |
tasks.withType<Javadoc>{ | |
options.encoding = "UTF-8" | |
} |
NewerOlder