Inspiration: https://www.most-useful.com/kde-plasma-on-wsl.html
- Update WSL
- In windows command prompt run:
wsl --update
- In windows command prompt run:
- Add systemd to ubuntu
- In ubuntu prompt run:
sudo nano /etc/wsl.conf
Inspiration: https://www.most-useful.com/kde-plasma-on-wsl.html
wsl --updatesudo nano /etc/wsl.confSuperDirt.start // start server
Server.killAll // kill server
Quarks.gui // open samples folder
// set inputs & outputs // you will need to kill the server and restart when changing the input / output
// list all devices:
| { stdenv, fetchzip, pkgconfig, ffmpeg, gtk2-x11, libjpeg }: | |
| stdenv.mkDerivation rec { | |
| pname = "droidcam"; | |
| version = "0"; | |
| src = fetchzip { | |
| url = "https://github.com/aramg/droidcam/archive/03d6de8d5628663c75a6e266c4ae6a26a2bbe682.zip"; | |
| sha256 = "05kd5ihwb3fldmalv67jgpw4x0z0q39lfis69r7yh03qiqlviymk"; | |
| }; |
| #!/bin/bash | |
| hdiutil create -o /tmp/Mojave.cdr -size 8g -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
| sudo /Applications/Install\ macOS\ 10.14\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build | |
| mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
| hdiutil detach /Volumes/Install\ macOS\ 10.14\ Beta | |
| hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/Mojave.iso |
Note: This assumes that your project already has a working eslint setup!
prettier-eslint_d is a "daemon" versions of prettier and eslint. They are faster frontends to prettier and eslint, great for editors. Add it to your project via Yarn:
# prettier-eslint_d are replacements for these packages; if you have them,| https://yourdomain.example.com/ { | |
| log / /var/log/caddy/mastodon.log "{combined}" { | |
| rotate_age 90 | |
| } | |
| root /home/mastodon/live/public | |
| gzip | |
| header / { | |
| Strict-Transport-Security "max-age=31536000" | |
| } |
| <?php | |
| /* | |
| * Replace-uploads.php | |
| * This replaces all accents from your uploads | |
| * you can run this with wp-cli: $ wp eval-file replace-uploads.php | |
| */ | |
| /** | |
| * cd to right path before changes | |
| */ |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current windowIt's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream.)
Getting the PR code
Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37
Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it pr37:
$ git fetch upstream pull/37/head:pr37
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)