start new:
tmux
start new with session name:
tmux new -s myname
| # The OAuth access token provided by the Google API expires in 60 minutes. After expiration, | |
| # you must exchange a refresh token for a new access token. Unfortunately, the the Google API | |
| # ruby gem does not include a method for refreshing access tokens. | |
| # You can read up on how to refresh an access token here: | |
| # https://developers.google.com/accounts/docs/OAuth2WebServer#refresh | |
| # This Token model implements that process. It's based off of a Token model that can be created | |
| # by running: | |
| # rails g model Token token:text refresh_token:string expires_at:datetime |
| [Unit] | |
| Description=Demonstrate Bash | |
| [Service] | |
| ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))" | |
| ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}" |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
| 0. SSH to server | |
| 1. Edit /opt/bitnami/apps/jenkins/jenkins_home/config.xml | |
| 2. set userSecurity to false: <userSecurity>false</userSecurity> | |
| 3. delete | |
| <authorizationStrategy> and <securityRealm> | |
| 4. /etc/init.d/bitnami restart |
| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
| #!/bin/bash | |
| ############################################### | |
| # To use: | |
| # https://raw.github.com/gist/2776351/??? | |
| # chmod 777 install_postgresql.sh | |
| # ./install_postgresql.sh | |
| ############################################### | |
| echo "*****************************************" | |
| echo " Installing PostgreSQL" | |
| echo "*****************************************" |