Replace yourdomain
with your service now URL. User must have the rest_service
role.
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
import json | |
from bson import json_util # pip install pymongo | |
from datetime import datetime | |
from rightmove_webscraper import rightmove_data | |
class rightmove_list(list): | |
def __init__(self, rightmove_object_results): | |
new_list = [] | |
for key in rightmove_object_results.keys(): |
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
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
function Unzip | |
{ | |
param([string]$zipfile, [string]$outpath) | |
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) | |
} | |
Invoke-WebRequest -Uri https://s3.amazonaws.com/ec2-downloads-windows/EC2Config/EC2Install.zip -UseBasicParsing -OutFile "$env:temp\EC2Install.zip" |
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 __future__ import division | |
import sys | |
import collections | |
import boto3 | |
import pprint | |
import re | |
from datetime import datetime, timedelta | |
ec2 = boto3.client('ec2', region_name='eu-west-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
#!/usr/bin/env python2 | |
from __future__ import print_function | |
import sys, re | |
from pprint import pprint | |
from collections import OrderedDict | |
import sys | |
def eprint(*args, **kwargs): | |
print(*args, file=sys.stderr, **kwargs) |
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
$RadarrURL = 'http://127.0.0.1:7878' | |
$RadarrAPIKey = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaa' | |
#$MovieName = "I Called Him Morgan" | |
$qualityProfileId = 1 | |
$rootFolderPath = '/data/Movies/' | |
$rottenTomatoesLink = 'https://www.rottentomatoes.com/top/bestofrt/?year=2017' | |
function Search-RadarrForFilm{ |
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
if(!$creds){ | |
$creds = get-credential | |
} | |
$url = "http://zabbix.example.com" | |
$payload = @{ | |
jsonrpc = "2.0" | |
method = "user.login" | |
params = @{ | |
user = $creds.UserName |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"$$hashKey": "object:1373", | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 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
if(test-path C:\chef\){ | |
Write-Host "C:\chef exists!" | |
Start-Sleep -Seconds 3600 | |
} | |
Set-ExecutionPolicy unrestricted -force | |
$VerbosePreference = 'continue' | |
$InstallPS1 = "https://omnitruck.chef.io/install.ps1" | |
$InstallPS1LocalPath = "$env:temp\install-chef.ps1" | |
$orgName = 'CHEF ORG NAME' | |
$ChefPackageUri = 'https://packages.chef.io/files/stable/chef/12.21.31/windows/2012r2/chef-client-12.21.31-1-x64.msi' |
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 pyzabbix import ZabbixAPI | |
import os | |
import json | |
import logging, sys | |
from pprint import pprint | |
# | |
# | |
# WARNING | |
# THIS |