Skip to content

Instantly share code, notes, and snippets.

View fr0der1c's full-sized avatar
🎯
Focusing

Fr0der1c fr0der1c

🎯
Focusing
View GitHub Profile
@zh-f
zh-f / install-tmux
Last active July 21, 2022 17:23 — forked from relaxdiego/install-tmux
Install tmux 2.6 on CentOS 7.1
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make
sudo make install

How to install dlib v19.9 or newer (w/ python bindings) from github on macOS and Ubuntu

Pre-reqs:

  • Have Python 3 installed. On macOS, this could be installed from homebrew or even via standard Python 3.6 downloaded installer from https://www.python.org/download. On Linux, just use your package manager.
  • On macOS:
    • Install XCode from the Mac App Store (or install the XCode command line utils).
    • Have homebrew installed
  • On Linux:
@JackDrogon
JackDrogon / office-thinner.rb
Last active November 4, 2023 13:43
Mac OS X Office thinner: All files are link by hard link, so you needn't to worry about apple code signature. All same files are backuped to Trash dir
#!/usr/bin/env ruby
# -*- coding:utf-8 -*-
# TODO: Check same file with soft link
# TODO: Trim same file by apfs clone
require 'set'
require 'find'
require 'digest'
require 'fileutils'
@ryin
ryin / tmux_local_install.sh
Last active May 3, 2025 02:56
bash script for installing tmux without root access
#!/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