Made possible with this reddit post.
wine regedit wine-breeze-dark.reg
wine regedit wine-reset-theme.reg
| #!/usr/bin/env bash | |
| # Based on https://gist.github.com/eduncan911/68775dba9d3c028181e4 | |
| # but improved to use the `go` command so it never goes out of date. | |
| type setopt >/dev/null 2>&1 | |
| contains() { | |
| # Source: https://stackoverflow.com/a/8063398/7361270 | |
| [[ $1 =~ (^|[[:space:]])$2($|[[:space:]]) ]] |
Made possible with this reddit post.
wine regedit wine-breeze-dark.reg
wine regedit wine-reset-theme.reg
| #################### | |
| # | |
| # Custom-Tools.psm1 | |
| # Current Version: 2020-10-24 | |
| # | |
| # Module is installed to the Module folder visible to all users (but can only be modified by Administrators): | |
| # C:\Program Files\WindowsPowerShell\Modules\Custome-Tools | |
| # | |
| # The Module contains only functions to access on demand as required. | |
| # mods : View all Modules installed in all PSModulePath folders. |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
| (result => { | |
| let paths = []; | |
| result.pieces.forEach(piece => { | |
| let index = 0; | |
| piece.shapes.forEach(shape => { | |
| let commands = []; | |
| shape.lenghts.forEach(length => { |
| import * as firebase from 'firebase/app'; | |
| import 'firebase/firestore'; | |
| var firebaseConfig = { | |
| // your firebase credentials | |
| }; | |
| // Initialize Firebase | |
| firebase.initializeApp(firebaseConfig); |
| Keyboard Control | |
| LEFT and RIGHT | |
| Seek backward/forward 5 seconds. Shift+arrow does a 1 second exact seek (see --hr-seek). | |
| UP and DOWN | |
| Seek forward/backward 1 minute. Shift+arrow does a 5 second exact seek (see --hr-seek). | |
| Ctrl+LEFT and Ctrl+RIGHT | |
| Seek to the previous/next subtitle. Subject to some restrictions and might not always work; see sub-seek command. | |
| Ctrl+Shift+Left and Ctrl+Shift+Right | |
| Adjust subtitle delay so that the next or previous subtitle is displayed now. This is especially useful to sync subtitles to audio. | |
| [ and ] |
This is one way of managing your user profile declaratively.
Alternatives include:
nix-env-based environment, installed using nix-env -ir rather than nix-env --set. LnL has an overlay which shows a way of doing this.$HOMENote that this is incompatible with regular imperative use of nix-env, e.g. nix-env -iA nixpkgs.hello. It has the advantage of allowing the installation of multiple outputs of the same package much better than nix-env's builtin profile builder does.
| FROM golang:1.11.2-alpine | |
| USER root | |
| RUN apk update && apk add musl-dbg gcc libc-dev | |
| COPY preload.c /go | |
| COPY gogo.go /go | |
| COPY runtest.sh /go | |
| RUN gcc -ggdb -fPIC -shared -o libpreload.so preload.c && go build -o gogo-int-linker gogo.go && go build -ldflags '-linkmode external' -o gogo-ext-linker gogo.go | |
| ENTRYPOINT [ "/bin/sh" ] |
Prompted by a tweet by NSHipster, and a subsequent thread, I wanted to find out how Mojave dynamic wallpapers worked. NSHipster and ole reverse engineered the file format. In the Twitter thread, NSHipster mentions an edge case: What happens above 66ºN (latitude)?
The first thing to do was find out what process handles the wallpaper on macOS. I primarily do iOS research, and honestly had no idea. I opened Console, searched for "solar", and then changed my static wallpaper to a dynamic one. Voila!
Message: index: 7 next: 14815.999366
Process: Dock