This file contains hidden or 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
bgr.com###dt-video-player | |
www.cnet.com###article-body > .col-4 | |
www.dailymail.co.uk##.mol-video.moduleFull | |
www.firstpost.com##.sidebar-video.panel-danger.panel | |
www.firstpost.com##.sidebar-video.panel | |
www.news18.com##.opinion-listing | |
www.news18.com##.wrapper > .opinion-listing | |
www.news18.com##.live-tv | |
www.news18.com##.resRightSide.section-blog-right | |
www.thesun.co.uk###sidebar |
This file contains hidden or 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
@ setlocal enableextensions | |
@ cd /d "%~dp0" | |
for /R %%a in (*.exe) do ( | |
netsh advfirewall firewall add rule name="Blocked with Batchfile %%a" dir=out program="%%a" action=block | |
) |
This file contains hidden or 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
$dir = 'D:\sample_folder' | |
$FileList = $dir + '\filelist.txt' | |
$BackupFolderName = (get-item $dir).BaseName + " Backup" | |
$BackupFolder = Join-Path $dir $BackupFolderName | |
New-Item -ItemType Directory -Force -Path $BackupFolder | |
$BackedFiles = Get-Content $FileList | |
$Files = Get-ChildItem -Path $dir -File | |
foreach ($file in $Files) | |
{ |
This file contains hidden or 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
$compareFolder = 'C:\sample_compare_folder' | |
$targetFolder = 'C:\sample_target_folder' | |
$compareFiles = Get-ChildItem -Path $compareFolder -File | |
$targetFiles = Get-ChildItem -Path $targetFolder -File | |
$targetFiles | Where-Object {$compareFiles.BaseName -contains $_.BaseName} | Remove-Item -Force |
This file contains hidden or 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
function UpdateDailyGoldValues() | |
{ | |
//Initialize website url and get content | |
var dinamalarWS = UrlFetchApp.fetch("http://business.dinamalar.com/gold_silver_rate.asp"); | |
var strs = dinamalarWS.getContentText(); | |
//get string | |
var index1 = strs.search("<div id=\"selGoldk\"> <span id=\"selGoldkt\"> 22 காரட் 1கி் </span><br>"); | |
var index2 = strs.search("<div style=\"border:none;\" id=\"selGoldk\"> <span id=\"selGoldkt\"> 24 காரட் 10கி் </span> <br>"); | |
var substrs = strs.slice(index1, index2); |
This file contains hidden or 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.IO; | |
using System.Text.RegularExpressions; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConvertRomanToNumeral | |
{ |