I hereby claim:
- I am phwelo on github.
- I am dagans (https://keybase.io/dagans) on keybase.
- I have a public key whose fingerprint is AA7E 6DF4 0B4D 5421 AA5E 4241 FF26 008E 44E0 4005
To claim this, I am signing this object:
| set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value accipiter.png |
| ;Create Menu | |
| Menu, MyMenu, Add, Attempt 1, attempt1 | |
| Menu, MyMenu, Add, Attempt 2, attempt2 | |
| Menu, MyMenu, Add, Attempt 3, attempt3 | |
| Menu, MyMenu, Add ; Add a separator line. | |
| Menu, Mymenu, Add, Already Resolved, resolved | |
| Menu, Mymenu, Add, Assigned Attempt, assigned | |
| Menu, MyMenu, Add, CMD, PSEXEC | |
| ; Create Submenu Items | |
| Menu, Submenu1, Add, Emailer 1, email1 |
| REM Checking outlook 365's SPF records from Google's public DNS at 8.8.8.8 | |
| nslookup -query=all -type=TXT spf.protection.outlook.com 8.8.8.8 |
| psexec –I –d –s cmd |
I hereby claim:
To claim this, I am signing this object:
| - Arts: | |
| - Design | |
| - Fashion & Beauty | |
| - Food | |
| - Literature | |
| - Performing Arts | |
| - Spoken Word | |
| - Visual Arts | |
| - Business: | |
| - Business News |
| require "net/https" | |
| url = URI.parse("https://api.pushover.net/1/messages") | |
| req = Net::HTTP::Post.new(url.path) | |
| req.set_form_data({ | |
| :token => "abc123", | |
| :user => "user123", | |
| :message => "hello world", | |
| }) | |
| res = Net::HTTP.new(url.host, url.port) |
| #Example: Output-FixedLengthString 5 10 | |
| #Output will be: 00010 | |
| Function Output-FixedLengthString{ | |
| param( [int]$EndLength, [string]$StrSubject ) | |
| do { $StrSubject = "0$StrSubject" | |
| $length = $StrSubject.length | |
| } until ($length -eq $EndLength) | |
| return $StrSubject | |
| } |
| def findADriveLetter() | |
| reverseAlphabet = ["Z", "Y", "X", "W", "V", "U", "T", "S", "R", "Q", "P", "O", "N", "M", "L", "K", "J", "I", "H", "G", "F", "E", "D", "C", "B", "A"] | |
| reverseAlphabet.each { |letter| | |
| if File.exist?("#{letter}:\\") | |
| return letter | |
| break | |
| end | |
| } | |
| end |
| def search_services(searchString) | |
| psRepoCheck = "(Get-Service -name \"*" + searchString + "*\"|ConvertTo-Json)" | |
| repoCheck = powershell_out!(psRepoCheck).stdout | |
| if repoCheck && repoCheck.length >= 2 | |
| svc_hash = JSON.parse(repoCheck) | |
| svc_hash.each do |service| | |
| if service['DisplayName'].include? searchString | |
| case service['Status'] | |
| when 1 | |
| service[:statusString] = "Stopped" |