Read current value, System Preference maximum speed is 3.0
$ defaults read -g com.apple.mouse.scaling
Write the new value, for me 7.0 is perfect
$ defaults write -g com.apple.mouse.scaling 7.0
| Author: Nilo Dantas - n1lo | |
| Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post | |
| How to use Cedilha on US Keyboard on ArchLinux | |
| 1) Put: English(US, internacional with dead Keys) on your system keyboard layout. | |
| 2) Editing the files: | |
| sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache |
Read current value, System Preference maximum speed is 3.0
$ defaults read -g com.apple.mouse.scaling
Write the new value, for me 7.0 is perfect
$ defaults write -g com.apple.mouse.scaling 7.0
docker run -d --name mongo -p 27017:27017 mongo
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
| git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -20 |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| var net = require("net"); | |
| process.on("uncaughtException", function(error) { | |
| console.error(error); | |
| }); | |
| if (process.argv.length != 5) { | |
| console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]); | |
| process.exit(); | |
| } |
| @Component({ | |
| template: ` | |
| <spinner *ngIf="showSpinner|async"></spinner> | |
| ` | |
| }) | |
| class AppCmp { | |
| showSpinner: Observable<boolean>; | |
| constructor(r: Router) { | |
| this.showSpinner = r.events. | |
| // Fitlers only starts and ends. |
| // Put this file in a directory where @stencil/core exists in node_modules, then run: | |
| // $ echo $HTML | node ssr.js [root] [build-dir] [namespace] | |
| // Full example from my use case: | |
| // $ echo '<sam-text text="Hello, world"></sam-text>' | node ssr.js /var/www/stencil/sams-components/dist ../ sam | |
| // Pipes are used because HTML strings can be really long, and bash has limits on how large argument lists can get (~256k usually). | |
| var stencil = require('@stencil/core'); | |
| var args = process.argv.slice(2); | |
| if (args.length < 3) { | |
| console.error('Not enough args'); | |
| } |