|
|
# SDL
|
|
|
|
|
|
Specifying the monitor to show fullscreen SDL applications on:
|
|
|
|
|
|
```bash
|
|
|
SDL_VIDEO_FULLSCREEN_HEAD=${monitor_number}
|
|
|
SDL_VIDEO_FULLSCREEN_DISPLAY=${monitor_number}
|
|
|
SDL_VIDEO_WINDOW_POS=$x,$y
|
|
|
```
|
|
|
|
|
|
# Tabulator not working on XFCE
|
|
|
|
|
|
When the tabulator key is not working in XFCE+vnc:
|
|
|
|
|
|
edit: `~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml`
|
|
|
|
|
|
find the line containing:
|
|
|
|
|
|
```xml
|
|
|
<property name="<Super>Tab" type="string" value="switch_window_key"/>
|
|
|
```
|
|
|
|
|
|
replace with:
|
|
|
|
|
|
```xml
|
|
|
<property name="<Super>Tab" type="empty"/>
|
|
|
```
|
|
|
|
|
|
# international keyboard layout in X with compose key
|
|
|
|
|
|
```bash
|
|
|
setxkbmap -model pc105 -layout us -variant "altgr-intl" -option compose:menu
|
|
|
```
|
|
|
|
|
|
# find duplicate files
|
|
|
|
|
|
`fslint-gui`
|
|
|
|
|
|
# create an iso image
|
|
|
|
|
|
```bash
|
|
|
mkisofs -RJ -o image.iso /$dir
|
|
|
```
|
|
|
|
|
|
# mass renamer
|
|
|
|
|
|
`vrenamer`
|
|
|
|
|
|
# show disk space usage
|
|
|
|
|
|
`qdirstat` or `treesize`
|
|
|
|
|
|
# vnc
|
|
|
|
|
|
Port for remote: `:$[5900+$DISPLAY]`
|
|
|
|
|
|
VNC over slow network: `vncviewer -encoding tight -compress 9 -quality 6`
|
|
|
|
|
|
# copy imap account
|
|
|
|
|
|
larch --from server1.example.com --to server2.example.com
|
|
|
|
|
|
# gitlab
|
|
|
|
|
|
## on charlock_holmes-error (or other ruby stuff)
|
|
|
|
|
|
delete all gems:
|
|
|
|
|
|
```bash
|
|
|
sudo -u git -H rm -r /home/git/gitlab/vendor/bundle/ruby
|
|
|
``` |
|
|
\ No newline at end of file |