Skip to content

Instantly share code, notes, and snippets.

View iacchus's full-sized avatar

Iacchus Mercurius iacchus

View GitHub Profile
@iacchus
iacchus / sandwich.md
Last active January 5, 2017 04:35
Things that i need to remember when making a sandwich

Sandwich

  • Bread (just in case)
  • Oregano
  • Garlic
  • Tomato
  • Olives
  • Olive oil
  • Chipotle
  • Onion
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
@iacchus
iacchus / cmd.md
Created February 21, 2014 14:01 — forked from KenMacD/cmd.md
@iacchus
iacchus / weechat-on-arm.md
Last active June 2, 2017 09:04
Compile weechat irc on Ubuntu ARMHF - ARMv7

Build weechat (irc client) on a Ubuntu Linux 13.04 (Raring Ringtail) running on an Android Phone

Installing required packages

sudo apt-get install build-essential automake checkinstall
sudo apt-get build-dep weechat

Getting the sources

wget http://www.weechat.org/files/src/weechat-0.4.3.tar.gz

Setting up a Persistent, Unified Chat Proxy & Shell Client

Overview

This guide provides a steps for setting up a unified shell chat proxy & client running in a persistent screen session. The following steps are covered:

  • Server operating system & packages will be updated.
  • Timezone will be updated.

Colors in terminal

It's a common confusion about terminal colors... Actually we have this:

  • plain ascii
  • ansi escape codes (16 color codes with bold/italic and background)
  • 256 color palette (216 colors+16gray + ansi) (colors are 24bit)
  • 24bit true color (888 colors (aka 16 milion))

The 256 color palete is configured at start, and it's a 666 cube of colors, each of them defined as a 24bit (888 rgb) color.

@iacchus
iacchus / socket.io-1-0-apache-2.4-ssl.conf
Last active September 21, 2022 18:45
Set reverse proxy websockets in Apache 2.4 using socket.io 1.0. Needs mod_rewrite module, this version uses SSL. As seen here https://serverfault.com/questions/616370/configuring-apache-2-4-mod-proxy-wstunnel-for-socket-io-1-0
<VirtualHost *:80>
ServerName forum.example.com
Redirect permanent / https://forum.example.com
</VirtualHost>
<VirtualHost *:443>
ServerName forum.example.com
@iacchus
iacchus / socket.io-1-0-apache-2.4-nossl.conf
Created December 27, 2014 22:23
Set reverse proxy websockets in Apache 2.4 using socket.io 1.0. Needs mod_rewrite module, this version doesn't uses SSL. As seen here https://serverfault.com/questions/616370/configuring-apache-2-4-mod-proxy-wstunnel-for-socket-io-1-0
<VirtualHost *:80>
ServerName forum.example.com
# ServerAdmin webmaster@localhost
<Proxy *>
Require all granted
</Proxy>
@iacchus
iacchus / Show_Images_in_Terminal_Emulator.md
Last active October 6, 2023 04:16
Show Images in terminal emulator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.