| Shortcut | Description |
|---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
| #!/bin/bash | |
| echo "$([ "$1" == "install" ] && echo "Install" || echo "Update") Discord" | |
| # Download Discord | |
| cd /tmp | |
| curl -o discord.tar.gz -J --location-trusted --max-redirs 10 "https://discord.com/api/download/stable?platform=linux&format=tar.gz" | |
| # Unzip | |
| tar -xzf discord.tar.gz |
| #%PAM-1.0 | |
| auth required pam_faillock.so preauth | |
| # Optionally use requisite above if you do not want to prompt for the password | |
| # on locked accounts. | |
| # The following 2 lines enables you to login with both Yubikey and password | |
| # Thanks: https://cromwell-intl.com/cybersecurity/yubikey/pam_u2f.html | |
| auth sufficient pam_unix.so try_first_pass nullok | |
| auth sufficient pam_u2f.so cue |
| from Crypto.Cipher import AES | |
| from Crypto.Util import Counter | |
| import struct | |
| """ | |
| typedef struct boot_dat_hdr | |
| { | |
| unsigned char ident[0x10]; | |
| unsigned char sha2_s2[0x20]; | |
| unsigned int s2_dst; |
Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.
The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.
<script>
// require vue-resource...
new Vue({I just put the finishing touches on my Raspberry Pi 3 emulation machine running RetroArch. I was not a huge fan of RetroPie due to the reliance on Emulation Station - more moving parts meant that there were more things that could potentially break. I just wanted something that would run raw RetroArch, no frills.
This tutorial is mostly recreated from memory and was most recently tested with a Raspberry Pi 3 running Raspbian Stretch and RetroArch 1.7.7. If there is a mistake or a broken link, PLEASE message me and I will fix it.
I used Raspbian Stretch Lite from this page. Write the image to your SD card using something like Win32 Disk Imager, or if you're using OSX/Linux follow a tutorial on how to write the image using dd.
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
This article has been updated and is available here.
| #!/bin/bash | |
| brew install wine-stable winetricks | |
| WINEARCH=win32 WINEPREFIX=~/.wine winecfg | |
| mkdir ~/.cache/winetricks/ | |
| winetricks -q dotnet45 corefonts |