Skip to content

Instantly share code, notes, and snippets.

View pinbo's full-sized avatar

Junli Zhang pinbo

View GitHub Profile
@pinbo
pinbo / toggle-touchpad-on-gnome.sh
Created December 18, 2020 06:22
A simple script to toggle on/off laptop touchpad on Gnome Desktop
#!/bin/bash
# the code is written by steeve.mccauley from: https://extensions.gnome.org/extension/935/toggle-touchpad/
# I tested on Gnome 3.38.2 on 2020-12-17. It works perfectly.
# Then added a keyboard shortcut to easy run the script to turn on or off the laptop touchpad.
class=org.gnome.desktop.peripherals.touchpad #location in gconf settings where the touchpad is en/disabled
name=send-events #name of the actual setting
status=$(gsettings get "$class" "$name")
status=${status,,} # normalize to lower case; this is a modern bash extension
echo Current status is $status
@pinbo
pinbo / default.custom.yaml
Created July 30, 2019 19:16 — forked from lotem/default.custom.yaml
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式
@pinbo
pinbo / remarkjs_with_MathJax.html
Last active March 29, 2021 06:12 — forked from masterdezign/gist:5eb03e834299b8b67750
Remark.js+MathJax essentials
<!DOCTYPE html>
<html>
<head>
<title>My Presentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
.red { color: red }
</style>
</head>
<body>
@pinbo
pinbo / SNP_primer_design.md
Created November 9, 2017 06:35
Some experiences for SNP primer design
@pinbo
pinbo / Debian_9_Stretch_install_log.md
Last active August 14, 2017 04:28
Debian 9 Stretch installation log

Download dropbox, skype, rstudio from their websites and then install them

sudo apt install ./dropbox_2015.10.28_amd64.deb 
sudo apt install ./skypeforlinux-64.deb 
sudo apt install r-base
#sudo apt install build-essential
sudo apt install ./rstudio-xenial-1.0.153-amd64.deb