Skip to content

Instantly share code, notes, and snippets.

View omersiar's full-sized avatar

Ömer Şiar Baysal omersiar

  • Earth
View GitHub Profile
^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?:\.){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$
# frozen_string_literal: true
require 'rest-client'
require 'json'
# Let there be more verbosity
debug_m = false
@ipam_user = vm_provisioning_config['ipam_user']
@ipam_password = vm_provisioning_config.decrypt('ipam_password')
UEsDBBQACAgIABU9ik8AAAAAAAAAAAAAAAAnAAAAdG9wX2FwcGxpY2F0aW9uX2J5X3VzYWdlLmxvZy4yMDE5LTEyLTA0rdDNaoNAFAXgfZ7iPsAo83MdNTu7CHRhKylZlBCCGSd1ipkZHKXN2zfJplBEKLg+h8PH4ZTlEeMRRaB0jcmaSpJmCPuyNrbqndIhHOD5ZfMKg/OF951R9WCcfbruQv2hYX+ACLb63OvQgnLdeLEBzq6HoqqOb7uyLLbvR3ZLLr7Tg24INGP/WACM0zwTnEHQytkmrPhfDKNEJnRhDJ/EiDiTmIp8BiMIY0s/IyYxPEYpkCczGCTs9tyyGJzEsJhSmaGYwUjCE/5PzMZYE1rd3DtQ/5bgdIXxUft0J/gyQ+vGAfS30v4eh9UPUEsHCDHzDbzqAAAAswIAAFBLAwQUAAgICAAVPYpPAAAAAAAAAAAAAAAAHAAAAHRvcF9hcHBsaWNhdGlvbl9ieV91c2FnZS5sb2e90kFrwjAUwPH7PsX7AGnJy0vSxps7CDu4icPDEJHaxrVDm9K0bH77qRPGRldwFM955P1I/oKjCVAEyIHzkVQjrlkUIyynSVHOapda71fw8Dh5gsZV46raFWnSFK68Pyx88mphuYIA5nZbW59D6nbtvvSwdTWMZ7P182I6Hc9f1ng82Vc729iMQdbW5xtAhrHiEgm8TV2Z+TvxG4Oc6WhojOjEUBjHhkj2YIgJUgNjqBMjQqWJC9GDkUyooTGyE4PhcXlk+r5JM1J0JWZSlIXPbXaageR7CDYHaM9jb24D70WTu7YB+5Ha6nT8Yz3yEUanj0E99Fv8lSwJKRG73uKC0UyrWyUrY6mps5ILxjCO+kbJklZa9mOMkTdJlocmipB3JvuFEYLx+Npm/p3sJ1BLBwhKgJGELgEAAGYFAABQSwMEFAAICAgAFT2KTwAAAAAAAAAAAAAAACEAAABpbnN0YWxsZWRfYXBwc19waWkubG9nLjIwMTktMTItMDXNkLFqwzAURfd+
function Invoke-SQL {
param(
[string] $dataSource = "AIDCSVSWSQL01",
[string] $database = "SolarWindsOrion",
[string] $sqlCommand = $(throw "Please specify a query.")
)
$connectionString = "Data Source=$dataSource; " +
"Integrated Security=SSPI; " +
"Initial Catalog=$database"
@omersiar
omersiar / rpm
Created December 24, 2019 08:21
http://mirror.centos.org/centos/7/os/x86_64/Packages/tzdata-2019b-1.el7.noarch.rpm
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
adb shell pm uninstall -k --user 0 com.google.android.music
adb shell pm uninstall -k --user 0 com.google.android.videos
adb shell pm uninstall -k --user 0 com.android.browser
adb shell pm uninstall -k --user 0 com.miui.bugreport
adb shell pm uninstall -k --user 0 com.miui.compass
adb shell pm uninstall -k --user 0 com.miui.notes
adb shell pm uninstall -k --user 0 com.miui.screenrecorder
adb shell pm uninstall -k --user 0 com.miui.videoplayer
adb shell pm uninstall -k --user 0 com.miui.player
- hosts: localhost
module_defaults:
group/k8s:
host: "https://api.ocppreprod.aefesopenshift.com:6443"
validate_certs: false
vars:
user_login: *****
user_pass: ****
- name: Provision VMs
hosts: localhost
connection: local
gather_facts: no
vars:
delimiter: '\'
domain_username: "{{ lookup('env','VMWARE_USER').split(delimiter)[-1] }}"
tasks:
- set_fact:
dialog_params: "{{ dialog_options | from_json }}"
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Ansible Project
# Copyright: (c) 2019, Pavan Bidkar <pbidkar@vmware.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import uuid
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ZT CloudForms</title>
<style>
@media only screen and (max-width: 620px) {
table[class=body] h1 {