Skip to content

Instantly share code, notes, and snippets.

View dasdennis's full-sized avatar

Dennis A. Silva dasdennis

  • Concrete
  • São Paulo
View GitHub Profile
#!/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:
@dasdennis
dasdennis / 1-elementary-os-apps.md
Created February 14, 2019 17:26 — forked from ankurk91/1-elementary-os-apps.md
elementary OS 5.0 Juno

elementaryOS Apps and Configs

This guide has been updated for elementaryOS v5.0+.

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common

Install original plank dock

@dasdennis
dasdennis / elementaryos_Juno-customs.sh
Last active October 23, 2019 09:14
Things to do after install elementary OS Juno 5.0
#!/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
with table_stats as (
select psut.relname,
psut.n_live_tup,
1.0 * psut.idx_scan / greatest(1, psut.seq_scan + psut.idx_scan) as index_use_ratio
from pg_stat_user_tables psut
order by psut.n_live_tup desc
),
table_io as (
select psiut.relname,
sum(psiut.heap_blks_read) as table_page_read,
@dasdennis
dasdennis / custom-loki.sh
Created May 25, 2018 14:14 — forked from evertontrindade/custom-loki.sh
Things to do after install Elementary OS Loki (0.4)
# 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
@dasdennis
dasdennis / setup-elementary.sh
Created December 7, 2017 00:21 — forked from IronistM/setup-elementary.sh
Things to do after installing elementary OS Loki 0.4
#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 \
@dasdennis
dasdennis / eOS_loki_perfect.bash
Last active May 31, 2019 00:09
Things to do after installing elementaryOS Loki 0.4
#!/bin/bash
# Download the last version of elementaryOS on https://elementary.io/ free or pay what you want ;)
# Organized by @dennissenner
# 2017-Jan-13, yeah, Friday 13th
# Download this script, edit if you want.
# To execute:
# sudo chmod +x -v eOS_loki_perfect.bash
# sudo ./eOS_loki_perfect.bash
@dasdennis
dasdennis / apps.css
Created March 6, 2016 20:57
Custom Superior Panel on elementaryOS Luna - Lion Theme
/*********
* Panel *
********/
/* Paste this on file /usr/share/themes/Lion/gtk-3.0/apps.css */
.panel {
background-color: alpha (#000, 0.0);
color: #fff;
font-weight: bold;
}
@dasdennis
dasdennis / my_eOS_apps-29-Feb.sh
Created February 29, 2016 14:04
Oduso Script - My elementaryOS Luna Essential Apps
#!/bin/bash
clear
# Create a secure tmp directory
tmp=${TMPDIR-/tmp}
tmp=$tmp/oduso.$RANDOM.$RANDOM.$RANDOM.$$ # Use a random name so it's secure
(umask 077 && mkdir "$tmp") || { # Another security precaution
echo "Could not create temporary directory! Exiting." 1>&2
exit 1
}
@dasdennis
dasdennis / Preferences.sublime-settings
Last active December 5, 2022 13:18
My Sublime Preferences (Build 4143)
{
"theme": "Spacegray.sublime-theme",
// "theme": "Default Dark.sublime-theme",
// "theme": "SoDaReloaded Dark.sublime-theme",
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
// "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
// "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
// "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",