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
#!/usr/bin/env python3 | |
import time | |
from twilio.rest import Client | |
# For $TWILIO_VOICE_RESPONSE_ENDPOINT , you have to setup some https POST endpoint , | |
# that can return a "twilio ml" "voice response" | |
# These are expressjs examples | |
# const VoiceResponse = require( "twilio" ).twiml.VoiceResponse; | |
# app.post( "/twiliocall" , function( req , res ) { |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import random , string , sys , warnings , json , os | |
if len( sys.argv ) < 2: | |
sys.exit( 1 ) | |
# https://coolsymbol.com/cool-fancy-text-generator.html | |
# var fonts = document.querySelectorAll( "input.font-preview-content" ); | |
# var to_copy = "" | |
# for ( let i = 0; i < fonts.length; ++i ) { |
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 process = require( "process" ); | |
const path = require( "path" ); | |
const child = require( "child_process" ); | |
const global_package_path = child.spawnSync( 'npm', [ 'root' , '-g' ] , { encoding: 'utf8' } ).stdout.trim(); | |
const request = require( path.join( global_package_path , "request" ) ); | |
const tmi = require( path.join( global_package_path , "tmi.js" ) ); | |
const JFODB = require( path.join( global_package_path , "jsonfile-obj-db" ) ); | |
const db = new JFODB( "already_blocked" ); | |
if ( !!!db.self.already_blocked ) { db.self.already_blocked = {}; db.save(); } |
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/bash | |
ufw disable | |
pkill letsencrypt,certbot | |
find / -type f -name ".certbot.lock" | |
find / -type f -name ".certbot.lock" -exec rm {} \; | |
/opt/letsencrypt/certbot-auto renew >> /var/log/letsencrypt-renewal.log | |
/bin/systemctl reload nginx | |
/usr/bin/certbot renew --nginx | |
ufw enable |
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
from subprocess import check_output | |
from threading import Timer | |
import os | |
# http://www.nirsoft.net/utils/nircmd.html | |
# http://www.nirsoft.net/utils/nircmd-x64.zip | |
NircCMD = os.path.join( "C:\\" , "Program Files" , "NirCmd" , "nircmd.exe" ) | |
NircCMD = '"' + NircCMD + '"' + " setvolume 1 " |
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
# https://stackoverflow.com/questions/36085055/batch-file-to-enable-disable-network-adapter | |
# netsh interface show interface | |
netsh interface set interface "Wireless network connection" DISABLED | |
TIMEOUT /T 5 | |
netsh interface set interface "Wireless network connection" ENABLED |
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 process = require( "process" ); | |
const path = require( "path" ); | |
const cp = require( "child_process" ); | |
function get_node_global_path() { | |
try { | |
const output = cp.spawnSync( "npm" , [ "root" , "-g" ] , { encoding : "utf8" } ); | |
return output.stdout.trim(); | |
} | |
catch( error ) { console.log( error ); process.exit( 1 ); } | |
} |
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 path = require( "path" ); | |
const process = require( "process" ); | |
const fs = require( "fs" ); | |
const cp = require( "child_process" ); | |
function get_node_global_path() { | |
try { | |
const output = cp.spawnSync( "npm" , [ "root" , "-g" ] , { encoding : "utf8" } ); | |
return output.stdout.trim(); | |
} | |
catch( error ) { console.log( error ); process.exit( 1 ); } |
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 cp = require( "child_process" ); | |
function get_node_global_path() { | |
try { | |
const output = cp.spawnSync( "npm" , [ "root" , "-g" ] , { encoding : "utf8" } ); | |
return output.stdout.trim(); | |
} | |
catch( error ) { console.log( error ); process.exit( 1 ); } | |
} | |
const NodeGlobalPath = get_node_global_path(); |
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 cp = require( "child_process" ); | |
function get_node_global_path() { | |
try { | |
const output = cp.spawnSync( "npm" , [ "root" , "-g" ] , { encoding : "utf8" } ); | |
return output.stdout.trim(); | |
} | |
catch( error ) { console.log( error ); process.exit( 1 ); } | |
} | |
const NodeGlobalPath = get_node_global_path(); |
NewerOlder