Skip to content

Instantly share code, notes, and snippets.

View SajadJalilian's full-sized avatar

Sajad Jalilian SajadJalilian

View GitHub Profile
@SajadJalilian
SajadJalilian / fix_mic_lenovo320.md
Created March 5, 2023 21:28 — 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:

PORT=443
UUID=$(cat /proc/sys/kernel/random/uuid)
sleep 3
PORT2=80
UUID2=$(cat /proc/sys/kernel/random/uuid)
IP=$(hostname -I | cut -d' ' -f1)
CONFIGNAME="config.json"
shayangilani75,shafiei_moh,BehroozShamiei,dsy89804620,MaedehS781,smirza50623602,baran936664,vahidinvisible,_pgulf,22_gali,eliaaaaa123,KChngaly,fara6668f,a30843961,leiloosh85,seyedsaeed1986,emerfan315,Snow_Queen1900,Fall_2053,Mehregan1970,roshana__irr,Nargesss2022,safir83669845,EbrahimRanjba17,akbarzadeh40,hossein35309332,Mohamma14470776,joveini_mahdi5,Alireza99798502,WlydDlfy,HSawhasan,zohuor_12,Tokyoo93821804,amet_amet7777,ShatranjH,Mohammadvahdan7,noor_z80,Kayyes20,tesugikuni_,ZendehdelMeysam,sjjadte,mhrw42527380,bagherzade_1,mojtaba1386_313,rza_vib,nicki20098801,Dokht_Bahar105,abolfazl_ab68,ctsu_F,eskandari221157,yamahdi18212865,latif_zamani,nazaninnaz14,FahimeMemarian,Mohamma63770404,mhd58739243,SadatGhaemi,b_eva002,Ario86465626,Yasinhp2003,Sara_hsz73,alimolavi313,MotaharehMalek2,Yasbanoo16,313mhdsh,hqiqi1227,ZohreAh60840932,MohsenSefe,Hamii_80,SAHaghighat,amirabbasbiazar,sms1349,sarila68,LwyQnbr,mhdy_mrdany,Najmeh8011,sydmwswy14,ftzBNDZefcg7ko1,SamanShkyb,pantea45,FNiaziazad,Iranian87850903,M_M_A_28_,110
@SajadJalilian
SajadJalilian / unsplash.wallpaper
Last active October 9, 2022 12:47
This script gets random image from "unsplash.it" and set it as linux wallpaper
#!/bin/bash
echo "Geting new wallpaper from unsplash.it"
wget -O /tmp/wallpaper.jpg https://unsplash.it/2560/1440/?random
echo "Setting as lunux wallpaper"
gsettings set org.gnome.desktop.background picture-uri "file:///tmp/wallpaper.jpg"
echo "Done"
sublime packages:
GitGutter
RTL Mirror
anaconda
jedi - python autocompletion
SublimeLinter
SublimeLinter-pyflakes
SublimeLinter-pep8
djaneiro
html-css-js prettify
SPC-
s search
i jump to symbol
In the buffer you can do :%s/find/replace/ , not sure about the whole project though.
(setq-default truncate-lines nil)