Monthly Archives: June 2014
Running Jenkins to work with Apache on Port 80
Change the /etc/sysconfig/jenkins with right JENKINS_ARGS
#JENKINS_ARGS=”–prefix=/jenkins” #If you wanna run like http://localhost
JENKINS_ARGS=”” # if you wanna run Jenkins on the index
[root@tiber07 jenkins]# cat /etc/httpd/conf.d/jenkins.conf
ProxyPass /jenkins http://localhost:8080/
ProxyPassReverse /jenkins http://localhost:8080/
ProxyRequests Off
ProxyPreserveHost On
Order deny,allow
Allow from all
RewriteEngine on
RewriteRule ^/jenkins/(.+) http://%{HTTP_HOST}/$1
#Make sure to change the Proxy Pass location depending what u defined in JENKINS_ARGS
Hiu and Linux: Creating sparse file to show how thin-provisioning…
Hiu and Linux: Creating sparse file to show how thin-provisioning…: hi, Recently I have a good lunch meet up with Wing Loon to investigate on some of the questions that I kept for weeks. We were discussing…
Dropbox commandline
- As root user, run the 2 commands below
- curl “https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh” -o /tmp/dropbox_uploader.sh
- install /tmp/dropbox_uploader.sh /usr/local/bin/dropbox_uploader
- dropbox_uploader is installed and can be run by any user. As root or as any other user… run command
- dropbox_uploader
- Do the instructions as the script says
- 1) Open the following URL in your Browser, and log in using your account: https://www2.dropbox.com/developers/apps
- 2) Click on “Create App”, then select “Dropbox API app”
- 3) Select “Files and datastores”
- 4) Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder
- 5) Enter the “App Name” that you prefer (e.g. JunedTest)
- Now, click on the “Create App” button.
- When your new App is successfully created, please COPY the, App Key, App Secret and the Permission type shown in the confirmation page
- Asks you to confirm by going to a URL like https://www2.dropbox.com/1/oauth/authorize?oauth_token=, click ALLOW
- It saves your info (in the file .dropbox_uploader)
- Run “dropbox_uploader” which prints all commands