Forward ports in VirtualBox adb kill-server export ADB_SERVER_SOCKET=tcp:10.0.2.2:5037 Connect phone Check with adb devices
Linux startup script
Create script in /etc/init.d sudo nano /etc/init.d/NameOfYourScript The following is an example based on starting up the no-ip service [/usr/local/bin/noip], but change the name of the script and the command to start and stop it and it would work for any command. #! /bin/sh # /etc/init.d/noip### BEGIN INIT INFO # Provides: noip # Required-Start: $remote_fs… Continue reading Linux startup script
Openvpn private key password in –daemon
Edit your openvpn.conf: verb 3 askpass /etc/openvpn/my.pass <<< new line here The file /etc/openvpn/my.pass just contains the password. You can chmod this file to 600.
XFCE4 Vnc Linux
#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS startxfce4 &
Display Virtuals As NoEdit Fields In Keystone Admin UI
Use the post init hook. For example: Assume the Post list model has the following, of which contentFull will be filled from the content.full virtual: … content: { brief: { type: Types.Html, wysiwyg: true, height: 150 }, extended: { type: Types.Html, wysiwyg: true, height: 400 } }, contentFull: {type: Types.Html, wysiwyg: true, height: 400, noedit:… Continue reading Display Virtuals As NoEdit Fields In Keystone Admin UI
Resize EBS volume without rebooting in AWS
This article guide you to resize the EBS volume without rebooting 1. Modify volume in AWS EC2 UI After login to AWS console, navigate to EC2 -> Elastic Block Store -> Volumes. Click on the volume that you wist to resize, then select Actions -> Modify Volume. It will open a popup. i) Enter the… Continue reading Resize EBS volume without rebooting in AWS
Useful Windows programs
– dupeGuru – FolderSize – handbrake – Rambox – heidiSQL – 7-Zip – genymotion
Delete recursive folders windows terminal
RMDIR /Q/S foldername
React: CRA with TypeScript enable HOT
Add these lines of code to enable it in index.tsx if((module as any).hot && process.env.NODE_ENV !== ‘production’){ (module as any).hot.accept() }
Git pull submodule
Git Pull with Submodule For a repo with submodules, we can pull all submodules using git submodule update –init –recursive for the first time. All submodules will be pulled down locally. To update submodules, we can use git submodule update –recursive –remote or simply git pull –recurse-submodules