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 | |
# Script to check some OpenStack values | |
. /root/keystonerc_admin | |
INSTANCES_ERROR=$(nova list --all-tenants|grep ERROR|wc -l) | |
INSTANCES_ACTIVE=$(nova list --all-tenants |grep ACTIVE|wc -l) | |
INSTANCES_BUILD=$(nova list --all-tenants |grep BUILD|wc -l) | |
INSTANCES_SHUTOFF=$(nova list --all-tenants |grep SHUTOFF|wc -l) |
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
define service { | |
use default-service | |
service_description INSTANCES ERROR | |
servicegroups cloud | |
check_command check_with_gmond!instances_error!5!10 | |
notification_options c,w,f,s,r | |
host_name host.to.be.checked | |
normal_check_interval 30 | |
} |
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 | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
for vol in $(cinder list --status available | tail -n +4 | awk '{ print $2 }'); do cinder delete $vol; done |
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
[operations@snap-boot-test-2 easybuild-easyconfigs]$ ls -lR /srv/data/sw/eb/software/R/3.2.0-goolf-1.7.20/lib64/R/library/tcltk | |
/srv/data/sw/eb/software/R/3.2.0-goolf-1.7.20/lib64/R/library/tcltk: | |
total 24 | |
-rw-r--r--. 1 operations operations 317 Aug 12 15:09 DESCRIPTION | |
-rw-r--r--. 1 operations operations 626 Aug 12 15:09 INDEX | |
drwxr-xr-x. 2 operations operations 4096 Aug 12 15:09 Meta | |
-rw-r--r--. 1 operations operations 980 Aug 12 15:09 NAMESPACE | |
drwxr-xr-x. 2 operations operations 26 Aug 12 15:09 R | |
drwxr-xr-x. 2 operations operations 91 Aug 12 15:09 demo | |
drwxr-xr-x. 2 operations operations 4096 Aug 12 15:09 exec |
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 | |
# Installation: | |
# | |
# 1. vim /etc/ssh/sshd_config | |
# PrintMotd no | |
# | |
# 2. vim /etc/pam.d/login | |
# # session optional pam_motd.so | |
# |
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
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
/opt/soft/modules/lib/libxml2/2.9.2-goolf-1.7.20.lua: | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
help([[Libxml2 is the XML C parser and | |
toolchain developed for the Gnome project | |
(but usable outside of the Gnome platform). - Homepage: http://xmlsoft.org/]]) | |
whatis("Name: libxml2") | |
whatis("Version: 2.9.2") | |
whatis("Description: Libxml2 is the |
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
""" | |
Save this file as linkedin_hash.py and ensure it's | |
in the same folder as combo_not.txt | |
Usage: python linkedin_hash.py hunter2 | |
""" | |
from hashlib import sha1 | |
import sys |
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
# First: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.node.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
#go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by fixincludes configure , which was | |
generated by GNU Autoconf 2.64. Invocation command line was | |
$ /home/adam/.local/easybuild/build/GCC/4.9.3/dummy--binutils-2.25/gcc-4.9.3/fixincludes/configure --cache-file=./config.cache --enable-lto --enable-checking=release --disable-multilib --enable-shared=yes --enable-static=yes --enable-threads=posix --enable-gold=default --enable-plugins --enable-ld --with-plugin-ld=ld.gold --enable-bootstrap --prefix=/home/adam/.local/easybuild/software/GCC/4.9.3-binutils-2.25 --with-local-prefix=/home/adam/.local/easybuild/software/GCC/4.9.3-binutils-2.25 --enable-languages=c,c++,fortran,lto --program-transform-name=s,y,y, --disable-option-checking --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu --srcdir=../../fixincludes | |
## --------- ## | |
## Platform. ## |
OlderNewer