This file contains hidden or 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
@echo off | |
set strVariable=[%1] | |
if %strVariable% NEQ [] goto :Thread | |
set intTotal=0 | |
echo Start %date% %time% | |
for /F %%a in ('net view ^| find /i "\\"') do call :Parse %%a | |
echo Stop %date% %time% | |
echo Total %intTotal% | |
goto :eof |
This file contains hidden or 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
<html> | |
<head> | |
<title>JustinCampbell.me</title> | |
<style type="text/css"> | |
body { | |
background-color: white; | |
color: black; | |
font-size: 16px; | |
} | |
</style> |
This file contains hidden or 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 | |
# Git commits for dummies | |
echo Enter a commit message: | |
read MESSAGE | |
git rm -r --cached . > /dev/null | |
git add . | |
git commit -m "$MESSAGE" | |
git push origin master |
This file contains hidden or 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
event manager environment MailRecipient user | |
event manager environment MailDomain domain.com | |
event manager environment MailServer 1.2.3.4 | |
event manager applet mail_on_module3_down | |
event syslog occurs 1 pattern "LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet3.*to down" period 1 | |
action 1.0 info type routername | |
action 1.1 cli command "show interface desc" | |
action 2.0 mail server "$MailServer" to "$MailRecipient" from "$_info_routername@$MailDomain" subject "Interface down module3" body "$_info_routername $_syslog_msg $_cli_result" | |
action 3.0 syslog msg "sent" | |
event manager applet mail_on_module3_up |
This file contains hidden or 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
# don't set prompt if this is not interactive shell | |
[[ $- != *i* ]] && return | |
################################################################### CONFIG | |
##### read config file if any. | |
unset dir_color rc_color user_id_color root_id_color init_vcs_color clean_vcs_color | |
unset modified_vcs_color added_vcs_color addmoded_vcs_color untracked_vcs_color op_vcs_color detached_vcs_color |
This file contains hidden or 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 | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
This file contains hidden or 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
<?php | |
class MY_Loader extends CI_Loader { | |
/** | |
* Load View With Layout | |
* http://bitbucket.org/markhuot/codeigniter/src/tip/application/core/MY_Loader.php | |
* This function is used to load a "view" file inside the specified layout. It has four parameters: | |
* | |
* 1. The name of the "layout" file to be included. |
This file contains hidden or 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
# don't set prompt if this is not interactive shell | |
[[ $- != *i* ]] && return | |
################################################################### CONFIG | |
##### read config file if any. | |
unset dir_color rc_color user_id_color root_id_color init_vcs_color clean_vcs_color | |
unset modified_vcs_color added_vcs_color addmoded_vcs_color untracked_vcs_color op_vcs_color detached_vcs_color |
This file contains hidden or 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
<!-- Copyright (C) 2009 Google Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, |
OlderNewer