Skip to content

Instantly share code, notes, and snippets.

@paulodelgado
paulodelgado / shortcuts.sh
Created July 30, 2025 00:51 — forked from M0dM/gnome3-conf.sh
Gnome switch workspace with: Super + Number
#!/bin/bash
echo "Setting shortcuts...\n"
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 10
gsettings set org.gnome.shell.keybindings switch-to-application-1 []
gsettings set org.gnome.shell.keybindings switch-to-application-2 []
gsettings set org.gnome.shell.keybindings switch-to-application-3 []
gsettings set org.gnome.shell.keybindings switch-to-application-4 []

Installing FreeSWITCH 1.10.11 on Ubuntu 24.04 LTS

Based on https://gist.github.com/cyrenity/96cc1ad7979b719b1c684f90aa0f526d with the following changes:

  • Updated for Ubuntu 24.04
  • Doesn't install the signalwire client
  • Doesn't install mod_av

Introduction

FreeSWITCH is a software defined telecom stack that runs on any commodity hardware. FreeSWITCH can handle voice, video, and text communication and support all popullar VoIP protocols. FreeSWITCH is flexible and modular, and can be used in any way you can imagine.

### Keybase proof
I hereby claim:
* I am paulodelgado on github.
* I am paulodelgado (https://keybase.io/paulodelgado) on keybase.
* I have a public key ASCKnO4jBMa5hKQrmyMhpCGPfTeWwk_xdkgJxUUFLD96zQo
To claim this, I am signing this object:
server:coreclient paulo$ sudo rake routes --trace
(in /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient)
rake aborted!
uninitialized constant Rake::DSL
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2503:in `const_missing'
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/rake-0.9.2/lib/rake/tasklib.rb:8
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/rdoc-3.10/lib/rdoc/task.rb:37:in `require'
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/rdoc-3.10/lib/rdoc/task.rb:37
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/railties-3.0.10/lib/rails/tasks/documentation.rake:2:in `require'
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/gems/vendor/bundle/ruby/1.8/gems/railties-3.0.10/lib/rails/tasks/documentation.rake:2
@paulodelgado
paulodelgado / MongoRename.js
Created February 14, 2011 21:26
mass rename of an attribute in Mongo
// Mass rename of an attribute in Mongo
var cursor = db.my_collection.find({old_attribute: {$exists: true}});
while(cursor.hasNext()) {
db.my_collection.update({_id:elem._id}, {$unset: {old_attribute:1}, $set: {new_attribute: elem.old_attribute}});
}