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
const request = require('request'); | |
const Handlebars = require('handlebars'); | |
// Replace with your Steam Web API key | |
const API_KEY = '<apikey>'; | |
// Replace with the Steam profile URL of the user | |
const PROFILE_URL = 'https://steamcommunity.com/profiles/<steamid>'; | |
// Retrieve the SteamID from the profile URL |
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
.5g.in | |
.6g.in | |
.2000.hu | |
.aaa | |
.aaa.pro | |
.aarp | |
.abarth | |
.abb | |
.abbott | |
.abbvie |
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
#!/bin/bash | |
mkdir -p keys/{rsa,dsa,ecdsa,ed25519} | |
ssh-keygen -b 1024 -t dsa -f keys/dsa/id_dsa; | |
ssh-keygen -b 4096 -t rsa -f keys/rsa/id_rsa; | |
ssh-keygen -b 521 -t ecdsa -f keys/ecdsa/id_ecdsa; | |
ssh-keygen -b 4096 -t ed25519 -f keys/ed25519/id_ed25519; |
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
binaryStr = "101100101001" # binary: 2857 | |
decnumber = 0 | |
for index in range(0, len(binaryStr)): | |
# reverse string then process binary using calculation | |
# (binary_value * 2 ^ string_index) | |
decnumber += (int(binaryStr[::-1][index]) * (2 ** index)) | |
print(f"dec: {decnumber}") # 2857 |
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
{ | |
"BP_TradeRoute_bsp_outpost_1_to_wld_outpost_2_BACKWARD":{ | |
"Name":"BP_TradeRoute_bsp_outpost_1_to_wld_outpost_2_BACKWARD" | |
}, | |
"BP_TradeRoute_bsp_outpost_1_to_wld_outpost_2_FORWARD":{ | |
"Name":"BP_TradeRoute_bsp_outpost_1_to_wld_outpost_2_FORWARD" | |
}, | |
"BP_TradeRoute_bsp_outpost_1_to_wld_seapost_01_a_BACKWARD":{ | |
"Name":"BP_TradeRoute_bsp_outpost_1_to_wld_seapost_01_a_BACKWARD" | |
}, |
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
Get-ChildItem */* | | |
where {$_.name -eq "README.md"} | | |
foreach { | |
cd $_.DirectoryName; | |
$folderName = pwd | Select-Object | %{$_.ProviderPath.Split("\")[-1]} | |
$BranchName = git rev-parse --abbrev-ref HEAD | |
$CurrentBranchRevision = git log -1 --pretty=format:%h | |
$NewestBranchRevision = git log -n 1 origin/$BranchName --pretty=format:%h | |
Write-Host "`n-===============================================-" | |
Write-Host "- -" |
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
# Title: no more than 50 chars. ################# | |
# [Task Ref]: INT-CS1 | |
# Body: Wrap at 72 chars. ## Explain *what* and *why* # which is here: # | |
# Fixes: | |
# - Fix Invalid XML on line XXX in file:() |
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
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
this fork downloads all formats and does so without using jquery (since that didnt work for me) | |
note that if you are in chrome, chrome will not download the pdfs for you by default, to fix this | |
type “about:plugins” in the address bar and disable chrome's pdf viewer | |
*/ | |
var pattern = /(MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download)$/i; |
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
#!/bin/bash | |
# shellcheck disable=SC2140 | |
# shellcheck disable=SC2034 | |
# ## Variables ## # | |
input_file=$1 | |
input_file_name=$(echo "$input_file" | cut -d'.' -f1) | |
input_file_name_test=$(echo "$input_file" | cut -d'-' -f2) | |
input_file_name_test_version=$(echo "$input_file" | cut -d'-' -f3 | rev | cut -c5- | rev) |
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
#!/bin/bash | |
while getopts z:e:a:t:n:p: option | |
do | |
case "${option}" | |
in | |
z) ZONEID=${OPTARG};; | |
a) APITOKEN=${OPTARG};; | |
t) ZONETYPE=${OPTARG};; | |
n) RECORD_NAME=${OPTARG};; |
NewerOlder