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 nano /etc/modprobe.d/iwlwifi.conf | |
options iwlwifi power_save=0 | |
options iwlwifi 11n_disable=1 | |
sudo update-initramfs -u | |
sudo reboot |
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
'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 |
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
'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; |
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
## 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" |
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
class Node{ | |
constructor(value, next){ | |
this.value = value; | |
this.next = null; | |
} | |
} | |
class LinkedList{ | |
constructor(...items){ |
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
'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. | |
*/ |
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 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); | |
}; |
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
/** | |
* 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. |
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 python3 | |
import re, os | |
from subprocess import getoutput | |
keys = [ | |
"ECC corrected fast", | |
"ECC corrected delayed", | |
"ECC reread/rewrites", | |
"Total errors corrected", |
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
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 | |
!!------------------ |
NewerOlder