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
enum UserRight { | |
SeAssignPrimaryTokenPrivilege # Replace a process level token | |
SeAuditPrivilege # Generate security audits | |
SeBackupPrivilege # Back up files and directories | |
SeBatchLogonRight # Log on as a batch job | |
SeChangeNotifyPrivilege # Bypass traverse checking | |
SeCreateGlobalPrivilege # Create global objects | |
SeCreatePagefilePrivilege # Create a pagefile | |
SeCreatePermanentPrivilege # Create permanent shared objects | |
SeCreateSymbolicLinkPrivilege # Create symbolic links |
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
using System; | |
using System.Configuration; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.KeyVault; // Install-Package Microsoft.Azure.KeyVault | |
using Microsoft.IdentityModel.Clients.ActiveDirectory; // Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory | |
namespace KeyVaultSample | |
{ | |
class Program |
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 python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
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
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
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
#!/bin/sh | |
truncate -s0 ${HOME}/.xsession-errors | |
configDir=${HOME}/.config | |
mkdir -p $configDir | |
cat >$configDir/startupconfigkeys <<EOF | |
kcminputrc Mouse cursorTheme 'breeze_cursors' | |
kcminputrc Mouse cursorSize '' |
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 urllib import urlopen | |
from lxml.html import parse | |
''' | |
Returns a tuple (Sector, Indistry) | |
Usage: GFinSectorIndustry('IBM') | |
''' | |
def GFinSectorIndustry(name): | |
tree = parse(urlopen('http://www.google.com/finance?&q='+name)) | |
return tree.xpath("//a[@id='sector']")[0].text, tree.xpath("//a[@id='sector']")[0].getnext().text |
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
using System; | |
using System.ComponentModel; | |
using System.Globalization; | |
using Microsoft.VisualStudio.TestTools.WebTesting; | |
using Newtonsoft.Json.Linq; | |
namespace Amido.PerformanceTests.Common { | |
[DisplayName("JSON Extraction Rule")] | |
[Description("Extracts the specified JSON value from an object.")] | |
public class JsonExtractionRule : ExtractionRule { |
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
# Compare-Directory.ps1 | |
# Compare files in one or more directories and return file difference results | |
# Victor Vogelpoel <[email protected]> | |
# Sept 2013 | |
# | |
# Disclaimer | |
# This script is provided AS IS without warranty of any kind. I disclaim all implied warranties including, without limitation, | |
# any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or | |
# performance of the sample scripts and documentation remains with you. In no event shall I be liable for any damages whatsoever | |
# (including, without limitation, damages for loss of business profits, business interruption, loss of business information, |
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
using Microsoft.TeamFoundation.Client; | |
using Microsoft.TeamFoundation.Framework.Client; | |
using Microsoft.TeamFoundation.Framework.Common; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml; |
NewerOlder