Download from cursor.com
cd ~/Downloads
{ | |
"PresetList" : [ | |
{ | |
"AlignAVStart" : false, | |
"AudioCopyMask" : [ | |
"copy:aac" | |
], | |
"AudioEncoderFallback" : "ca_aac", | |
"AudioLanguageList" : [ |
Download from cursor.com
cd ~/Downloads
{ | |
"react-functional-component-ts-file-name": { | |
"prefix": "rfc", | |
"body": [ | |
"import React from 'react';", | |
"", | |
"interface ${TM_FILENAME_BASE}Props {", | |
" ${2:propName}?: string;", // Assuming the prop type is string for demonstration; adjust as necessary. | |
"}", | |
"", |
{ | |
"react-functional-component-ts-folder-name": { | |
"prefix": "rfc", | |
"body": [ | |
"import React from 'react';", | |
"", | |
"interface ${TM_DIRECTORY/.*\\/(.*)$/$1/g}Props {", | |
" ${2:propName}?: string;", // Assuming the prop type is string for demonstration; adjust as necessary. | |
"}", | |
"", |
//.vscode/launch.json | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ |
export function getByPath( | |
path: string[] | string, | |
obj: Record<string, any>, | |
separator = "." | |
) { | |
const properties = Array.isArray(path) ? path : path.split(separator); | |
return properties.reduce((acc: Record<string, any>, item: string) => { | |
return acc[item]; | |
}, obj); | |
} |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
#!/bin/bash | |
# Name: test.sh | |
# Purpose: Demos compgen and complete | |
# Author: Vivek Gite, under GPL v2.x+ | |
# ------------------------------------------ | |
# My default interface | |
if_default="br0" | |
# Help |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |