Skip to content

Instantly share code, notes, and snippets.

View sandsu's full-sized avatar

Sanderson Santana sandsu

View GitHub Profile
@sandsu
sandsu / Efficient Encrypted UEFI-Booting Arch Installation
Created February 18, 2018 13:07 — forked from HardenedArray/Efficient Encrypted UEFI-Booting Arch Installation
An effcient method to install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Multi-OS, and VirtualBox, UEFI-booting are also supported.
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI.
# Note: This method supports both dedicated Arch installs and those who wish to install Arch on a multi-OS-UEFI booting system.
# External USB HDD/SSD Installers Notes: Encrypted Arch installs can be booted and run from an external USB HDD or SSD, but
# only when the installation is correctly set up. There are several necessary changes to my standard procedure you'll want
# to make during the install process. Read my External USB HDD/SSD Installation section below before proceeding.
Section "InputClass"
Identifier "touchpad"
Option "tapping" "on"
Option "VertScrollDelta" "-111"
Option "HorizScrollDelta" "-111"
Option "PalmDetect" "1"
Option "PalmMinWidth" "8"
Option "PalmMinZ" "100"
EndSection
@sandsu
sandsu / README.md
Created January 16, 2017 08:59 — forked from DocX/README.md
Connect to bash inside running ECS container by cluster and service name
#/usr/bin/env bash
# Install some pacakages we'll need to compile the driver below.
sudo dnf install gcc kernel-devel -y
# Create working dir for Broadcom driver files and patches.
mkdir hybrid_wl_f23
# Change to working dir.
cd hybrid_wl_f23
@sandsu
sandsu / gem_install_rmagick.md
Created December 11, 2015 14:09 — forked from jaymecd/gem_install_rmagick.md
gem install rmagick -v '2.13.2' (Debian Jessie)

gem install rmagick -v '2.13.2' (Debian Jessie)

sudo apt-get install ImageMagick libmagickcore-dev libmagickwand-dev libmagick++-dev

IMAGICK=$(find /usr/lib -type f -name Magick-config | grep bin | grep Magick-config | tail -n 1)
if [ -z "${IMAGICK}" ]; then
    echo "Magick-config was not found"
else 
 ln -nfs "${IMAGICK}" /usr/local/bin/Magick-config
@sandsu
sandsu / gist:084e93b990a5aeb74c12
Created October 14, 2015 19:36 — forked from nilo/gist:c2a31a0f9f29c88145ca
Using cedilha - ArchLinux Cinnamon
Author: Nilo Dantas - n1lo
Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post
How to use Cedilha on US Keyboard on ArchLinux
1) Put: English(US, internacional with dead Keys) on your system keyboard layout.
2) Editing the files:
sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache
AssetSync: using /tmp/build_72cd7379de9537cea9896e4d96b8467f/config/initializers/asset_sync.rb
remote: I, [2015-06-15T02:40:02.624640 #1118] INFO -- : Writing /tmp/build_72cd7379de9537cea9896e4d96b8467f/public/assets/ckeditor/config-d3827492a375651e0066a1a5e9d4c400ea4ad5608bc00da6fb6986c36f3b00eb.js
remote: I, [2015-06-15T02:40:02.930888 #1118] INFO -- : Writing /tmp/build_72cd7379de9537cea9896e4d96b8467f/public/assets/ckeditor/styles-1d02bc8f007deea0ec577b5177a67d27989c3ad6770b8127bf9c89c0e787dc20.js
remote:
I, [2015-06-15T02:42:34.311482 #1118] INFO -- : Writing /tmp/build_72cd7379de9537cea9896e4d96b8467f/public/assets/ckeditor/ckeditor-173e80bdc68caa698ff0e90d1bf755f534e108073156f60fc6e0ca1533ef837c.js
remote: I, [2015-06-15T02:42:34.374679 #1118] INFO -- : Writing /tmp/build_72cd7379de9537cea9896e4d96b8467f/public/assets/ckeditor/contents-150fe4f1094ced44ccc700ed8e245f92bfccfcfaf1dfe493b06e3cbbe66a8a33.css
remote: I, [2015-06-15T02:42:34.648016 #1118] INFO -- : Writ
sanderson6258@c66credere-gcloudfirefly:/var/deploy/credere_gcloud$ sudo gem install eventmachine -v '1.0.3'
Fetching: eventmachine-1.0.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby -r ./siteconf20141229-12788-18wk740.rb extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
@sandsu
sandsu / gist:2aeab3e71100d58e48b7
Last active September 23, 2015 14:15
WAL-E and Cloud66
# WAL-E (https://github.com/wal-e/wal-e) install
sudo su
source /var/.cloud66_env
sudo apt-get install daemontools
sudo apt-get install -y python-virtualenv python-dev git libevent-dev pv lzop vim
sudo pip install git+https://github.com/wal-e/wal-e
umask u=rwx,g=rx,o=
mkdir -p /etc/wal-e.d/env
echo $AWS_SECRET_ACCESS_KEY > /etc/wal-e.d/env/AWS_SECRET_ACCESS_KEY
// Aqui vão os dados da intanscia
var items = [
{w: 10, h: 40},
{w: 15, h: 30},
{w: 20, h: 20},
{w: 30, h: 15},
{w: 40, h: 10}
];
// Nova variável para quardar os parametros aleatorios que serão usados