- Go to https://dotnet.microsoft.com/download and install
- If using ZSH (z-shell), add these to your config (
.zshrc
)- Add to your PATH export
:$HOME/dotnet
- Add to the bottom
export DOTNET_ROOT=$HOME/dotnet
- Optional Add an alias for svcutil at the bottom
alias dotnet-svcutil="dotnet svcutil $1"
- Add to your PATH export
- Verify dotnet is installed and working from the command line
- Open terminal and run
dotnet --version
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
import os | |
import time | |
def write_to_log(log_message): | |
with open('network_status.log', 'a') as log_file: | |
log_file.write(log_message + '\n') | |
def is_connected(): | |
if os.name == 'nt': | |
return is_connected_win() |
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 | |
""" | |
Author: Teddy Xinyuan Chen | |
Date: 2020-08-17 | |
""" | |
from functools import cache | |
from pathlib import Path | |
from subprocess import run | |
import re |
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
//find the sessionStorage key that contains the UserLocale value | |
function getOmniLangKey(){ | |
for(let i=0; i<sessionStorage.length; i++){ | |
let key = sessionStorage.key(i); | |
if (key === 'LSSIndex:SESSION{"namespace":"omnistudio"}'){ | |
let omniSession = JSON.parse(sessionStorage.getItem(key)); | |
return omniSession.userLocale | |
} | |
} | |
return null; |
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
import re | |
import requests | |
from bs4 import BeautifulSoup | |
import os | |
SITE = "https://tandeciarz.com" | |
# this will end up being the archive URL | |
AURL = SITE | |
# timestamp for date before the snapshot I want to scrape | |
ts = "20221010" |
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
import os | |
import socket | |
import datetime | |
import time | |
FILE = os.path.join(os.getcwd(), "networkinfo.log") | |
DBG = False | |
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
<!-- | |
- Created by gtandeciarz on 6/21/17. | |
--> | |
<apex:page id="VisualForcePageUsage" | |
title="VisualForce Page Metrics" | |
readOnly="true" | |
standardStylesheets="false" | |
> | |
<!-- |
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
""" | |
Run via command line: python3 readlog.py [logfile] [optional:outputfilecsv] | |
Requires Python 3.6 or higher | |
""" | |
import os,sys,re,traceback | |
#import Operations.Operation as Operation | |
""" | |
15:05:12.412 (20450194753)|CODE_UNIT_STARTED|[EXTERNAL]|Flow:01Ir0000000HCxR | |
15:05:12.412 (20747809148)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:01Ir0000000HCxE | |
15:05:12.893 (21137018664)|CODE_UNIT_STARTED|[EXTERNAL]|Validation:PersonAccount:001r000000l8CIV |
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
- Start the
ssh-agent
from Windows Services:
- Type
Services
in theStart Menu
orWin+R
and then typeservices.msc
to launch the Services window; - Find the
OpenSSH Authentication Agent
in the list and double click on it; - In the
OpenSSH Authentication Agent Properties
window that appears, chooseAutomatic
from theStartup type:
dropdown and clickStart
fromService status:
. Make sure it now saysService status: Running
.
- Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
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
- plugin: snowfakery.standard_plugins.Salesforce.SOQLDataset | |
- plugin: snowfakery.standard_plugins.Salesforce.SalesforceQuery | |
- include_file: account.macro.yml | |
- object: Account | |
include: account | |
fields: | |
__user: | |
SOQLDataset.shuffle: | |
#SalesforceQuery.random_record: | |
fields: Id |
NewerOlder