Skip to content

Instantly share code, notes, and snippets.

View t1m0thyj's full-sized avatar

Timothy Johnson t1m0thyj

  • Pittsburgh, PA
  • 10:21 (UTC -04:00)
View GitHub Profile
apiVersion: v2
publisher: che-incubator
name: typescript
version: 1.35.1
type: VS Code extension
displayName: Typescript
title: Typescript language features
description: Typescript language features
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/Microsoft/vscode
{
"private": true,
"dependencies": {
"typescript": "latest",
"@theia/typescript": "next",
"@theia/navigator": "next",
"@theia/terminal": "next",
"@theia/outline-view": "next",
"@theia/preferences": "next",
"@theia/messages": "next",
apiVersion: v2
publisher: websi96
name: rexx-syntax-highlighting
version: 1.0.2
type: VS Code extension
displayName: rexx-syntax-highlighting
title: rexx-syntax-highlighting
description: syntax highlighting of the rexx language
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository:
@(
'7zip'
'coretemp'
'fiddler'
'filezilla'
'firacode-ttf'
'firefox'
'gh'
'git'
'grepwin'
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
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;
@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
@t1m0thyj
t1m0thyj / 01.py
Last active December 16, 2020 01:36
Advent of Code 2020
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):
@t1m0thyj
t1m0thyj / start.sh
Created March 11, 2021 15:49
Zowe Explorer in Theia
#!/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 ..