Optimize macOS Dock Autohide Animation & Delay
24 Apr 2023defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -float 0.5; killall Dock
defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -float 0.5; killall Dock
git config --global credential.helper store
Run them one after the other. Each command sets a different system flag. They’re persistent once set. However, if you go into power options in Preferences and set the flag to autoswitch, it appears that these are reset to defaults.
You rarely need to access the files downloaded from the Asset Store directly. However, if you do need to, you can find them in the following paths:
``` types { text/html html htm shtml; text/css css; text/xml xml; image/gif gif; image/jpeg jpeg jpg; application/x-javascript js; application/atom+xml atom; application/rss+xml rss;
I accidentally messed up the /home/ubuntu/.ssh/authorized_keys
of AWS EC2, and cannot access EC2 from SSH. Here are the steps for fixing it:
flutter create --org com.usunyu -i swift -a kotlin --description 'First flutter app' first_flutter_app
Average Revenue Per Daily Active User developers who are focused on DAU tend to track ARPDAU as a means to estimate the amount of revenue generated by users on any given day. While a potentially interesting metric to track, other monetization metrics (e.g. ARPPU, ARPU) can share more informative trends about your app.
ARPDAU = [Total Revenue for a Given Day] / [Number of Active Users that Day]
$ sudo apt-get update
$ sudo apt-get install letsencrypt
Go through each of your projects apps migration folder and remove everything inside, except the init.py file.
Folders that start with a dot (e.g. “.UnitTests/”, “.svn/”) are ignored by Unity. Any assets in there are not imported, and any scripts in there are not compiled. They will not show up in the Project view.
$ defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
Signature | Java Type |
---|---|
Z | boolean |
B | byte |
C | char |
S | short |
I | int |
J | long |
F | float |
D | double |
L fully-qualified-class ; | fully-qualified-class |
[ type | type[] |
( arg-types ) ret-type | method type |
$ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
Get the libx264 package from videolan x264
$ adb devices
$ // take screenshot
$ adb shell screencap -p /sdcard/screencap.png
$ adb pull /sdcard/screencap.png
$ // transfer file
$ adb push filename.zip /sdcard/
$ // pull apk
$ adb shell pm list packages
$ adb shell pm path com.example.package
$ adb pull <path_returned>
$ git bisect reset
$ git bisect start
$ git bisect bad
$ git bisect good <commit>
Bisecting: 10 revisions left to test after this (roughly 3 steps)
...
This is the easiest way and will provide automatic updates.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ heroku plugins:install https://github.com/naaman/heroku-vim
$ heroku vim
$ CREATE DATABASE name
[ [ WITH ] [ OWNER [=] user_name ]
[ TEMPLATE [=] template ]
[ ENCODING [=] encoding ]
[ LC_COLLATE [=] lc_collate ]
[ LC_CTYPE [=] lc_ctype ]
[ TABLESPACE [=] tablespace ]
[ CONNECTION LIMIT [=] connlimit ] ]
$ python -c "import django; print(django.get_version())"
// Mac
$ python -m SimpleHTTPServer 8000
// Windows
$ python -m http.server 8000
$ mysql
$ mysql -u root -p
$ mysql --user=your-user-name --password=your-password
In order to actually build projects, we need to make sure our computer is setup. In this project, we’ll setup your environment. Made for Mac OS X Mavericks which is the latest, free operating system from Apple.
$ rails new test_project -d mysql
$ bundle install
$ rails server
$ rails s
$ heroku login
// add to gem 'rails_12factor', group: :production Gemfile
$ bundle install
// add to ruby “2.0.0” Gemfile
// in App folder
$ git init
$ git add .
$ git commit -m "init"
$ heroku create
$ git config -e