Don't wanna be here? Send us removal request.
Text
WordpressUbuntu
FTP
define('FS_METHOD','direct');
Proxy:
/* Configure proxy Server */ define('WP_PROXY_HOST', '172.16.83.199'); define('WP_PROXY_PORT', '5530'); define('WP_PROXY_USERNAME', ''); define('WP_PROXY_PASSWORD', ''); define('WP_PROXY_BYPASS_HOSTS', 'localhost');
DownloadFailed.InstallationFailed
sudo a2enmod ssl sudo systemctl restart apache2.service
0 notes
Text
Kill another login session: Linux
tty
ps -fu username
kill -HUP processid
0 notes
Text
IP addresses
/8 = 255.0.0.0 /16 = 255.255.0.0 /24 = 255.255.255.0 /32 = 255.255.255.255 192.168.1.0/24 = 192.168.1.0-192.168.1.255
192.168.1.5/24 is still in the same network as above, we would have to go to 192.168.2.0 to be on a different network.
192.168.1.1/16 = 192.168.1.0-192.168.255.255
0 notes
Text
NFS useradd
useradd -m user -d /software/user cd /var/yp/ make
0 notes
Text
Fenics: Save matrix data to a file
import numpy as np
A,b = assemble_system(a,L,bc)
np.savetxt("outputA.txt", A.array())
np.savetxt("outputB.txt", b.array())
0 notes
Text
Error:(23, 17) Failed to resolve: junit:junit:4.12
Add url for missing repository in the build.gradle file:
maven { url 'http://repo1.maven.org/maven2' }
0 notes
Text
Creating GIF Image in Ubuntu
convert -delay 20 -loop 0 *.jpg output.gif
convert -delay 20 *.jpg output.gif
0 notes
Text
Why does Firefox try to use Gedit to open .pdf files
To fix this, I opened '.local/share/applications/mimeapps.list' and removed the association of 'application/octet-stream' with 'gedit.desktop'. Doing that restored the normal/expected behaviour.
0 notes
Text
Uninstalling Intel Parallel Studio
$ rm -rf /opt/intel $ rpm -qa | grep intel
$ for i in `rpm -qa | grep intel` ; do rpm -e $i ; done You may need to run the command 2-3 times to ensure all the dependencies and intel packages are totally cleaned up
0 notes
Text
How to configure squid delay pools to restrict bandwidth
acl ipgroup src 10.5.1.1-10.5.1.255/32 delay_pools 1 delay_class 1 1 # 256 Kbit/s fill rate, 1024 Kbit/s reserve delay_parameters 1 32000/128000 delay_access 1 allow ipgroup delay_access 1 deny all
0 notes
Text
Send keystroke through terminal
wmctrl -a firefox
Go to the window with a name containing 'firefox' in it
xdotool key Ctrl+w
0 notes
Text
Reset a lost Ubuntu password.
Boot into recovery kernel
Select root shell from the menu. At this point you have file system mounted as read only. Mount it as read-write as shown in the next step.
mount -rw -o remount /
passwd user
0 notes
Text
SSH Passwordless Login Using SSH Keygen
ssh-keygen
ssh-copy-id username@hostname
******************************************************************************
ssh-keygen -t rsa
cat .ssh/id_rsa.pub | ssh user@remote 'cat >> .ssh/authorized_keys'
ssh user@remote "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
ssh user@remote
0 notes
Text
Kill a SSH Session
Check Login Users accounts
last |grep "logged in"
Check <PID> for this user
ps -aux | grep ssh | grep pts/
Kill SSH user
sudo kill -9 <PID>
0 notes
Text
Extracting data series from *.fig matlab file
open data.fig %open your fig file, data is the name I gave to my file D=get(gca,'Children'); %get the handle of the line object XData=get(D,'XData'); %get the x data YData=get(D,'YData'); %get the y data Data=[XData' YData']; %join the x and y data on one array nx2 %Data=[XData;YData]; %join the x and y data on one array 2xn
0 notes