sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
#!/usr/bin/env bash | |
# Taken from (and freely modified as no license was specified): | |
# https://gist.github.com/ecompayment/b1054421eb90f296bbca226683c7ff7e | |
# https://gist.github.com/pwnsdx/1217727ca57de2dd2a372afdd7a0fc21 | |
# Before running this script, you must: | |
# - Disable FileVault (if it is enabled) Note: You will not be able to re-enable FileVault AND keep these customisations. | |
# - Reboot your Mac into Recovery Mode. | |
# - Select Terminal from top menu and run the following commands: |
-- a partir de quando as statistics estão sendo coletadas and else | |
-- https://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-DATABASE-VIEW | |
select stats_reset, datname, to_char(tup_returned*100.0 / (tup_fetched + tup_returned), '90.00%') as pct_tup_returned, | |
tup_fetched, tup_returned, temp_bytes, tup_inserted, tup_updated, tup_deleted, | |
xact_commit + xact_rollback as total_transaction, xact_commit, xact_rollback, deadlocks | |
from pg_stat_database | |
where datname not like 'template%'; | |
-- statistics about columns |
#!/bin/bash | |
# Download the last version of elementaryOS Juno on https://elementary.io/ free or pay what you want ;) | |
# Organized by @dennissenner | |
# Ter Out 30 | |
# Download this script, edit if you want. | |
# We are not liable for any technical difficulties you may incur arising from the use of these software and hardware. | |
# Use at your own risk. Please review the code below before using. | |
# To execute: | |
# sudo chmod +x -v filename.sh |
--- | |
- name: Creating a Volume | |
hosts: localhost | |
become: yes | |
tasks: | |
- name: Creating a Volume | |
ec2_vol: | |
aws_access_key: "{{ lookup('env', 'AWS_ACCESS_KEY_ID') }}" | |
aws_secret_key: "{{ lookup('env', 'AWS_SECRET_ACCESS_KEY') }}" | |
instance: '<instance-id>' |
#Start with a dist upgrade | |
sudo apt dist-upgrade | |
# Get chrome | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i ./google-chrome*.deb | |
sudo apt-get install -f | |
# dev (php, docker, git, node, bower, electron, composer) | |
sudo apt install -y \ |
Para resolver o problema de falta de suporte à acentuação no cliente Telegram no elementary OS, edite o arquivo '~/.local/share/applications/telegramdesktop.desktop' e substitua a seguinte linha:
Exec=/home/[seu_usuario]/Telegram/Telegram -- %u
Por:
Exec=env QT_IM_MODULE=xim /home/[seu_usuario]/Telegram/Telegram -- %u
# First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
# Clean-up System | |
sudo apt-get purge epiphany-browser epiphany-browser-data #browser | |
sudo apt-get purge midori-granite #browser | |
sudo apt-get purge noise | |
sudo apt-get purge scratch-text-editor #text-editor | |
sudo apt-get purge modemmanager | |
sudo apt-get purge geary #email |
#!/bin/bash | |
function die() { | |
echo "${1}" | |
exit 1 | |
} | |
which printf > /dev/null 2>&1 || die "Shell integration requires the printf binary to be in your path." | |
which sed > /dev/null 2>&1 || die "Shell integration requires the sed binary to be in your path." |