usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -M "55534243123456780000000000000011062000000100000000000000000000"
usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -J
# OpenVPN Let's Encrypt first run config file | |
#https://loige.co/using-lets-encrypt-and-certbot-to-automate-the-creation-of-certificates-for-openvpn/ | |
cert-name= | |
authenticator = standalone | |
standalone-supported-challenges = tls-sni-01 | |
non-interactive = True | |
rsa-key-size = 4096 | |
email = "user@server.com" | |
domains = "vpn.server.com" |
from flask import Flask, request, jsonify | |
import json | |
from printToPrinter import printToPrnter | |
import textwrap | |
app = Flask(__name__) | |
@app.route('/') |
import os, sys | |
import subprocess | |
def printToPrnter(name, city): | |
data = "^XA" \ | |
"^FO200,30^ADN,30,20^FB400,3,0,C^FD"+name+"^FS" \ | |
"^FO200,80^ADN,30,20^FB400,3,0,C^FD"+city+"^FS" \ | |
"^XZ" | |
try: |
fetch('http://localhost') | |
.then((response) => { | |
console.log('response ', response) | |
if (response.status === 200) { | |
console.log('success') | |
} else { | |
console.warn('error') | |
} | |
}) | |
.catch((error) => { |
# Version 1.2 :: This script reads offline event logs, oldest to newest, bottom to top. | |
# See http://www.trimideas.com/2015/04/auditing-changed-deleted-files.html for instructions. | |
$LogPath = "C:\Event_Logs\" | |
$ReportPath = "C:\Audit\File-Audit-Reports\" | |
$Formatted_Date = (Get-Date -UFormat %A-%B-%d-at-%I-%M-%S%p) | |
$ZipName = "Security-Events-for-" + (Get-Date -UFormat %A-%B-%d) + ".zip" | |
$Report_in_CSV = $ReportPath + "Audit of changed files on " + $Formatted_Date + ".csv" | |
$Truncated_Log_Path = $LogPath + "Archive-Security_on_" + $Formatted_Date + ".evtx" | |
$Today_Midnight = (Get-Date -Hour 0 -Minute 0 -Second 0) |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
map $http_user_agent $outdated { | |
default 0; | |
"~MSIE [1-10]\." 1; |
var AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'us-east-1' }); | |
var s3 = new AWS.S3(); | |
var obj = { | |
firstname: "Navjot", | |
lastname: "Dhanawat" | |
}; | |
var buf = Buffer.from(JSON.stringify(obj)); |
# Defaults / Configuration options for homebridge | |
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) | |
HOMEBRIDGE_OPTS=-U /var/lib/homebridge | |
# If you uncomment the following line, homebridge will log more | |
# You can display this via systemd's journalctl: journalctl -f -u homebridge | |
# DEBUG=* |