Name | Register # | Usage | Preserved on call |
---|---|---|---|
$zero | 0 | The constant value 0 | NA |
$v0 - $v1 | 2 - 3 | Values for results and expression evaluation | F |
$a0 - $a3 | 4 - 7 | Arguments | F |
$t0 - $t7 | 8 - 15 | Temporaries | F |
$s0 - $s7 | 16 - 23 | Saved | T |
$t8 - $t9 | 24 - 25 | More temporaries | F |
$gp | 28 | Global pointer | T |
$sp | 29 | Stack pointer | T |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _LINUX_LIST_H | |
#define _LINUX_LIST_H | |
#include <stdio.h> | |
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | |
/** | |
* container_of - cast a member of a structure out to the containing structure | |
* @ptr: the pointer to the member. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Global settings | |
[redshift] | |
temp-day=6500K | |
temp-night=5000 | |
transition=1 | |
;gamma=0.8:0.7:0.8 | |
gamma=1.000:1.000:1.000 | |
location-provider=geoclue | |
;location-provider=manual | |
adjustment-method=vidmode |
#GNU Screen Cheat Sheet
##Basics
- ctrl a c -> create new window
- ctrl a A -> set window name
- ctrl a w -> show all window
- ctrl a 1|2|3|… -> switch to window n
- ctrl a " -> choose window
- ctrl a ctrl a -> switch between window
- ctrl a d -> detach window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |