Skip to content

Instantly share code, notes, and snippets.

View amsv01's full-sized avatar
🎯
Building a new AI product

Amin Mousavi amsv01

🎯
Building a new AI product
View GitHub Profile
@amsv01
amsv01 / workbench.desktop.main.css
Created August 20, 2024 09:16
Change width of "Search file by name panel" in VSCode
/*
Add this change to the end of "workbench.desktop.main.css"
In MacOS it located at "/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.css"
ATTENTION: Remove all these comments before adding the change to the file. This means you must remove all the code blocks like "/*...*/".
*/
/*
Set the width to 1000px. Feel free to change it to any width.
Set the font-size to 13px. Feel free to remove "font-size:13px !important;" if don't want to change the font-size.
*/
.quick-input-widget{position:absolute;width:1000px !important;left: calc(50% - 200px) !important;font-size:13px !important;}
@amsv01
amsv01 / combineFiles.js
Created May 19, 2024 19:59
Node file utils
const fs = require('fs')
const path = require('path')
// Function to get all .ts files recursively
const getAllTsFiles = (dir, fileList = []) => {
const files = fs.readdirSync(dir)
files.forEach((file) => {
const filePath = path.join(dir, file)
if (fs.statSync(filePath).isDirectory()) {
fileList = getAllTsFiles(filePath, fileList)
@amsv01
amsv01 / splunk-expander.js
Last active April 25, 2022 09:13
Expand all nested Splunk result objects
// ==UserScript==
// @name Splunk expands
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include *://*.domain.se/*
// @include *://domain.com/*
// @include https://domain.se/*