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 | |
set -e | |
if [ ! -d theia-plugins ]; then | |
GH_RELEASE_JSON=`curl -s https://api.github.com/repos/zowe/vscode-extension-for-zowe/releases/latest` | |
ZOWE_EXPLORER_VER=`node -e "console.log($GH_RELEASE_JSON.tag_name.slice(1))"` | |
mkdir -p theia-plugins && cd theia-plugins | |
curl -LOJ https://github.com/zowe/vscode-extension-for-zowe/releases/download/v$ZOWE_EXPLORER_VER/vscode-extension-for-zowe-v$ZOWE_EXPLORER_VER.vsix | |
cd .. |
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
<Configuration> | |
<MappedFolders> | |
<MappedFolder> | |
<HostFolder>C:\Users\Public\Documents\</HostFolder> | |
<ReadOnly>false</ReadOnly> | |
</MappedFolder> | |
</MappedFolders> | |
<LogonCommand> | |
<Command>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -Command "start powershell { -NoExit -Command \"& { Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); Import-Module "$env:ProgramData\chocolatey\helpers\chocolateyInstaller.psm1"; Update-SessionEnvironment; cd C:\Users\WDAGUtilityAccount }\" }"</Command> | |
</LogonCommand> |
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
@echo off | |
SET DIR=%temp% | |
::download install.ps1 | |
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "((new-object net.webclient).DownloadFile('https://chocolatey.org/install.ps1','%DIR%install.ps1'))" | |
::run installer | |
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*" | |
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd |
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
from itertools import combinations | |
with open("01.txt", 'r') as f: | |
nums = [int(line.rstrip()) for line in f] | |
# 1a | |
print(next(a * b for a, b in combinations(nums, 2) if a + b == 2020)) | |
# 1b | |
for a, b, c in combinations(nums, 3): |
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
#include <Adafruit_IS31FL3731.h> | |
#include <ezTime.h> | |
#include <WiFiEsp.h> | |
#include "arduino_secrets.h" | |
// Emulate Serial1 on pins 6/7 if not present | |
#ifndef HAVE_HWSERIAL1 | |
#include "SoftwareSerial.h" | |
SoftwareSerial Serial1(6, 7); // RX, TX | |
#endif |
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 keytar = require("keytar"); | |
const SERVICE = require("os").userInfo().username; | |
const ACCOUNT = "VeryLongValue"; | |
async function testCred(length) { | |
const secret = '*'.repeat(length); | |
try { | |
await keytar.setPassword(SERVICE, ACCOUNT, secret); | |
} catch { | |
return false; |
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
apiVersion: v2 | |
publisher: broadcommfd | |
name: jcl-language-support | |
version: latest | |
type: VS Code extension | |
displayName: JCL Language Support | |
title: JCL Language Support | |
description: JCL support for VSCode | |
# icon: https://open-vsx.org/api/BroadcomMFD/jcl-language-support/1.0.0/file/logo.png | |
repository: https://github.com/BroadcomMFD/jcl-language-support |
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
import requests | |
import subprocess | |
GITHUB_API = "https://api.github.com" | |
GITHUB_PAT = "<personal-access-token>" | |
OLD_USER = "<username>" | |
NEW_USER = "<username>" | |
gists = requests.get(GITHUB_API + "/users/" + OLD_USER + "/gists").json() | |
for gist in gists: |
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
"""zowe_dl.py - Download all data sets matched by a wildcard | |
Usage: zowe_dl.py <dsname-wildcard> [zowe-args] | |
Examples: | |
zowe_dl.py HLQ.* --zosmf-p PROFILE | |
zowe_dl.py HLQ.* --host HOST --port PORT --user USER --password PASSWORD --no-ru | |
""" | |
import json |