-
Cannot open your terminal ‘/dev/pts/1’ – please check. Fixed
If you want to enter the screen started by another user whose password you dont know login as root or as sudo bash . su thatuser before screen -r SCREENNUM run script /dev/null
-
mysql python 3 mac
548 pip install –egg http://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.4.zip 549 pwd 550 python manage.py 551 pip list 552 pip install mysql-connector-python-rf 553 python manage.py 554 pip install MySQL-python 555 pip install mysql-python 556 brew install mysql-connector-c 557 pip install mysql-python 558 pip install MySQL-python 559 pip install […]
-
checking network speed via dd and nc
On one machine, run: nc -v -l 2222 > /dev/null (Make sure you’re not blocking connections to 2222!) On a second machine, run: dd if=/dev/zero bs=1024K count=512 | nc -v $IP_OF_FIRST_MACHINE 2222 dd will give you your speed: 536870912 bytes (537 MB) copied, 4.87526 s, 117 MB/s
-
Running command with another user even if shell is /bin/false
su -s /bin/bash – tomcat7 -c “touch /var/bigbluebutton/published/2”
-
Turn any Linux host into proxy hosts very easy
you can turn any Linux computer into a SOCKS5 (and SOCKS4) proxy in just one command: ssh -N -D 0.0.0.0:1080 localhost And it doesn’t require root privileges. The ssh command starts up dynamic -D port forwarding on port1080 and talks to the clients via SOCSK5 or SOCKS4 protocols, just like a regular SOCKS5 proxy would! The -N option makes sure ssh stays […]
-
change http to https in NGINX
According to nginx pitfalls, it’s slightly better to omit the unnecessary capture, using $request_uriinstead. In that case, append a question mark to prevent nginx from doubling any query args. server { listen 80; server_name signup.mysite.com; rewrite ^ https://$server_name$request_uri? permanent; }
-
Aggregation is the New Virtualization: How Microservices Are Taming Distributed Computing
Virtualization has been a key driver behind every major trend in software, from search to social networks to SaaS, over the past decade. In fact, most of the applications we use — and cloud computing as we know it today — would not have been possible without the server utilization and cost savings that resulted […]
-
loop mount an image
sudo losetup /dev/loop0 /path/to/disk.img mkdir /mnt/image sudo mount /dev/loop0 /mnt/image
-
adding custom route in mac osx
sudo route -n add -net 172.19.1.0/24 10.10.21.102
-
Improve Network speed on KVM or any other virtualization even on cloud
on Network node . if you dont have dedicated network node like in plain virtualization case run it on host ethtool –offload eth0 gro off ethtool –offload eth0 gso off where eth0 is the network you have bridge connected to..