- ingnore current wife network
iwgetid --ap --raw >> /etc/theta_wg/ignore.txt
- Download the tray icone
wget https://dashboard.snapcraft.io/site_media/appmedia/2018/11/unnamed.png -O /root/wg.png
'use strict'; | |
const fs = require('fs') | |
const axios = require('axios'); | |
const AcmeClient = require('acme-client'); | |
const conf = require('../conf/conf'); | |
const sleep = require('./sleep'); | |
// https://dns.google/resolve?name=${name}&type=TXT |
'use strict'; | |
const axios = require('axios'); | |
const conf = require('../conf/conf'); | |
class PorkBun{ | |
baseUrl = 'https://api.porkbun.com/api/json/v3'; | |
constructor(apiKey, secretApiKey){ | |
this.apiKey = apiKey; |
## Run as sudo | |
apt install xrdp xorgxrdp -y | |
sudo service xrdp start | |
echo "mate-session" > /home/mint/.xsession | |
## Install sound support form xrdp | |
## When the software sources opens, enable "Source Code Respositores" |
class Node{ | |
constructor(value, next){ | |
this.value = value; | |
this.next = null; | |
} | |
} | |
class LinkedList{ | |
constructor(...items){ |
'use strict'; | |
const { Model } = require('sequelize'); | |
module.exports = (sequelize, DataTypes) => { | |
class AuthToken extends Model { | |
/** | |
* Helper method for defining associations. | |
* This method is not a part of Sequelize lifecycle. | |
* The `models/index` file will call this method automatically. | |
*/ |
const Module = require('module'); | |
const original_resolveFilename = Module._resolveFilename; | |
Module._resolveFilename = function(...args){ | |
args[0] = args[0].startsWith('>') ? args[0].replace('>', __dirname) : args[0]; | |
return original_resolveFilename(...args); | |
}; |
/** | |
* A generator function that manages concurrent execution of promises and yields their results or errors. | |
* @param {Function} promiseFactory - A function that returns a promise when called. | |
* @param {number} want - The total number of promises to execute. | |
* @param {number} delay - The delay (in milliseconds) to wait when reaching the concurrency limit. | |
* @param {Array} ...args - Additional arguments to pass to the promiseFactory function. | |
* @yields {Array} - Yields an array containing either an error or the result of each promise. | |
*/ | |
async function* whenReady(promiseFunc, want, delay, ...args) { | |
let working = 0; // Number of promises currently executing. |
#!/usr/bin/env python3 | |
import re, os | |
from subprocess import getoutput | |
keys = [ | |
"ECC corrected fast", | |
"ECC corrected delayed", | |
"ECC reread/rewrites", | |
"Total errors corrected", |
upload=true&script=true&cardinfo= | |
!!################################ | |
!!ALSA Information Script v 0.5.1 | |
!!################################ | |
!!Script ran on: Mon Oct 24 19:23:47 UTC 2022 | |
!!Linux Distribution | |
!!------------------ |
iwgetid --ap --raw >> /etc/theta_wg/ignore.txt
wget https://dashboard.snapcraft.io/site_media/appmedia/2018/11/unnamed.png -O /root/wg.png