Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@githubutilities
githubutilities / linux-gui-detection.md
Created February 23, 2016 03:51
Linux GUI Detection
@githubutilities
githubutilities / gitlab.sh
Created January 28, 2016 12:20
Ubuntu insall script
#! /usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
# Ask sudo upfront
sudo -v
# Install and configure the necessary dependencies
sudo apt-get install --yes curl openssh-server ca-certificates postfix
# Add the GitLab package server and install the package

Swappiness

# The default swappiness in Ubuntu 60. Reducing the default value of swappiness will probably improve overall performance for a typical Ubuntu desktop installation. A value of swappiness=10 is recommended, but feel free to experiment.
# Checkout swappiness value
cat /proc/sys/vm/swappiness

# Switch swap off
sudo swapoff -a
@githubutilities
githubutilities / bash.md
Last active January 5, 2023 16:59
cURL, git, ssl in Jailbreak iPhone

Change default shell

Editing /etc/passwd won't work in iOS, so in order to change default shell in iOS you need to edit /etc/master.passwd. You can change root's default shell to bash like this -- root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/bash.

Reference

@githubutilities
githubutilities / ssh-iphone.md
Last active August 22, 2024 22:09
SSH into iPhone using private key

SSH into iPhone using private key

1. in Client shell

# Generate rsa key
ssh-keygen -b 2048
#or using
ssh-keygen -t rsa

SPF Records

Sender Policy Framework (SPF) is an email validation system designed to prevent spam by detecting email spoofing.

# get spf record domain from google
dig TXT +short google.com

# get spf record from google
dig @8.8.8.8 TXT +short _spf.google.com
@githubutilities
githubutilities / Jailbreak-DNS-Server.md
Last active November 19, 2021 01:22
Jailbreak iPhone as DNS Server

Use Jailbreak iPhone as DNS Server

1. Install dnsmasq

# install "dnsmasq" package from `ModMyi`
apt-get install uk.org.thekelleys.dnsmasq

2. Edit your /etc/resolv.conf

@githubutilities
githubutilities / Theos.md
Last active December 27, 2015 06:23
Theos

Getting started with Theos

ldid in ubuntu

git clone https://github.com/daeken/ldid.git
cd ./ldid
@githubutilities
githubutilities / README.md
Last active December 25, 2015 04:51
Jailbreak

Things to do after jailbreak

Applications

  • Activator
  • iFile
  • SmartTap - awake screen with double tap on the screen

CLI