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 | |
colorscheme=$(gsettings get org.gnome.desktop.interface color-scheme) | |
# start chrome in dark mode if dark theme | |
if [[ $colorscheme == *"dark"* ]]; then | |
/usr/bin/google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode "$@" | |
else | |
/usr/bin/google-chrome-stable "$@" | |
fi |
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: keda.sh/v1alpha1 | |
kind: ScaledObject | |
metadata: | |
name: dummy-scaledobject | |
spec: | |
scaleTargetRef: | |
name: dummy-deployment | |
triggers: | |
- type: cron | |
metadata: |
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
# Srapping Spec | |
template-version: v0.0.1 | |
parameters: | |
- name: num | |
value: 1 | |
request: | |
method: POST | |
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
{ | |
"yaml.schemas": { | |
"https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json": "cloudformations/*-cloudformation.yaml" | |
}, | |
// Custom tags for the parser to use | |
"yaml.customTags": [ | |
"!Equals sequence", | |
"!FindInMap sequence", | |
"!GetAtt", | |
"!GetAZs", |
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
{ | |
"type": "object", | |
"anyOf": [ | |
{ | |
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-local/_definitions.json" | |
}, | |
{ | |
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-local/affinity-v1.json" | |
}, | |
{ |
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
# Install required libraries tqdm, aiohttp | |
# from tqdm import tqdm | |
# import aiohttp | |
import typing | |
async def multiFetchJSON(indices, | |
container: dict = {}, | |
urlFormat: str = '', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Show hidden characters
"list": [ | |
{ | |
// Make changes here to the powershell.exe profile. | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", | |
"colorScheme": "UnderTheSea", | |
"tabColor": "#011116", | |
"commandline": "powershell.exe", | |
"hidden": 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
#!/bin/bash | |
#user inputs java path | |
if [[ $1 ]] | |
then | |
JAVA_PATH="$1/bin" | |
# use JAVA_HOME environment variable | |
elif [[ $JAVA_HOME ]] | |
then |
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 textToSpeech = "Your speech" | |
let synUtterance = new SpeechSynthesisUtterance(textToSpeech); | |
/* | |
// settimeout unless it changes to use promise | |
[synUtterance.voice, _] = settimeout( | |
() => speechSynthesis.getVoices(), | |
2000); | |
synUtterance.rate = 1; // default | |
synUtterance. |