sudo apt-get install imwheel
And rtfm for how to use.
sudo blkid -c /dev/null
[directory] | |
truncation_length = 0 | |
truncate_to_repo = false | |
[docker_context] | |
disabled = true | |
[gcloud] | |
disabled = true |
#!/bin/bash | |
# Install cursor script taken from https://forum.cursor.com/t/cursor-install-ubuntu-24-04/4838/6 | |
APPIMAGE_PATH="/opt/cursor/Cursor.AppImage" | |
installCursor() { | |
if [ -f $APPIMAGE_PATH ]; then | |
echo "Cursor already installed." | |
return | |
fi |
{ | |
"workbench.colorCustomizations": { | |
"editorSuggestWidget.border": "#00000000", | |
"editorSuggestWidget.background": "#1f1e1ece", | |
"editorHoverWidget.border": "#00000000", | |
"editorHoverWidget.background": "#1f1e1ece" | |
}, | |
"[python]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "charliermarsh.ruff", |
-- Dropping and re-adding constraints is a hack to prevent the cascade from affecting tables we don't want affected. | |
-- It's much faster than cascading changes, and it's safe enough if we know we're deleting all the tables. | |
DO $$DECLARE selectrow record; | |
BEGIN | |
SET session_replication_role = replica; | |
FOR selectrow IN | |
SELECT 'DELETE FROM myschema.' ||quote_ident(t.table_name) || ' ;' AS qry | |
FROM ( | |
SELECT table_name |
You'll need to enable bash_completion, which I think ubuntu does already by default so check .bashrc for bash_completion in there
if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi
PROMPT_DIRTRIM=2 # this doesn't need to be exported, only set for the session
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]\$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\]"
To setup rabbitMQ on vagrant: | |
============================= | |
first make sure the vagrant box has been destroyed | |
in /Vagrantfile add this below the 'config.vm.network ...': | |
config.vm.network :forwarded_port, guest: 15672, host: 15672 | |
copy the rabbitmq latest .deb release from http://www.rabbitmq.com/download.html to /vagrant | |
vagrant up |
// Sound effect for clang sound | |
ajaxChat.playSoundOnNewMessage = function(dateObject, userID, userName, userRole, messageID, messageText, channelID, ip) { | |
if(this.settings['audio'] && this.sounds && this.lastID && !this.channelSwitch) { | |
switch(userID) { | |
case this.chatBotID: | |
var messageParts = messageText.split(' ', 1); | |
switch(messageParts[0]) { | |
case '/login': | |
case '/channelEnter': | |
this.playSound(this.settings['soundEnter']); |
Gist is awesome :doomguy: |