This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get the entire verbose | |
ps -ef |grep httpd| grep " 1 " |awk '{system ( $8 " -V")}' | |
#get the minimal verbose | |
ps -ef |grep httpd| grep " 1 " |awk '{system ( $8 " -v")}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep "bbconfig.version.number" /usr/local/blackboard/config/bb-config.properties && ps -ef | grep httpd | grep " 1 " | awk '{system ( $8 " -v")}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
ow varchar(200); | |
cb varchar(200); | |
counter number; | |
message varchar(200); | |
begin | |
counter := 0; | |
for uu in ( select pk1, file_id , user_id, full_path, internal_principal_id | |
from bblearn.users uu, bblearn_cms_doc.xyf_urls, bblearn_cms_doc.XYF_PRINCIPAL_LOOKUPS pp | |
where FULL_PATH = '/users/'||uu.user_id and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $OpenBSD: ssh_config,v 1.26 2010/01/11 01:39:46 dtucker Exp $ | |
# This is the ssh client system-wide configuration file. See | |
# ssh_config(5) for more information. This file provides defaults for | |
# users, and the values can be changed in per-user configuration files | |
# or on the command line. | |
# Configuration data is parsed as follows: | |
# 1. command line options | |
# 2. user-specific file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $OpenBSD: ssh_config,v 1.26 2010/01/11 01:39:46 dtucker Exp $ | |
# This is the ssh client system-wide configuration file. See | |
# ssh_config(5) for more information. This file provides defaults for | |
# users, and the values can be changed in per-user configuration files | |
# or on the command line. | |
# Configuration data is parsed as follows: | |
# 1. command line options | |
# 2. user-specific file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
for uu in ( | |
select pk1, title, main_data from course_contents where title like 'Title comes here%' | |
and | |
crsmain_pk1 in (select pk1 from course_main where course_id in | |
(<course_id>))) | |
loop | |
update course_contents | |
set main_data = '<p>paragraph or list or whatever you want to place here</p>' | |
where pk1 = uu.pk1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#creating my folder to store them | |
if [ ! -d /tmp/`hostname` ] | |
then | |
mkdir -p /tmp/`hostname` | |
fi | |
#executing my command | |
/usr/local/blackboard/tools/admin/ServiceController.sh services.appserver.threaddump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
class Scrape | |
#start function | |
def scrape_it(page_as_html, client_id) | |
#open the file | |
f = File.open(page_as_html) | |
#initialize the file for web scraping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Normal Rsync | |
rsync -azP /source/folder/to/be/copied root@ip:/destination/folder/to/be/copied/to | |
# RSync with SSH and Passwordless | |
rsync -azp -e 'ssh -i /path/to/key' user@server:/remote/path/to/dir/ /local/path/to/dir/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#custom vars | |
vDATE=`date +"%Y-%m-%d"` | |
# EXPORT BLACKBOARD BASIC CONFIGURATION | |
export BBHOME=`grep bbconfig.basedir= /usr/local/blackboard/config/bb-config.properties |cut -d= -f2`; | |
export BBCONF=$BBHOME/config/bb-config.properties; | |
export VINAME=`grep antargs.default.vi.db.name= $BBCONF|cut -d= -f2`; |
OlderNewer