const { promisify } = require('util');
const exec = promisify(require('child_process').spawn)
const execShPromise = require("exec-sh").promise;
const getActor = async () => {
const pr_actor = await exec('echo $actor', {
// cwd: process.cwd(),
const { exec } = require('child_process')
const { promisify } = require('util')
const chalk = require('chalk')
// See: https://docs.npmjs.com/about-audit-reports#severity
const SEVERITY_LEVELS = ['low', 'moderate', 'high', 'critical']
const SEVERITY_THRESHOLD = 'critical'
const run = promisify(exec)
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 | |
# Global variable declarations | |
format="json" | |
directories=() | |
current_directory=`pwd` | |
report_directory="${current_directory}/report/" | |
fresh_report_directory="0" | |
# usage |
These instructions are based on this article: https://docs.gitea.io/en-us/install-from-source/.
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
Use Noobs to install Raspian.
Open menu Preferences > Raspberry Pi Settings
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
BEGIN MESSAGE. | |
9ezRyUqBheL8D0I UkRzxTVUvkNo4yt UyS6JRqCDfPGCWJ mczeYF8gdlZNYKC | |
KNbQPKkALMAsxkK YrYhPLghGxNTCKq 6Xr2MZHgg6jieEk 0V6XGeuqSqLrail | |
WrJl3sBD0OW1mWI d2vX48EKAPzRUGc ZQMsXBZdSu5UTvk tjZe7rsR5HbpSOM | |
GypcZveU4oRVtk8 1N0VO1LL4s9I8qx aWn3B0aLMzWSiL. | |
END MESSAGE. |
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
# Command to download file via bittorrent magnet link using aria2. | |
# See website and documentation at https://aria2.github.io | |
# -d specifies the directory to store the downloaded file | |
# --seed-time=0 disables seeding after download has completed | |
aria2c -d ~/Downloads --seed-time=0 "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C" |
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
## | |
If you got `127.0.0.53` in your `/etc/resolv.conf` pls consider to disable `systemd-resolved` | |
``` | |
sudo systemctl disable systemd-resolved | |
sudo systemctl stop systemd-resolved | |
``` |