Skip to content

Instantly share code, notes, and snippets.

View supercid's full-sized avatar

Cid Lopes supercid

View GitHub Profile
@supercid
supercid / Run in LOCAL terminal...
Created July 17, 2017 14:28 — forked from jswartwood/Run in LOCAL terminal...
Automatic Git deploys on Dreamhost
# Replace any brackets with real values
# Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal
ssh [user]@[host]
cd ~
mkdir [mydomain_com].git
cd [mydomain_com].git
git init --bare
vi hooks/post-receive
# Enter the code from the "post-receive" file (in this gist); save + quit
@supercid
supercid / htop-1.0.2-temperature.patch
Created May 25, 2017 02:58 — forked from rstemmer/htop-1.0.2-temperature.patch
Adds a new Meter to htop that displays your core temperatures. You need the lm_sensors package to use this meter. After applying this patch, you have to call ./autogen.sh before configuring and compiling.
diff -urN htop-1.0.2-orig/CRT.c htop-1.0.2/CRT.c
--- htop-1.0.2-orig/CRT.c 2013-03-23 14:10:29.500604247 +0100
+++ htop-1.0.2/CRT.c 2013-03-23 14:11:01.916663508 +0100
@@ -59,6 +59,9 @@
UPTIME,
BATTERY,
TASKS_RUNNING,
+ TEMPERATURE_COOL,
+ TEMPERATURE_MEDIUM,
+ TEMPERATURE_HOT,
@supercid
supercid / tmux.conf
Last active March 15, 2019 07:28 — forked from rajanand02/tmux.conf
Tmux configurations with status bar theme
# set prefix to control-f
set -g prefix C-f
#unbind system defined prefix
unbind C-b
# helps in faster key repetition
set -sg escape-time 0
# start session number from 1 rather than 0
@supercid
supercid / MaskExtension.php
Created February 16, 2017 12:47
Apply Mask
<?php
// src/AppBundle/Twig/MaskExtension.php
namespace AppBundle\Twig;
class MaskExtension
{
public function mask($value, $mask)
{
$maskared = '';
$value = (string) $value;
@supercid
supercid / hexspeak
Last active August 29, 2015 14:10 — forked from dannyow/hexspeak
00D1E5
0111E
0115
011ED
011F1E1D
011F1E1D5
015E
01AF
01D1E