Skip to content

Instantly share code, notes, and snippets.

@anx21
Created September 4, 2016 23:56
Show Gist options
  • Save anx21/9c1f7e2c01142b78130bf1aa1e0c4a9b to your computer and use it in GitHub Desktop.
Save anx21/9c1f7e2c01142b78130bf1aa1e0c4a9b to your computer and use it in GitHub Desktop.
1289 npm i -g react-native-cli
1290 sudo npm i -g react-native-cli
1291 javac -versionn
1292 javac -version
1293 sudo apt-get install oracle-java8-installer
1294 sudo add-apt-repository ppa:webupd8team/java
1295 sudo apt-get update
1296 sudo apt-get install oracle-java8-installer
1297 sudo update-alternatives --config java
1298 sudo nano /etc/environment
1299 source /etc/environment
1300 echo $JAVA_HOME
1301 mv ~/Downloads/android-studio /usr/local/
1302 sudo mv ~/Downloads/android-studio /usr/local/
1303 ls /usr/local
1304 ls /usr/local/android-studio
1305 ls /usr/local/bin
1306 cl
1307 sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
1308 echo $PATH
1309 vi /etc/environment
1310 sudo vi /etc/environment
1311 source /etc/environment
1312 echo $PATH
1313 sh /usr/local/android-studio/bin/studio.sh
1314 sudo apt-get install lib32stdc++6
1315 sh /usr/local/android-studio/bin/studio.sh
1316 echo $PATH
1317 vi ~/.zshrc
1318 echo $PATH
1319 sudo apt-get install python-setuptools
1320 ^[[200~ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
1321 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"\nPATH="$HOME/.linuxbrew/bin:$PATH"
1322 echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.zshrc
1323 vi ~/.zshrc
1324 cl
1325 brew install hello
1326 brew install watchman
1327 ls
1328 cl
1329 ll
1330 cl
1331 watchman
1332 watchman watch /path/to/dir
1333 watchman watch ~/work/dylect
1334 watchman
1335 watchman --disable-statedir
1336 brew uninstall watchman
1337 git clone https://github.com/facebook/watchman.git
1338 cd watchman
1339 git checkout v4.6.0
1340 ./autogen.sh
1341 ./configure
1342 make
1343 sudo make install
1344 cd ..
1345 watchman
1346 watchman watch ~/work
1347 watchman shutdown-server
1348 npm r -g watchman
1349 sudo npm r -g watchman
1350 brew update && brew upgrade
1351 echo export PATH="$HOME/.linuxbrew/bin:$PATH" >> ~/.zshrc
1352 echo export PATH="$HOME/.linuxbrew/share/man:$MANPATH" >> ~/.zshrc
1353 vi ~/.zshrc
1354 brew install watchman
1355 watchman
1356 cd watchman
1357 make uninstall
1358 audo make uninstall
1359 sudo make uninstall
1360 cl
1361 cd ~
1362 watchman
1363 touch /home/linuxbrew/.linuxbrew/var/run/watchman/anx21-state
1364 ls /home/
1365 brew uninstall watchman
1366 brew install --HEAD watchman
1367 watchman
1368 watchman watch ~/work
1369 echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
1370 echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
1371 echo fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
1372 sudo nano /etc/sysctl.conf
1373 sudo sysctl -p
1374 cl
1375 rm -rf watchman
1376 sudo rm -rf watchman
1377 cl
1378 react-native start
1379 cd work
1380 cd ..
1381 mkdir projects
1382 cd projects
1383 cl
1384 react-native init sync
1385 react-native run-android
1386 cd test
1387 ls
1388 cd sync
1389 react-native run-android
1390 npm run start
1391 react-native run-android
1392 ls /usr/local/android-studio
1393 ls /usr/local/android-studio/gradle
1394 ls /usr/local/android-studio/bin
1395 find / -name android-sdk
1396 brew install android-sdk
1397 sh /usr/local/android-studio/bin/studio.sh
1398 brew uninstall android-sdk
1399 find / -name android-sdk
1400 sudo nano ~/.zshrc
1401 sudo vi ~/.zshsrc
1402 sudo vi ~/.zshrc
1403 react-native run-android
1404 cd projects/sync
1405 cl
1406 react-native run-android
1407 sudo vi ~/.zshrc
1408 source ~/.zshrc
1409 react-native run-android
1410 sh /usr/local/android-studio/studio.sh
1411 sh /usr/local/android-studio/bin/studio.sh
1412 react-native run-android
1413 sudo apt-get install zlib1g
1414 sudo apt-get install zlib1g:i386
1415 cl
1416 react-native run-android
1417 npm run start
1418 react-native run-android
1419 lsusb
1420 sudo vi /etc/udev/rules.d/51-android.rules
1421 lsusb
1422 cl
1423 adb devices
1424 cd /usr/local/android-studio
1425 ls
1426 cd bin
1427 ls
1428 cd ..
1429 cd ~/Android/Sdk
1430 ls
1431 cd tools
1432 ls
1433 adb
1434 cd ../platform
1435 cd ../platform-tools
1436 ls
1437 adb devices
1438 adb
1439 react-native run-android
1440 react-native start
1441 ls ~/Android
1442 ls
1443 cd ~/Android/Sdk
1444 find -name adb
1445 sudo apt-get install libgl1-mesa-dev:i386
1446 vi ~/.zshrc
1447 adb
1448 adb devices
1449 find -name /etc/ 51-android.rules
1450 find /etc/ -name 51-android.rules
1451 sudo vi /etc/udev/rules.d/51-android.rules
1452 sudo chmod a+r /etc/udev/rules.d/51-android.rules
1453 lsusb
1454 sudo udevadm control --reload-rules
1455 sudo service udev restart
1456 sudo udevadm trigger
1457 ls -l /dev/bus/usb/010
1458 ls -l /dev/bus/usb/002
1459 adb devices
1460 groupadd plugdev
1461 useradd -G plugdev anx21
1462 ls -l /dev/bus/usb/002/010
1463 adb devices
1464 sudo adb kill-server
1465 adb kill-server
1466 adb start-server
1467 adb devices
1468 ls -l /dev/bus/usb/002/010
1469 lsusb
1470 ls -l /dev/bus/usb/002/01
1471 ls -l /dev/bus/usb/002/011
1472 lsusb
1473 ls -l /dev/bus/usb/002/013
1474 adb devices
1475 cd projects/sync
1476 cl
1477* npm run start
1478 react-native run-android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment