24 Apr 2023
defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -float 0.5; killall Dock
30 Aug 2022
Make Git store the username and password and it will never ask for them:
git config --global credential.helper store
30 Jan 2022
To create an environment:
conda create --name myenv
22 Mar 2021
Download “API Latest” from http://interactivebrokers.github.io/
08 Mar 2021
Set session name:
21 Aug 2020
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.
08 Aug 2020
For macOS, Download cputhrottle
04 Jan 2020
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:
25 Aug 2019
```
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;
03 May 2019
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:
02 Apr 2019
flutter create --org com.usunyu -i swift -a kotlin --description 'First flutter app' first_flutter_app
01 Dec 2018
Create new user with password login
23 Jul 2018
ARPDAU:
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]
26 Feb 2018
Step 1 Install letsencrypt:
$ sudo apt-get update
$ sudo apt-get install letsencrypt
13 Jan 2018
Remove the all migrations files within your project:
Go through each of your projects apps migration folder and remove everything inside, except the init .py file.
26 Sep 2017
Hidden Folders:
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.
30 Aug 2017
Show hidden files:
$ defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
28 Aug 2017
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
19 Jul 2017
07 Jun 2017
To see the 10 biggest files, run this from the root directory:
07 Jun 2017
Add file Ctrl-Alt-Switch.ahk
to shell:startup
:
21 May 2017
06 May 2017
Terminal Setup for Mac:
$ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
09 Dec 2016
1.安装Homebrow
已经安装了brow的可以直接跳过这一步。
09 Dec 2016
Use boost on MacOS:
12 Nov 2016
Install ffmpeg, please check (install ffmpeg )
05 Oct 2016
27 May 2016
12 May 2016
Install libx264:
Get the libx264 package from videolan x264
28 Mar 2016
$ 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>
27 Mar 2016
$ git bisect reset
$ git bisect start
$ git bisect bad
$ git bisect good <commit>
Bisecting: 10 revisions left to test after this ( roughly 3 steps)
...
19 Mar 2016
Download and install ffmpeg
17 Jan 2016
Using Homebrew:
This is the easiest way and will provide automatic updates.
$ ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
14 Jul 2015
Examples of Abstraction:
12 May 2015
Add Vim:
$ heroku plugins:install https://github.com/naaman/heroku-vim
$ heroku vim
18 Mar 2015
Create databases:
$ CREATE DATABASE name
[ [ WITH ] [ OWNER [=] user_name ]
[ TEMPLATE [=] template ]
[ ENCODING [=] encoding ]
[ LC_COLLATE [=] lc_collate ]
[ LC_CTYPE [=] lc_ctype ]
[ TABLESPACE [=] tablespace ]
[ CONNECTION LIMIT [=] connlimit ] ]
10 Dec 2014
1. Throughout this tutorial, we’ll walk you through the creation of a basic poll application.
Check Django is installed and which version (Setup Django ):
$ python -c "import django; print(django.get_version())"
07 Dec 2014
// Mac
$ python -m SimpleHTTPServer 8000
// Windows
$ python -m http.server 8000
07 Dec 2014
Invoke MySQL:
$ mysql
$ mysql -u root -p
$ mysql --user = your-user-name --password = your-password
06 Dec 2014
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.
02 Aug 2014
$ 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