Skip to content

Instantly share code, notes, and snippets.

View MashukeAlam's full-sized avatar
🌳
Trying to do somethong BiGG

Mashuke Alam Jim MashukeAlam

🌳
Trying to do somethong BiGG
View GitHub Profile
var Client = require('ftp');
const fs = require('fs');
var c = new Client();
const checkPdf = (file) => {
return file.name.endsWith('.pdf');
}
c.on('ready', function() {
"workbench.colorCustomizations": {
"editor.background": "#000000",
"editor.foreground": "#eeffff",
"activityBarBadge.background": "#3dee37",
"sideBarTitle.foreground": "#a4e1ff",
"statusBar.background": "#0c8f00",
"sideBar.background": "#191919",
"statusBar.noFolderBackground": "#212121",
"statusBar.debuggingBackground": "#263238",
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontFamily": "'SF Mono', Consolas, 'Courier New', monospace",
"editor.fontSize": 18,
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Default High Contrast",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": [
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@MashukeAlam
MashukeAlam / fix_mic_lenovo320.md
Created April 15, 2021 18:37 — forked from Therises/fix_mic_lenovo320.md
Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:

  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

  $ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# Player #
border=no
msg-color=yes
msg-module=yes
# OSC/OSD #
osc=yes
osd-bar=yes # Do not remove/comment if mpv_thumbnail_script_client_osc.lua is being used.
osd-font='Cascadia Code' # Set a font for OSC
osd-font-size=22 # Set a font size
UP add volume 2
DOWN add volume -2
@MashukeAlam
MashukeAlam / bash.txt
Created October 12, 2023 12:10
bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac