- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts (default)
- https://mirror1.malwaredomains.com/files/justdomains (default)
- http://sysctl.org/cameleon/hosts (default)
- https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist (default)
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt (default)
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt (default)
- https://hosts-file.net/ad_servers.txt (default)
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/StreamingAds/hosts
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
#credits: Mostly to tobibeer and Snak3d0c @ https://stackoverflow.com/questions/47345612/export-chrome-bookmarks-to-csv-file-using-powershell | |
#Path to chrome bookmarks | |
$pathToJsonFile = "$env:localappdata\Google\Chrome\User Data\Default\Bookmarks" | |
$htmlOut = 'C:\temp\ChromeBookmarks.html' | |
$htmlHeader = @' | |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!--This is an automatically generated file. | |
It will be read and overwritten. | |
Do Not Edit! --> |
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/bash | |
# requires gcloud command line tools | |
# go to https://cloud.google.com/sdk/docs/quickstarts to get them OR you can install with Node (npm) "npm install --save -g @google-cloud/cloud-sdk" | |
# max 100 service accounts per project | |
# run "gcloud init --console-only" first and select a project; run it again to select another project to create more service accounts | |
# Location of where service account keys will be created | |
KEYS_DIR=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
#!/bin/bash | |
# requires gcloud command line tools; go to https://cloud.google.com/sdk/docs/quickstarts to get them | |
# max 100 service accounts per project | |
# run gcloud init --console-only first and select a project | |
KEYS_DIR=keys | |
for name in service{1..100}; do echo $name; done | parallel --citation -j100 gcloud iam service-accounts create {} | |
for name in $(gcloud iam service-accounts list --format='value(email)'); do echo $name; done | parallel --citation -j100 gcloud iam service-accounts keys create $KEYS_DIR/{}.json --iam-account={} | |
gcloud iam service-accounts list --format='value(email)' |
This gist was moved to a GitHub repository to make it easier to diff changes and keep in sync with a clone on a filesystem.
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace KHDownload |
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
$file_list = Get-Content C:\example.csv | |
$search_folder = "C:\example" | |
$destination_folder = "C:\example" | |
foreach ($file in $file_list) { | |
$file_to_move = Get-ChildItem -Path $search_folder -Filter $file -Recurse -ErrorAction SilentlyContinue -Force | % { $_.FullName} | |
if ($file_to_move) { | |
Move-Item $file_to_move $destination_folder | |
} | |
} |
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
/* | |
* Discord: Don't copy stuff into this box | |
* Me: dOn'T COpy sTuFf iNtO tHIs bOx | |
*/ | |
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) { | |
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") { | |
alert("Oops! You forgot to set the guild_id. Please fill it in.") | |
return; | |
} | |
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") { |
How to unstar all your github stars with API
visit here: https://github.com/settings/tokens
make sure to check repo
scope, it is needed to unstar
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
# There is no facility to replace passwords in RDCMan once they are stored. The only way is to create a new custom credential. | |
# If you open your *.rdg file in a text editor, locate the stored <password>, you can then decrypt it using this script. | |
# This script can also encrypt a plain text password in rdg format which can be used to overwrite an existing one in the xml. | |
Add-Type -AssemblyName System.Security; | |
Function EncryptPassword { | |
[CmdletBinding()] | |
param([String]$PlainText = $null) | |
# convert to RDCMan format: (null terminated chars) |