Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Cristian Muscalu muscaiu

🎯
Focusing
View GitHub Profile
View detect-mic.ahk
SetBatchLines -1
SplashTextOn,,, Gathering Soundcard Info...
; Most of the pure numbers below probably don't exist in any mixer, but they're queried for completeness.
; The numbers correspond to the following items (in order): CUSTOM, BOOLEANMETER, SIGNEDMETER, PEAKMETER,
; UNSIGNEDMETER, BOOLEAN, BUTTON, DECIBELS, SIGNED, UNSIGNED, PERCENT, SLIDER, FADER, SINGLESELECT, MUX,
; MULTIPLESELECT, MIXER, MICROTIME, MILLITIME
ControlTypes = VOLUME,ONOFF,MUTE,MONO,LOUDNESS,STEREOENH,BASSBOOST,PAN,QSOUNDPAN,BASS,TREBLE,EQUALIZER,0x00000000, 0x10010000,0x10020000,0x10020001,0x10030000,0x20010000,0x21010000,0x30040000,0x30020000,0x30030000,0x30050000,0x40020000,0x50030000,0x70010000,0x70010001,0x71010000,0x71010001,0x60030000,0x61030000
ComponentTypes = MASTER,HEADPHONES,DIGITAL,LINE,MICROPHONE,SYNTH,CD,TELEPHONE,PCSPEAKER,WAVE,AUX,ANALOG,N/A
View mute.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; ^j::
; Send, My First Script
; return
Media_Play_Pause::
SoundSet, +1, MASTER, mute,10
View node.js
https://phoenixnap.com/kb/update-node-js-version
View node.js
https://phoenixnap.com/kb/update-node-js-version
@muscaiu
muscaiu / cloudSettings
Last active Mar 18, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-03-18T09:22:46.576Z","extensionVersion":"v3.4.3"}
View css
export CSC_KEY_PASSWORD="pass"
View cloudSettings
{"lastUpload":"2020-02-25T06:12:54.814Z","extensionVersion":"v3.4.3"}
View sortByDiscount
const { sortBy, orderBy } = require('lodash');
const filteredGames = [
{ name: 'game2', discountActive: 1, price: 5, priceDiscounted: 4 },
{ name: 'game6', discountActive: 1, price: 20, priceDiscounted: 8 },
{ name: 'game5', discountActive: 0, price: 10, priceDiscounted: 9 },
{ name: 'game3', discountActive: 0, price: 11, priceDiscounted: 10 },
{ name: 'game4', discountActive: 1, price: 22, priceDiscounted: 17 },
{ name: 'game1', discountActive: 0, price: 21, priceDiscounted: 18 },
];
View couchdb
sudo -i -u couchdb /home/couchdb/bin/couchdb