I hereby claim:
- I am onesmartguy on github.
- I am onesmartguy (https://keybase.io/onesmartguy) on keybase.
- I have a public key ASAiRIZwK5VNFsA5nQUPIHDjBe2kwRCCgW850bqMfdLIRQo
To claim this, I am signing this object:
$InstallDir = "$env:USERPROFILE\.love" | |
$SourceZip = "$env:TEMP\love.zip" | |
$SourceZipTemp = "$env:TEMP\love" | |
$GitRepo = "https://api.github.com/repos/onesmartguy/idle-bot/zipball/" | |
$LogStart = 'Log ' | |
$LogDate = Get-Date -Format "dd-MM-yyy-hh-mm-ss" | |
$LogFileName = $LogStart + $LogDate + '.txt.' |
$API_KEY = "1E71E4E5-F2FD-44F4-B058-71C88E420096" | |
$API_DOMAIN = "https://help.calibercollision.com" | |
$API_REQUEST_SEARCH_PATH = $API_DOMAIN + "/api/v3/requests?TECHNICIAN_KEY=${API_KEY}&input_data={0}&format=json" | |
$API_REQUEST_PATH = $API_DOMAIN + "/api/v3/requests/{0}?TECHNICIAN_KEY=${API_KEY}&format=json" | |
$API_REQUEST_ATTACHMENT_PATH = $API_DOMAIN + "/api/v3/requests/{0}/attachments/{1}/download?TECHNICIAN_KEY=${API_KEY}" | |
Function ExcelToCsv ($File) { | |
$Excel = New-Object -ComObject Excel.Application | |
$wb = $Excel.Workbooks.Open($File) |
$API_KEY = "1E71E4E5-F2FD-44F4-B058-71C88E420096" | |
$API_DOMAIN = "https://help.calibercollision.com" | |
$API_REQUEST_SEARCH_PATH = $API_DOMAIN + "/api/v3/requests?TECHNICIAN_KEY=${API_KEY}&input_data={0}&format=json" | |
$API_REQUEST_PATH = $API_DOMAIN + "/api/v3/requests/{0}?TECHNICIAN_KEY=${API_KEY}&format=json" | |
$API_REQUEST_ATTACHMENT_PATH = $API_DOMAIN + "/api/v3/requests/{0}/attachments/{1}/download?TECHNICIAN_KEY=${API_KEY}" | |
Function ExcelToCsv ($File) { | |
$Excel = New-Object -ComObject Excel.Application | |
$wb = $Excel.Workbooks.Open($File) |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "PowerShell Launch Current File", | |
"type": "PowerShell", | |
"request": "launch", |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "PowerShell Launch Current File", | |
"type": "PowerShell", | |
"request": "launch", |
Param( | |
$solrVersion = "6.6.2", | |
$installFolder = "c:\solr", | |
$solrPort = "8983", | |
$solrHost = "solr", | |
$solrSSL = $true, | |
$nssmVersion = "2.24", | |
$JREVersion = "9.0.1" | |
) |
parameters: | |
packages: '' | |
options: '-y --no-progress --limitoutput' | |
steps: | |
- powershell: | | |
if ((Get-Command "choco.exe" -ErrorAction SilentlyContinue) -eq $null) { | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString("https://chocolatey.org/install.ps1")) | |
echo "##vso[task.setvariable variable=PATH]$env:PATH" | |
echo $env:PATH |
I hereby claim:
To claim this, I am signing this object:
// https://stackoverflow.com/questions/14521108/dynamically-load-js-inside-js | |
var loadJS = function(url, implementationCode, location){ | |
//url is URL of external file, implementationCode is the code | |
//to be called from the file, location is the location to | |
//insert the <script> element | |
var scriptTag = document.createElement('script'); | |
scriptTag.src = url; |
from time import sleep | |
import random | |
import os | |
os.system('clear') | |
def generatePassword(): | |
print("Generating password...") | |
password = "" |