Skip to content

Instantly share code, notes, and snippets.

View tgermain's full-sized avatar

Timothée GERMAIN tgermain

View GitHub Profile
@endolith
endolith / Has weird right-to-left characters.txt
Last active July 17, 2024 12:41
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 19, 2024 20:54
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@maciakl
maciakl / gist:3827188
Created October 3, 2012 14:24
Compiling Vim 7.3 from source with no root
#!/bin/bash
mkdir ~/local
mkdir ~/build
export TARGET_DIR="$HOME/local"
cd ~/build
hg clone http://hg.debian.org/hg/pkg-vim/vim
cd vim
@SEJeff
SEJeff / gist:4207694
Created December 4, 2012 19:19
Testing jinja from the python interactive shell
>>> from jinja2 import Template
>>> tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %}
... hello {{name}}, how are you?{% endif %}"""
>>> template = Template(tmpl)
>>> print template.render({"name": "Jeff"})
hello Jeff, how are you?
>>> print template.render({"name": "John"})
Nothing to see here move along
>>>
@jbonney
jbonney / spotify_keybindings
Created June 9, 2013 13:22
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@acolyer
acolyer / service-checklist.md
Last active July 10, 2024 05:13
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@vasanthk
vasanthk / System Design.md
Last active July 19, 2024 08:25
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
Found this troubleshooting guide which lists error codes etc:
Troubleshooting
1, Q: Mi home sweeping robot error 1?
A: Error 1 indicates that the laser ranging sensor is abnormal. Please check: 1. Check whether there is a laser ranging sensor on the top of the main unit, such as the hanging spike of the curtain and the cloth hanging at the bottom of the sofa. Please remove. 2, please check whether the laser rangefinder sensor after the normal rotation, if you can not use the finger to rotate about to see if normal. 3,
2, Q: Mi home sweeping robot error 2?
A: Error 2 indicates that the shock absorber is jammed. Please use both hands to gently tap the left and right side of the front shock absorber to ensure that the shock absorber can press down and rebound normally. If there is a foreign body jammed, Buffer rebound blocked Please remove.
3, Q: Mi home sweeping robot error 3?
A: Error 3 indicates that the host wheel is floating. Please check whether the host has dragged the foreign object or hold the obstacl
@mitcdh
mitcdh / Hyper Key.ahk
Created July 7, 2018 05:26
Hyper Key for Windows
;; based on @babygau's answer here https://stackoverflow.com/a/40559502
#NoEnv ; recommended for performance and compatibility with future autohotkey releases.
#UseHook
#InstallKeybdHook
#SingleInstance force
SendMode Input
;; deactivate capslock completely
SetCapslockState, AlwaysOff