Skip to content

Instantly share code, notes, and snippets.

View Dimon70007's full-sized avatar
🏠
Working from home

Dmitry Dimon70007

🏠
Working from home
View GitHub Profile
@Dimon70007
Dimon70007 / clean_project.sh
Created January 31, 2023 11:59
Remove temporary files script recursivelly
#!/bin/bash
dirs_to_remove='Pods build builds node_modules*'
if [ -z "$target_dir" ]; then
target_dir='./'
fi
echo ">>> Will be removed dirs <<<"
del_dir () {
@Dimon70007
Dimon70007 / homebrew-permissions-issue.md
Last active April 13, 2023 12:32 — forked from irazasyed/homebrew-permissions-issue.md
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

in mac os ventura should just install ruby with homebrew instead of rbenv

@Dimon70007
Dimon70007 / git_push_alias
Last active June 7, 2023 12:05
alias for push current branch to origin remote git repo
For lazy people))) you can add this alias to your ~/.bash_profile or ~/.zprofile or ~/.bashrc
```bash
alias push_current='git push origin `git branch | grep "*" | sed "s/\* //"`'
```
then call `source ~/.bash_profile`
when you want to push current branch to remote git repo
just call
```
@Dimon70007
Dimon70007 / sdp_mungle.md
Last active September 13, 2024 22:47
webrtc - how to remove comfort noise from audio and disable audio processing

That has removed comfort noise from audio and disabled audio processing

const removeComfortNoiseFromSdp = (sdp: sdpTransform.SessionDescription): sdpTransform.SessionDescription => {
  const audioMedias = sdp.media.filter(m => m.type === 'audio')
  const audioMedia = audioMedias[0]
  if (!audioMedia) {
    return sdp // no audio media
  }
 const whitelistedRtps = audioMedia.rtp.filter(rtp =&gt; {