Skip to content

Instantly share code, notes, and snippets.

@ertseyhan
ertseyhan / remount.sh
Created February 2, 2016 20:51
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."
@ertseyhan
ertseyhan / temp.sh
Last active November 7, 2017 07:42
Display the ARM CPU and GPU temperature of Raspberry Pi 2/3
#!/bin/bash
# Script: temp.sh
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3
# -------------------------------------------------------
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "CPU >> $((cpu/1000))'C"
echo "GPU >> $(/opt/vc/bin/vcgencmd measure_temp | cut -d = -f2)"
@ertseyhan
ertseyhan / nginx-compile-args
Last active March 15, 2021 10:12
nginx compilation arguments
./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
--http-proxy-temp-path=/var/cache/nginx/proxy_temp \

Keybase proof

I hereby claim:

  • I am ertseyhan on github.
  • I am ertseyhan (https://keybase.io/ertseyhan) on keybase.
  • I have a public key whose fingerprint is 61ED 28C9 70F3 A546 DAEC 39CB 2E81 D363 98A5 B90B

To claim this, I am signing this object:

# 1) wget 2) tic termite.terminfo
# vim: noet:ts=8:sw=8:sts=0
xterm-termite|VTE-based terminal,
am,
bce,
ccc,
km,
mc5i,
mir,
msgr,