A widget to send a message/announcement/quote etc to a Shoutbox widget.
The given scenario is that you want to share a message with the the dashboard viewers using a simple curl request.
#!/usr/bin/env bash | |
# Create a teml working dir | |
mkdir -p /tmp/repo-move | |
cd /tmp/repo-move | |
# Clone the original repo | |
git clone --bare [ORIGINAL_REPO] | |
# Push to target repo |
#!/usr/bin/python | |
# Exports a CSV of repo names, readme files, and the license of the project. | |
from __future__ import print_function | |
import requests | |
import json | |
import settings | |
from urlparse import urlparse, parse_qs | |
import sys |
# Check out locally the app from Git | |
git clone --depth=14 https://github.com/angular/angular-phonecat.git | |
# Build and run the docker image, log in with bash to run the initialization command (it will take some time) | |
docker run -it --rm -p 8000:8000 -v [absolute path to angular-phonecat]:/data dockerfile/nodejs bash | |
# When logged in the container | |
npm install && npm install -g bower && bower --allow-root install && npm start | |
# When complete check it in browser |
# Run the test commands like this: | |
xvfb-run npm run protractor |
For changing the main/primary domain, you will need to have root SSH access and be able to edit the following files (replacing your user & domain info): | |
/var/cpanel/userdata/USERNAME/DOMAIN.COM (replace USERNAME and DOMAIN.COM with actual info). | |
In that file, find these two lines: | |
documentroot: /home/USERNAME/public_html | |
path: /home/USERNAME/public_html/cgi-bin | |
And, edit them accordingly: |
# Assuming that you want directories to be 755 and ordinary files to be 644 | |
find \! -perm 644 -type f -o \! -perm 755 -type d |