<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iwillfearnoevil.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pmorris</id>
	<title>I Will Fear No Evil - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iwillfearnoevil.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pmorris"/>
	<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Special:Contributions/Pmorris"/>
	<updated>2026-05-08T15:46:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Pramreset&amp;diff=147</id>
		<title>Pramreset</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Pramreset&amp;diff=147"/>
		<updated>2022-01-27T19:22:02Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: Pmorris moved page Pramreset to Pram reset&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Pram reset]]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Pram_reset&amp;diff=146</id>
		<title>Pram reset</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Pram_reset&amp;diff=146"/>
		<updated>2022-01-27T19:22:02Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: Pmorris moved page Pramreset to Pram reset&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Having strange issues with apps launching or time/date getting skewed ?  PRAM reset!&lt;br /&gt;
&lt;br /&gt;
Apple stores all sorts of odd little config stuff like monitor placement and whatnot&lt;br /&gt;
inside of the PRAM (or EFI now-a-days)&lt;br /&gt;
&lt;br /&gt;
To reset:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Fully power off machine&lt;br /&gt;
with your right hand hold down Command+Option+P+R&lt;br /&gt;
With your left hand, power on the mac while continuing to hold that key combo down&lt;br /&gt;
After a minute or so, release the keys and the mac will boot up with the settings cleared&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Mac]]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Pram_reset&amp;diff=145</id>
		<title>Pram reset</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Pram_reset&amp;diff=145"/>
		<updated>2022-01-27T19:21:18Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: Created page with &amp;quot;Having strange issues with apps launching or time/date getting skewed ?  PRAM reset!  Apple stores all sorts of odd little config stuff like monitor placement and whatnot insi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Having strange issues with apps launching or time/date getting skewed ?  PRAM reset!&lt;br /&gt;
&lt;br /&gt;
Apple stores all sorts of odd little config stuff like monitor placement and whatnot&lt;br /&gt;
inside of the PRAM (or EFI now-a-days)&lt;br /&gt;
&lt;br /&gt;
To reset:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Fully power off machine&lt;br /&gt;
with your right hand hold down Command+Option+P+R&lt;br /&gt;
With your left hand, power on the mac while continuing to hold that key combo down&lt;br /&gt;
After a minute or so, release the keys and the mac will boot up with the settings cleared&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Mac]]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=144</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=144"/>
		<updated>2022-01-27T19:20:57Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Pete's stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile Old Helper File]&lt;br /&gt;
* [https://gitlab.iwillfearnoevil.com/pmorris/helper-file/-/tree/main Gitlab location for cruft]&lt;br /&gt;
* [https://github.com/barnybug/cli53 cli53 tool for updating Route53 from linux/mac/windows]&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/GetAroundSAPMACSetup Getting around the installer for a SAP MAC]&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/pramreset Fix config issues with a pram reset]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=GetAroundSAPMACSetup&amp;diff=116</id>
		<title>GetAroundSAPMACSetup</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=GetAroundSAPMACSetup&amp;diff=116"/>
		<updated>2021-12-17T19:19:18Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Getting around the NS2 initial installer when it should just be a blank mac.&lt;br /&gt;
&lt;br /&gt;
Boot up mac while holding down COMMAND + R .   You have to hold those keys down&lt;br /&gt;
until you hit the recovery session.   Then under utilities at the top you can&lt;br /&gt;
choose to launch a terminal.   Once in the terminal do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/db/ConfigurationProfiles&lt;br /&gt;
rm -rf *&lt;br /&gt;
mkdir Settings&lt;br /&gt;
touch Settings/.profilesAreInstalled&lt;br /&gt;
reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you boot up normally.&lt;br /&gt;
&lt;br /&gt;
Once this is done, you can set up your mac.   Make absolutely sure that you use your&lt;br /&gt;
SAP credentials to set it up (password and username must match)&lt;br /&gt;
&lt;br /&gt;
username = i number or c number&lt;br /&gt;
password = SAP provided password, not your NS2 password&lt;br /&gt;
&lt;br /&gt;
Once you have the macbook set up and are at the main screen, launch Safari and go to:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://apple.applebucket.int.sap/enroll&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=GetAroundSAPMACSetup&amp;diff=115</id>
		<title>GetAroundSAPMACSetup</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=GetAroundSAPMACSetup&amp;diff=115"/>
		<updated>2021-12-17T19:18:42Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Getting around the NS2 initial installer when it should just be a blank mac.&lt;br /&gt;
&lt;br /&gt;
Boot up mac while holding down COMMAND + R .   You have to hold those keys down&lt;br /&gt;
until you hit the recovery session.   Then under utilities at the top you can&lt;br /&gt;
choose to launch a terminal.   Once in the terminal do the following.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;&lt;br /&gt;
cd /var/db/ConfigurationProfiles&lt;br /&gt;
rm -rf *&lt;br /&gt;
mkdir Settings&lt;br /&gt;
touch Settings/.profilesAreInstalled&lt;br /&gt;
reboot&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you boot up normally.&lt;br /&gt;
&lt;br /&gt;
Once this is done, you can set up your mac.   Make absolutely sure that you use your&lt;br /&gt;
SAP credentials to set it up (password and username must match)&lt;br /&gt;
&lt;br /&gt;
username = i number or c number&lt;br /&gt;
password = SAP provided password, not your NS2 password&lt;br /&gt;
&lt;br /&gt;
Once you have the macbook set up and are at the main screen, launch Safari and go to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;&lt;br /&gt;
https://apple.applebucket.int.sap/enroll&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=GetAroundSAPMACSetup&amp;diff=114</id>
		<title>GetAroundSAPMACSetup</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=GetAroundSAPMACSetup&amp;diff=114"/>
		<updated>2021-12-17T19:14:29Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: Created page with &amp;quot;Getting around the NS2 initial installer when it should just be a blank mac.  &amp;lt;pre&amp;gt;&amp;lt;code&amp;gt; cd /var/db/ConfigurationProfiles rm -rf * mkdir Settings touch Settings/.profilesAreI...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Getting around the NS2 initial installer when it should just be a blank mac.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;&lt;br /&gt;
cd /var/db/ConfigurationProfiles&lt;br /&gt;
rm -rf *&lt;br /&gt;
mkdir Settings&lt;br /&gt;
touch Settings/.profilesAreInstalled&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=113</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=113"/>
		<updated>2021-12-17T19:07:18Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Pete's stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile Old Helper File]&lt;br /&gt;
* [https://gitlab.iwillfearnoevil.com/pmorris/helper-file/-/tree/main Gitlab location for cruft]&lt;br /&gt;
* [https://github.com/barnybug/cli53 cli53 tool for updating Route53 from linux/mac/windows]&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/GetAroundSAPMACSetup Getting around the installer for a SAP MAC]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=111</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=111"/>
		<updated>2021-12-06T22:06:50Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Pete's stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile Old Helper File]&lt;br /&gt;
* [https://gitlab.iwillfearnoevil.com/pmorris/helper-file/-/tree/main Gitlab location for cruft]&lt;br /&gt;
* [https://github.com/barnybug/cli53 cli53 tool for updating Route53 from linux/mac/windows]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=108</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=108"/>
		<updated>2021-12-02T19:48:15Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Pete's stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile Old Helper File]&lt;br /&gt;
* [https://gitlab.iwillfearnoevil.com/pmorris/helper-file/-/tree/main Gitlab location for cruft]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=107</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=107"/>
		<updated>2021-12-02T19:47:12Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Pete's stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile Old Helper File]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=106</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=106"/>
		<updated>2021-12-02T19:46:43Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Pete's stuff */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile : Old Helper File]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=105</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=Main_Page&amp;diff=105"/>
		<updated>2021-12-02T19:46:22Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: /* Getting started */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki destination for random notes and examples I do not want to loose or forget.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The site is for myself and friends who commonly use bash and other utilities and can have a one-stop-shop to find that oddball thing that was found six months ago and vaguely remembered.  The site overall is not for the general public, however if you make it in here feel free to browse.  Keep in mind however I do have security measures in place and poking hard at stuff will block you from the domain for 30 days or longer if you hammer really hard.&lt;br /&gt;
&lt;br /&gt;
Likely the site is not going to be polished, since it is more of a catchall wiki on doing different things.  There is not going to be too much rhyme or reason on what is posted on this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
&lt;br /&gt;
== Pete's stuff ==&lt;br /&gt;
* [https://wiki.iwillfearnoevil.com/mediawiki/index.php/OldHelperFile: Old Helper File]&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=OldHelperFile&amp;diff=104</id>
		<title>OldHelperFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=OldHelperFile&amp;diff=104"/>
		<updated>2021-12-01T20:54:28Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voicestar bastion host&lt;br /&gt;
&lt;br /&gt;
culture-club.ccsphl.voicestar.com&lt;br /&gt;
&lt;br /&gt;
On kajagoogoo (ugh)  gotta get the nis+ stuff going&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo useradd -u &amp;lt;marchex_uid&amp;gt; -g 1 -G 20,22,200 -s /bin/bash -c &amp;quot;Joe User&amp;quot; -k /etc/skel -d /home/kajagoogoo/users/&amp;lt;initial&amp;gt;/&amp;lt;username&amp;gt; -m &amp;lt;username&amp;gt;&lt;br /&gt;
edit /etc/netgroup (of course after making just in case backup)&lt;br /&gt;
&lt;br /&gt;
sudo passwd &amp;lt;username&amp;gt;&lt;br /&gt;
cd yp&lt;br /&gt;
ls&lt;br /&gt;
sudo make&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
have EU login and change their password on kajagoogoo ... one that is complete another make in /var/yp must be done.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo useradd -u 2010 -g 1 -G 20,22,200 -s /bin/bash -c &amp;quot;John Crawford&amp;quot; -k /etc/skel -d /home/kajagoogoo/users/j/jacrawford -m jacrawford&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voicestar dev/qa nodes:&lt;br /&gt;
wwwdev.ccsphl&lt;br /&gt;
vscpdev1.ccsphl&lt;br /&gt;
vsacdev1.ccsphl (and 2)&lt;br /&gt;
vspdfdev1.ccsphl (and 2)&lt;br /&gt;
&lt;br /&gt;
Deploys to staging/qa&lt;br /&gt;
&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vscodev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vscpdev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vsacdev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vsacdev2.phl:~/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What was done on wwwdev (slightly differenty than &lt;br /&gt;
cd /home/wwwdev/www/htdocs/&lt;br /&gt;
ls&lt;br /&gt;
sudo cp ~/ADTRACK_1_1_26.tar.gz .&lt;br /&gt;
ls&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo gtar -zxvf ADTRACK_1_1_26.tar.gz &lt;br /&gt;
ls&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo ln -s ADTRACK_1_1_26 adtrack.new&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo /etc/init.d/apache stop;sudo /etc/init.d/blix stop;sudo /etc/init.d/at_error_snmp_converter stop;sudo /etc&lt;br /&gt;
/init.d/numberorder_process_orders stop;sudo /etc/init.d/numberorder_process_segments stop&lt;br /&gt;
&lt;br /&gt;
sudo perl -e 'rename shift, shift or die $!' adtrack.new adtrack &lt;br /&gt;
&lt;br /&gt;
ls -latr&lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache start;sudo /etc/init.d/blix start;sudo /etc/init.d/at_error_snmp_converter start;sudo /&lt;br /&gt;
etc/init.d/numberorder_process_orders start;sudo /etc/init.d/numberorder_process_segments start&lt;br /&gt;
&lt;br /&gt;
ps -ef | grep http&lt;br /&gt;
&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
Where is the current git code?&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co svn+ssh://svn.marchex.com/src/svn/git/trunk/x86_64-deb5.0/git-1.7.1-1/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
^^ Fail on this one.  Go &lt;br /&gt;
&lt;br /&gt;
************************************************&lt;br /&gt;
&lt;br /&gt;
Whenever doing something in prod that is impacting in anyway:&lt;br /&gt;
&lt;br /&gt;
email to prod-notice@marchex.com&lt;br /&gt;
&lt;br /&gt;
ops4.sea has a directory called: /site/escrow-service/data  &lt;br /&gt;
	In this directory you see escrow...just a text file....sudo less escrow to grep out a password if need be&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Force config update on a server:  (as in when a server isn't picking up changes made in last3)&lt;br /&gt;
(01:35:18 PM) chubsie: sudo (heh) /etc/init.d/cfservd restart&lt;br /&gt;
&lt;br /&gt;
*************************************************/&lt;br /&gt;
&lt;br /&gt;
PFC pay for call&lt;br /&gt;
&lt;br /&gt;
MCA Marchex Call Analytics&lt;br /&gt;
&lt;br /&gt;
NIM &lt;br /&gt;
&lt;br /&gt;
**********************************************&lt;br /&gt;
&lt;br /&gt;
SQL stuff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; begin;&lt;br /&gt;
BEGIN&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164170000', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164180525', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164562981', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where number in&lt;br /&gt;
('4164170000','4164180525','4164562981');&lt;br /&gt;
number | account_id | created&lt;br /&gt;
------------+------------+-------------------------------&lt;br /&gt;
4164170000 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
4164180525 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
4164562981 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
(3 rows)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; commit;&lt;br /&gt;
COMMIT&lt;br /&gt;
adtrack=&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*************************************************************&lt;br /&gt;
Deployment   mim channel next_deploy&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pulley fun!&lt;br /&gt;
slugfest is where you start&lt;br /&gt;
/site/pulley/bin/pulley&lt;br /&gt;
login&lt;br /&gt;
source  (staging or production)&lt;br /&gt;
&lt;br /&gt;
submit nim-redis-conf#mca_router_release_rc_11&lt;br /&gt;
&lt;br /&gt;
whack nim-redis-conf#mca_router_release_rc_11 nimcache1.phl nimcache2.phl nimcache3.phl&lt;br /&gt;
&lt;br /&gt;
note that the conf name and tag are separated by the hash.  You can release to multiple boxes with whitespace as a separator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example deployment stuff&lt;br /&gt;
submit nx-proxy-primedia#PFC_1_068_RC_01	SUCCESS&lt;br /&gt;
submit nx-cs-publisher#PFC_1_068_RC_01	SUCCESS&lt;br /&gt;
submit nx-mgmt-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-user-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-reporting-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-public-ui#PFC_1_067_RC_02	FAIL&lt;br /&gt;
submit nx-voicestar-sync#VS_SYNCER_HF_01 SUCCESS	&lt;br /&gt;
passenger#PASSENGER_0_0_2	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
whack nx-proxy-primedia nxclp1.sad nxclp2.sad	Success&lt;br /&gt;
whack nx-cs-publisher nxpub1.sad nxpub2.sad	SUCCESS&lt;br /&gt;
whack nx-user-api nxapi1.sad nxapi2.sad	SUCCESS&lt;br /&gt;
whack nx-mgmt-api nxapi1.sad nxapi2.sad	SUCCESS&lt;br /&gt;
whack nx-reporting-api nxapi1.sad nxapi2.sad SUCCESS	&lt;br /&gt;
whack ruby nxui1.sad nxui2.sad	skipped&lt;br /&gt;
whack passenger nxui1.sad nxui2.sad skipped	&lt;br /&gt;
whack nx-public-ui nxui1.sad nxui2.sad	skipped for now&lt;br /&gt;
whack nx-voicestar-sync nxpub1.sad nxpub2.sad success&lt;br /&gt;
&lt;br /&gt;
nx-call-settings-redis-conf  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**************************************************************&lt;br /&gt;
&lt;br /&gt;
Zenoss Bits&lt;br /&gt;
&lt;br /&gt;
/usr/local/zenoss/common/libexec/check_http ${here/id} -f -R Please sign in&lt;br /&gt;
&lt;br /&gt;
****************************************************************&lt;br /&gt;
&lt;br /&gt;
Voicestar&lt;br /&gt;
DB3 if you update the symlink on prod databases otherwise you blow away the db&lt;br /&gt;
&lt;br /&gt;
****************************************************************&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Postgres (need to get to adtrack via culture club as there are connectivity issues going direct)&lt;br /&gt;
&lt;br /&gt;
Note to self.  Need to be setting up pgpass file and appropriate pathing statements for my profile or else.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(03:13:03 PM) khochhalter@mim: adtrack=&amp;gt; \d at_whitelist&lt;br /&gt;
              Table &amp;quot;public.at_whitelist&amp;quot;&lt;br /&gt;
   Column   |           Type           |   Modifiers&lt;br /&gt;
------------+--------------------------+---------------&lt;br /&gt;
 number     | text                     | not null&lt;br /&gt;
 account_id | text                     | not null&lt;br /&gt;
 created    | timestamp with time zone | default now()&lt;br /&gt;
Indexes:&lt;br /&gt;
    &amp;quot;at_whitelist_pkey&amp;quot; PRIMARY KEY, btree (number, account_id)&lt;br /&gt;
    &amp;quot;whitelist_cache_key&amp;quot; btree (((('whitelist:'::text || number) || ':'::text) || account_id))&lt;br /&gt;
Triggers:&lt;br /&gt;
    _adtrack_cluster_logtrigger AFTER INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE _adtrack_cluster.logtrigger('_adtrack_cluster', '107', 'kk')&lt;br /&gt;
    update_whitelist_cache_trg AFTER INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE list_to_cache_queue()&lt;br /&gt;
Disabled triggers:&lt;br /&gt;
    _adtrack_cluster_denyaccess BEFORE INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE _adtrack_cluster.denyaccess('_adtrack_cluster')&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; begin;&lt;br /&gt;
BEGIN&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values ('6502800002','CA6ph0pTj_0zIQE0');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where account_id = 'CA6ph0pTj_0zIQE0';&lt;br /&gt;
   number   |    account_id    |            created&lt;br /&gt;
------------+------------------+-------------------------------&lt;br /&gt;
 6502800002 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
(1 row)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values ('4152589777','CA6ph0pTj_0zIQE0');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where account_id = 'CA6ph0pTj_0zIQE0';&lt;br /&gt;
   number   |    account_id    |            created&lt;br /&gt;
------------+------------------+-------------------------------&lt;br /&gt;
 6502800002 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
 4152589777 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
(2 rows)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; commit;&lt;br /&gt;
COMMIT&lt;br /&gt;
adtrack=&amp;gt;&lt;br /&gt;
(03:13:17 PM) khochhalter@mim: http://intranet.marchex.com/techwiki/Wiki.jsp?page=VS.Database.Access&lt;br /&gt;
(03:23:21 PM) khochhalter@mim: http://intranet.marchex.com/techwiki/Wiki.jsp?page=VS.DatabaseRestore&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*********************************************************************&lt;br /&gt;
Update dns in the company via our fancy cvs repo&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cvs co dns&lt;br /&gt;
edit file that you need to edit&lt;br /&gt;
update RELEASE_NOTES in tinydns-marchex with the new tag and whatnot&lt;br /&gt;
cvs diff -uN  | less  //Check your diff bitch!&lt;br /&gt;
cvs diff -uN &amp;gt; ~/&amp;lt;tag&amp;gt;.diff  //Get your file for sending out for code review&lt;br /&gt;
cvs commit ... put your info in there and save it&lt;br /&gt;
//Tag your shizz&lt;br /&gt;
cvs tag TINYDNS_MARCHEX_1_1_844  // just so happens to be the tag I used on that find day&lt;br /&gt;
tell prod-notice@ that you're going to do something fun with dns&lt;br /&gt;
log into slugfest and then pulley and &lt;br /&gt;
status tinydns-marchex-data //look and see that your tag is the next increment, and gets you a lovely list of servers to whack&lt;br /&gt;
submit tinydns-marchex-data#&amp;lt;that tag thing again&amp;gt;&lt;br /&gt;
whack tiny-dns-marchex server1 server2 server3 // whatever the servers are that you want to whack&lt;br /&gt;
status tinydns-marchex-data // get you some good info on whether or not you successfully whacked&lt;br /&gt;
&lt;br /&gt;
TINYDNS_MARCHEX_1_1_863&lt;br /&gt;
*) tinydns-marchex-data:  Changed hostnames for nimcache3/4.qa to 1/2.qa2 and&lt;br /&gt;
   changed nimcr3/4.qa to nimcr1/2.qa2 [pmorris]&lt;br /&gt;
&lt;br /&gt;
whack tinydns-marchex-data ns1.sad ns2.sad ns3.phl ns4.phl ops1.sea ops2.sea&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
************************************************************************&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
New number 973.749.1276&lt;br /&gt;
Number that should not route to -- 973.749.1079&lt;br /&gt;
8.14.170.143, 144 are the test servers that 1276 should be routing to.&lt;br /&gt;
&lt;br /&gt;
6:0 &amp;lt;-- appears to be the port the PRI is connected up on both routers&lt;br /&gt;
&lt;br /&gt;
vgw1-r7.ccsphl.voicestar.com&lt;br /&gt;
vgw1-r8.ccsphl.voicestar.com&lt;br /&gt;
&lt;br /&gt;
W0nd3rTw1ns&lt;br /&gt;
&lt;br /&gt;
Output modifiers : begin include exclude&lt;br /&gt;
&lt;br /&gt;
test voice translation-rule name-tag input-number&lt;br /&gt;
&lt;br /&gt;
sho call history voice brief&lt;br /&gt;
265F : 8448368 13868561020ms.426899 +-1 +11800 pid:204 Originate 9737491276&lt;br /&gt;
 dur 00:00:00 tx:430/68800 rx:288/46080 10  (normal call clearing (16))&lt;br /&gt;
 IP 8.14.168.207:15684 SRTP: off rtt:1ms pl:3000/0ms lost:0/1/0 delay:70/60/100ms g711ulaw TextRelay: off&lt;br /&gt;
 media inactive detected:n media contrl rcvd:n/a timestamp:n/a&lt;br /&gt;
 long duration call detected:n long dur callduration :n/a timestamp:n/a&lt;br /&gt;
&lt;br /&gt;
265F : 8448367 13868561010ms.426900 +-1 +11800 pid:200 Answer 2064341366&lt;br /&gt;
 dur 00:00:00 tx:529/84640 rx:288/46080 10  (normal call clearing (16))&lt;br /&gt;
 Telephony 6/0:1:D (8448367) [6/0:1.21] tx:10640/0/0ms g711ulaw noise:-55dBm acom:89dBm&lt;br /&gt;
 long duration call detected:n long dur callduration :n/a timestamp:n/a&lt;br /&gt;
&lt;br /&gt;
show voice call summary&lt;br /&gt;
show voice call status&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Controller 1/7 is down.&lt;br /&gt;
&lt;br /&gt;
controller T1 1/7&lt;br /&gt;
 framing esf&lt;br /&gt;
 linecode b8zs&lt;br /&gt;
 pri-group timeslots 1-24&lt;br /&gt;
 description Paetec SGNS045157&lt;br /&gt;
&lt;br /&gt;
T1 1/6 is up.&lt;br /&gt;
  Applique type is Channelized T1&lt;br /&gt;
  Cablelength is long gain36 0db&lt;br /&gt;
  Description: Paetec SGNS045163&lt;br /&gt;
  No alarms detected.&lt;br /&gt;
  alarm-trigger is not set&lt;br /&gt;
  Version info of slot 1:  HW: 768, PLD Rev: 4&lt;br /&gt;
  Framer Version: 0x8&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
dial-peer voice 107 pots&lt;br /&gt;
 description outgoing to POTS, VSSIP-&amp;gt;100-&amp;gt;107-&amp;gt;POTS&lt;br /&gt;
 preference 1&lt;br /&gt;
 destination-pattern 9907&lt;br /&gt;
 port 1/6:D&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Numbers are in the call route repo in git  (cloned the callroute directory)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dial plan needs to be &amp;quot;called number 800-800-8000 routes to 8.14.170.143 8.14.170.144&lt;br /&gt;
&lt;br /&gt;
As near as I can tell this *should* give us the results that we would want since it's a specific match.   I'm still don't entirely have my head wrapped around the translation rules.  So once Sean gets the test number assigned to the XO PRI, we can schedule a maintenance event and I can see what happens with that.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dial-peer voice 301 voip&lt;br /&gt;
 description outgoing SIP to sip4&lt;br /&gt;
 preference 9&lt;br /&gt;
 destination-pattern NPANXXXXXX&lt;br /&gt;
 translate-outgoing called 3  (not sure this is actually needed here)&lt;br /&gt;
 session protocol sipv2&lt;br /&gt;
 session target ipv4:8.14.170.143&lt;br /&gt;
 dtmf-relay rtp-nte&lt;br /&gt;
 codec g711ulaw&lt;br /&gt;
 no vad&lt;br /&gt;
&lt;br /&gt;
dial-peer voice 302 voip&lt;br /&gt;
 description outgoing SIP to sip4&lt;br /&gt;
 preference 9&lt;br /&gt;
 destination-pattern NPANXXXXXX&lt;br /&gt;
 translate-outgoing called 3&lt;br /&gt;
 session protocol sipv2&lt;br /&gt;
 session target ipv4:8.14.170.144&lt;br /&gt;
 dtmf-relay rtp-nte&lt;br /&gt;
 codec g711ulaw&lt;br /&gt;
 no vad&lt;br /&gt;
&lt;br /&gt;
translation-rule 1&lt;br /&gt;
 Rule 0 ^10 0&lt;br /&gt;
 Rule 1 ^11 1&lt;br /&gt;
 Rule 2 ^12 2&lt;br /&gt;
 Rule 3 ^13 3&lt;br /&gt;
 Rule 4 ^14 4&lt;br /&gt;
 Rule 5 ^15 5&lt;br /&gt;
 Rule 6 ^16 6&lt;br /&gt;
 Rule 7 ^17 7&lt;br /&gt;
 Rule 8 ^18 8&lt;br /&gt;
 Rule 9 ^19 9&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
translation-rule 2&lt;br /&gt;
 Rule 0 ^0 99000&lt;br /&gt;
 Rule 1 ^1 99001&lt;br /&gt;
 Rule 2 ^2 99002&lt;br /&gt;
 Rule 3 ^3 99003&lt;br /&gt;
 Rule 4 ^4 99004&lt;br /&gt;
 Rule 5 ^5 99005&lt;br /&gt;
 Rule 6 ^6 99006&lt;br /&gt;
 Rule 7 ^7 99007&lt;br /&gt;
 Rule 8 ^8 99008&lt;br /&gt;
 Rule 9 ^9 99009&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
translation-rule 3&lt;br /&gt;
 Rule 0 ^99000 0&lt;br /&gt;
 Rule 1 ^99001 1&lt;br /&gt;
 Rule 2 ^99002 2&lt;br /&gt;
 Rule 3 ^99003 3&lt;br /&gt;
 Rule 4 ^99004 4&lt;br /&gt;
 Rule 5 ^99005 5&lt;br /&gt;
 Rule 6 ^99006 6&lt;br /&gt;
 Rule 7 ^99007 7&lt;br /&gt;
&lt;br /&gt;
for i in {1..11} ; do cd /home/www$i/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new;done&lt;br /&gt;
&lt;br /&gt;
for i in {1..11} ; do ssh www$i &amp;quot;cd /home/www$i/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new&amp;quot;;done&lt;br /&gt;
&lt;br /&gt;
cd /home/www11/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**************************************&lt;br /&gt;
&lt;br /&gt;
Adtrack database recovery&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(11:56:12 AM) Jacob Drahos: in Hochhalter: ok&lt;br /&gt;
(11:08:06 AM) Kevin Hochhalter: so, you need to start adtrack_call_logger on the cp servers&lt;br /&gt;
(11:08:28 AM) Kevin Hochhalter: you have to do this somewhat slowly and carefully&lt;br /&gt;
(11:08:59 AM) Kevin Hochhalter: watch fad-gadget:/var/log/asterisk while you're doing this, and monitor /site/mvs-ast-call-log on each cp server&lt;br /&gt;
(11:09:26 AM) Kevin Hochhalter: if adtrack_call_logger gets hung up on a given cp server, shut it down and kill it's pids if you have to&lt;br /&gt;
(11:09:31 AM) Kevin Hochhalter: and move on to the next one&lt;br /&gt;
(11:10:16 AM) Kevin Hochhalter: once all of the cp servers have processed all of the files, go back through and deal with anything in /site/mvs-ast-call-log/dead on each host&lt;br /&gt;
(11:10:37 AM) Kevin Hochhalter: when you're about halfway through the cp servers, restart mpc_audio_convert on the ac servers&lt;br /&gt;
(11:10:55 AM) Jacob Drahos: so far so good&lt;br /&gt;
(11:11:05 AM) Jacob Drahos: getting started unless i need to know more&lt;br /&gt;
(11:11:11 AM) Kevin Hochhalter: okie dokie&lt;br /&gt;
(11:11:22 AM) Kevin Hochhalter: if you have questions call my cell: 206-303-9095&lt;br /&gt;
(11:11:34 AM) Kevin Hochhalter: I'll stay on mim but might not be close to the 'puter&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
********************************************&lt;br /&gt;
&lt;br /&gt;
Set up new users in the next ui via http://cm.next.marchex.com/&lt;br /&gt;
Under the internal users tab.&lt;br /&gt;
&lt;br /&gt;
***********************************************&lt;br /&gt;
&lt;br /&gt;
Make vstactical tarball:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
VSTACTICAL_TAG=VSTACTICAL_0_6_138&lt;br /&gt;
git archive --remote=git.marchex.com:/src/git/vstactical --format=tar --&lt;br /&gt;
prefix=$VSTACTICAL_TAG/ $VSTACTICAL_TAG | gzip -v &amp;gt; &lt;br /&gt;
$VSTACTICAL_TAG.tar.gz&lt;br /&gt;
&lt;br /&gt;
Distribute tarball:&lt;br /&gt;
&lt;br /&gt;
for i in {1..2} ; do sudo cp VSTACTICAL_#_#_##.tar.gz &lt;br /&gt;
/home/cron$i/:~/;done&lt;br /&gt;
&lt;br /&gt;
Unpack tarball:&lt;br /&gt;
&lt;br /&gt;
for i in {2..2} ; do cd /home/cron$i ; sudo gtar -xvzf &lt;br /&gt;
VSTACTICAL_#_#_##.tar.gz ; sudo ln -s VSTACTICAL_#_#_## &lt;br /&gt;
vstactical.new;done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Deploy:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
On cron1 and cron2 host: &lt;br /&gt;
Verify extracted tarball from pre-deploy steps &lt;br /&gt;
Note the old symlink ls -l vstactical &lt;br /&gt;
Atomically replace symlinks sudo perl -e 'rename shift, &lt;br /&gt;
shift or die $!' vstactical.new vstactical&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tacticals can be run on either cron1 or cron2.&lt;br /&gt;
&lt;br /&gt;
f@ilBl0g!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*****************************************************&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep '19/Oct/2011:17:2' access_log | cut -d &amp;quot; &amp;quot; -f 5 | sort | uniq -c | sort -rn | head -n 10&lt;br /&gt;
grep '19/Oct/2011:17:2' access_log | cut -d &amp;quot; &amp;quot; -f 5 | grep -v '^-' | sort | uniq -c | sort -rn | head -n 10&lt;br /&gt;
&lt;br /&gt;
better than tcpdump tshark !&lt;br /&gt;
&lt;br /&gt;
tshark -i bond1 port 5060 -t ad&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
Pie^c0ch8$ or Pie^C0ch8$&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
adtrack blacklist stuff&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
adtrack_ro=&amp;gt; select * from at_penalty_box where number = '7709627220';&lt;br /&gt;
number | unassigned_lines | penalty_started | &lt;br /&gt;
current_penalty | blacklist_until &lt;br /&gt;
------------+------------------+-------------------------------+-----------------+------------------------------&lt;br /&gt;
7709627220 | 246 | 2011-10-07 09:50:27.672961-04 | 3 mons &lt;br /&gt;
| 2012-02-01 16:31:13.74135-05&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
\x gets you a nicely formatted display (ugh damn you postgresql)&lt;br /&gt;
&lt;br /&gt;
whitelist a number in adtrack&lt;br /&gt;
select * from at_account where name ilike '%NCI%';&lt;br /&gt;
&lt;br /&gt;
Or even this!&lt;br /&gt;
select name from at_account where account_id = 'CA6phk1xT0VbwgBK';&lt;br /&gt;
&lt;br /&gt;
begin;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;use 'global' if global&amp;gt;');&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;use 'global' if global&amp;gt;');&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;hash key&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
select * from at_whitelist where number in ('&amp;lt;##########&amp;gt;','&amp;lt;##########&amp;gt;','&amp;lt;##########&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
commit;&lt;br /&gt;
&lt;br /&gt;
i.e. I want to insert into &lt;br /&gt;
&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('5416337625','QrOXy0Q9KMgELQDF');&lt;br /&gt;
select * from at_whitelist where number in ('5416337625');&lt;br /&gt;
&lt;br /&gt;
8323160383 QrOX60a7VDtzfwD1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/pgsql/pgsql-8.4.4/bin/psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
UPDATE at_forward_no&lt;br /&gt;
SET matchrule = NULL&lt;br /&gt;
FROM at_settings&lt;br /&gt;
WHERE at_settings.settings_id = at_forward_no.settings_id&lt;br /&gt;
AND account_id = 'CA6phk3VXWsSoAG_';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*****************************************************dconcepcion@marchex.com&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
find /mnt/site/backups/* -mtime +15 -exec rm {} \;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*****************************************************&lt;br /&gt;
Asterisk maintenance stuff&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
connect to console (change -i to -r from your ps -ef cruft)&lt;br /&gt;
sudo /site/asterisk/asterisk-1.6.2.6/sbin/asterisk -C /site/nx-call-proc-ast-conf/conf/asterisk.conf -r&lt;br /&gt;
&lt;br /&gt;
core show calls&lt;br /&gt;
sip show channels&lt;br /&gt;
sip show channelstats&lt;br /&gt;
core stop now&lt;br /&gt;
core stop gracefully&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*********************************************************&lt;br /&gt;
&lt;br /&gt;
NetScaler net scaler&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh as nsroot to appropriate machine&lt;br /&gt;
disable server servername.phl&lt;br /&gt;
enable server servername.phl&lt;br /&gt;
&lt;br /&gt;
status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*********************************************************&lt;br /&gt;
&lt;br /&gt;
mysql crap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysqldump -u root -p -S /site/mysql-pike/run/mysql.sock sct3k &amp;gt; sct3k_20110211.sql&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; add_ce_id_and_ce_name_to_coinfo.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; CE_updates.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; 110963/update_vantage_links.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; 20110330_remove_keiser.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; Update50statesColleges_12-2011.sql &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
&lt;br /&gt;
kvm build crap:&lt;br /&gt;
&lt;br /&gt;
reset default image location&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
virsh&lt;br /&gt;
pool-destroy default&lt;br /&gt;
pool-undefine default&lt;br /&gt;
pool-define-as --name default --type dir --target /rum/media/user1/partition1&lt;br /&gt;
pool-autostart default&lt;br /&gt;
pool-build default&lt;br /&gt;
pool-start default&lt;br /&gt;
&lt;br /&gt;
cryptsetup luksChangeKey /dev/mapper/vgsys-imgs1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*****************************************&lt;br /&gt;
&lt;br /&gt;
Force unmount of nfs&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo umount -f -l /foo/bar&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
***************************************&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
For an Amazon Linux AMI, the user name is ec2-user.&lt;br /&gt;
&lt;br /&gt;
For a Centos AMI, the user name is centos.&lt;br /&gt;
&lt;br /&gt;
For a Debian AMI, the user name is admin or root.&lt;br /&gt;
&lt;br /&gt;
For a Fedora AMI, the user name is ec2-user or fedora.&lt;br /&gt;
&lt;br /&gt;
For a RHEL AMI, the user name is ec2-user or root.&lt;br /&gt;
&lt;br /&gt;
For a SUSE AMI, the user name is ec2-user or root.&lt;br /&gt;
&lt;br /&gt;
For an Ubuntu AMI, the user name is ubuntu or root.&lt;br /&gt;
&lt;br /&gt;
Otherwise, if ec2-user and root don't work, check with the AMI provider.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
***********************************************&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat secure | grep &amp;quot;Invalid user&amp;quot; | awk '{print $8}'  | sort | uniq -c | sort -rf | less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix &amp;quot;broken java&amp;quot;   comment out the jdk.tls.disabledAlgorithms line&lt;br /&gt;
sudo vi /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
switch branches&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git branch mc2-1382-kaldi-asr-ingress origin/mc2-1382-kaldi-asr-ingress&lt;br /&gt;
then&lt;br /&gt;
git checkout mc2-1382-kaldi-asr-ingress origin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**************************************************&lt;br /&gt;
&lt;br /&gt;
route53 aws cli&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
aws route53 change-resource-record-sets \&lt;br /&gt;
	--hosted-zone-id Z1U05RZDW3PZ3K \&lt;br /&gt;
	--change-batch file://./dns/qa/private-marchex.net-elb.json&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;PENDING&amp;quot;, &lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;Create/Update ELB Private QA Route 53 Entries for marchex.net&amp;quot;, &lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-10-07T17:36:18.545Z&amp;quot;, &lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C0136020ZF5C469VWNKO&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
aws route53  get-change --id /change/C0136020ZF5C469VWNKO&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;INSYNC&amp;quot;, &lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;Create/Update ELB Private QA Route 53 Entries for marchex.net&amp;quot;, &lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-10-07T17:36:18.545Z&amp;quot;, &lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C0136020ZF5C469VWNKO&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*****************************************************&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone foo&lt;br /&gt;
git checkout -b blah1&lt;br /&gt;
git commit -a&lt;br /&gt;
git push --set-upstream origin blah1&lt;br /&gt;
&lt;br /&gt;
Then go online and submit the branch as a pull request&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
******************************************************&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=OldHelperFile&amp;diff=103</id>
		<title>OldHelperFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=OldHelperFile&amp;diff=103"/>
		<updated>2021-12-01T19:20:12Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voicestar bastion host&lt;br /&gt;
&lt;br /&gt;
culture-club.ccsphl.voicestar.com&lt;br /&gt;
&lt;br /&gt;
On kajagoogoo (ugh)  gotta get the nis+ stuff going&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo useradd -u &amp;lt;marchex_uid&amp;gt; -g 1 -G 20,22,200 -s /bin/bash -c &amp;quot;Joe User&amp;quot; -k /etc/skel -d /home/kajagoogoo/users/&amp;lt;initial&amp;gt;/&amp;lt;username&amp;gt; -m &amp;lt;username&amp;gt;&lt;br /&gt;
edit /etc/netgroup (of course after making just in case backup)&lt;br /&gt;
&lt;br /&gt;
sudo passwd &amp;lt;username&amp;gt;&lt;br /&gt;
cd yp&lt;br /&gt;
ls&lt;br /&gt;
sudo make&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
have EU login and change their password on kajagoogoo ... one that is complete another make in /var/yp must be done.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo useradd -u 2010 -g 1 -G 20,22,200 -s /bin/bash -c &amp;quot;John Crawford&amp;quot; -k /etc/skel -d /home/kajagoogoo/users/j/jacrawford -m jacrawford&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voicestar dev/qa nodes:&lt;br /&gt;
wwwdev.ccsphl&lt;br /&gt;
vscpdev1.ccsphl&lt;br /&gt;
vsacdev1.ccsphl (and 2)&lt;br /&gt;
vspdfdev1.ccsphl (and 2)&lt;br /&gt;
&lt;br /&gt;
Deploys to staging/qa&lt;br /&gt;
&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vscodev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vscpdev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vsacdev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vsacdev2.phl:~/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What was done on wwwdev (slightly differenty than &lt;br /&gt;
cd /home/wwwdev/www/htdocs/&lt;br /&gt;
ls&lt;br /&gt;
sudo cp ~/ADTRACK_1_1_26.tar.gz .&lt;br /&gt;
ls&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo gtar -zxvf ADTRACK_1_1_26.tar.gz &lt;br /&gt;
ls&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo ln -s ADTRACK_1_1_26 adtrack.new&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo /etc/init.d/apache stop;sudo /etc/init.d/blix stop;sudo /etc/init.d/at_error_snmp_converter stop;sudo /etc&lt;br /&gt;
/init.d/numberorder_process_orders stop;sudo /etc/init.d/numberorder_process_segments stop&lt;br /&gt;
&lt;br /&gt;
sudo perl -e 'rename shift, shift or die $!' adtrack.new adtrack &lt;br /&gt;
&lt;br /&gt;
ls -latr&lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache start;sudo /etc/init.d/blix start;sudo /etc/init.d/at_error_snmp_converter start;sudo /&lt;br /&gt;
etc/init.d/numberorder_process_orders start;sudo /etc/init.d/numberorder_process_segments start&lt;br /&gt;
&lt;br /&gt;
ps -ef | grep http&lt;br /&gt;
&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
Where is the current git code?&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co svn+ssh://svn.marchex.com/src/svn/git/trunk/x86_64-deb5.0/git-1.7.1-1/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
^^ Fail on this one.  Go &lt;br /&gt;
&lt;br /&gt;
************************************************&lt;br /&gt;
&lt;br /&gt;
Whenever doing something in prod that is impacting in anyway:&lt;br /&gt;
&lt;br /&gt;
email to prod-notice@marchex.com&lt;br /&gt;
&lt;br /&gt;
ops4.sea has a directory called: /site/escrow-service/data  &lt;br /&gt;
	In this directory you see escrow...just a text file....sudo less escrow to grep out a password if need be&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Force config update on a server:  (as in when a server isn't picking up changes made in last3)&lt;br /&gt;
(01:35:18 PM) chubsie: sudo (heh) /etc/init.d/cfservd restart&lt;br /&gt;
&lt;br /&gt;
*************************************************/&lt;br /&gt;
&lt;br /&gt;
PFC pay for call&lt;br /&gt;
&lt;br /&gt;
MCA Marchex Call Analytics&lt;br /&gt;
&lt;br /&gt;
NIM &lt;br /&gt;
&lt;br /&gt;
**********************************************&lt;br /&gt;
&lt;br /&gt;
SQL stuff&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; begin;&lt;br /&gt;
BEGIN&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164170000', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164180525', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164562981', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where number in&lt;br /&gt;
('4164170000','4164180525','4164562981');&lt;br /&gt;
number | account_id | created&lt;br /&gt;
------------+------------+-------------------------------&lt;br /&gt;
4164170000 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
4164180525 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
4164562981 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
(3 rows)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; commit;&lt;br /&gt;
COMMIT&lt;br /&gt;
adtrack=&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************************&lt;br /&gt;
Deployment   mim channel next_deploy&lt;br /&gt;
&lt;br /&gt;
Pulley fun!&lt;br /&gt;
slugfest is where you start&lt;br /&gt;
/site/pulley/bin/pulley&lt;br /&gt;
login&lt;br /&gt;
source  (staging or production)&lt;br /&gt;
&lt;br /&gt;
submit nim-redis-conf#mca_router_release_rc_11&lt;br /&gt;
&lt;br /&gt;
whack nim-redis-conf#mca_router_release_rc_11 nimcache1.phl nimcache2.phl nimcache3.phl&lt;br /&gt;
&lt;br /&gt;
note that the conf name and tag are separated by the hash.  You can release to multiple boxes with whitespace as a separator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example deployment stuff&lt;br /&gt;
submit nx-proxy-primedia#PFC_1_068_RC_01	SUCCESS&lt;br /&gt;
submit nx-cs-publisher#PFC_1_068_RC_01	SUCCESS&lt;br /&gt;
submit nx-mgmt-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-user-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-reporting-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-public-ui#PFC_1_067_RC_02	FAIL&lt;br /&gt;
submit nx-voicestar-sync#VS_SYNCER_HF_01 SUCCESS	&lt;br /&gt;
passenger#PASSENGER_0_0_2	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
whack nx-proxy-primedia nxclp1.sad nxclp2.sad	Success&lt;br /&gt;
whack nx-cs-publisher nxpub1.sad nxpub2.sad	SUCCESS&lt;br /&gt;
whack nx-user-api nxapi1.sad nxapi2.sad	SUCCESS&lt;br /&gt;
whack nx-mgmt-api nxapi1.sad nxapi2.sad	SUCCESS&lt;br /&gt;
whack nx-reporting-api nxapi1.sad nxapi2.sad SUCCESS	&lt;br /&gt;
whack ruby nxui1.sad nxui2.sad	skipped&lt;br /&gt;
whack passenger nxui1.sad nxui2.sad skipped	&lt;br /&gt;
whack nx-public-ui nxui1.sad nxui2.sad	skipped for now&lt;br /&gt;
whack nx-voicestar-sync nxpub1.sad nxpub2.sad success&lt;br /&gt;
&lt;br /&gt;
nx-call-settings-redis-conf  &lt;br /&gt;
&lt;br /&gt;
**************************************************************&lt;br /&gt;
&lt;br /&gt;
Zenoss Bits&lt;br /&gt;
&lt;br /&gt;
/usr/local/zenoss/common/libexec/check_http ${here/id} -f -R Please sign in&lt;br /&gt;
&lt;br /&gt;
****************************************************************&lt;br /&gt;
&lt;br /&gt;
Voicestar&lt;br /&gt;
DB3 if you update the symlink on prod databases otherwise you blow away the db&lt;br /&gt;
&lt;br /&gt;
****************************************************************&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
&lt;br /&gt;
Postgres (need to get to adtrack via culture club as there are connectivity issues going direct)&lt;br /&gt;
&lt;br /&gt;
Note to self.  Need to be setting up pgpass file and appropriate pathing statements for my profile or else.&lt;br /&gt;
&lt;br /&gt;
(03:13:03 PM) khochhalter@mim: adtrack=&amp;gt; \d at_whitelist&lt;br /&gt;
              Table &amp;quot;public.at_whitelist&amp;quot;&lt;br /&gt;
   Column   |           Type           |   Modifiers&lt;br /&gt;
------------+--------------------------+---------------&lt;br /&gt;
 number     | text                     | not null&lt;br /&gt;
 account_id | text                     | not null&lt;br /&gt;
 created    | timestamp with time zone | default now()&lt;br /&gt;
Indexes:&lt;br /&gt;
    &amp;quot;at_whitelist_pkey&amp;quot; PRIMARY KEY, btree (number, account_id)&lt;br /&gt;
    &amp;quot;whitelist_cache_key&amp;quot; btree (((('whitelist:'::text || number) || ':'::text) || account_id))&lt;br /&gt;
Triggers:&lt;br /&gt;
    _adtrack_cluster_logtrigger AFTER INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE _adtrack_cluster.logtrigger('_adtrack_cluster', '107', 'kk')&lt;br /&gt;
    update_whitelist_cache_trg AFTER INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE list_to_cache_queue()&lt;br /&gt;
Disabled triggers:&lt;br /&gt;
    _adtrack_cluster_denyaccess BEFORE INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE _adtrack_cluster.denyaccess('_adtrack_cluster')&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; begin;&lt;br /&gt;
BEGIN&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values ('6502800002','CA6ph0pTj_0zIQE0');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where account_id = 'CA6ph0pTj_0zIQE0';&lt;br /&gt;
   number   |    account_id    |            created&lt;br /&gt;
------------+------------------+-------------------------------&lt;br /&gt;
 6502800002 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
(1 row)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values ('4152589777','CA6ph0pTj_0zIQE0');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where account_id = 'CA6ph0pTj_0zIQE0';&lt;br /&gt;
   number   |    account_id    |            created&lt;br /&gt;
------------+------------------+-------------------------------&lt;br /&gt;
 6502800002 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
 4152589777 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
(2 rows)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; commit;&lt;br /&gt;
COMMIT&lt;br /&gt;
adtrack=&amp;gt;&lt;br /&gt;
(03:13:17 PM) khochhalter@mim: http://intranet.marchex.com/techwiki/Wiki.jsp?page=VS.Database.Access&lt;br /&gt;
(03:23:21 PM) khochhalter@mim: http://intranet.marchex.com/techwiki/Wiki.jsp?page=VS.DatabaseRestore&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*********************************************************************&lt;br /&gt;
Update dns in the company via our fancy cvs repo&lt;br /&gt;
&lt;br /&gt;
cvs co dns&lt;br /&gt;
edit file that you need to edit&lt;br /&gt;
update RELEASE_NOTES in tinydns-marchex with the new tag and whatnot&lt;br /&gt;
cvs diff -uN  | less  //Check your diff bitch!&lt;br /&gt;
cvs diff -uN &amp;gt; ~/&amp;lt;tag&amp;gt;.diff  //Get your file for sending out for code review&lt;br /&gt;
cvs commit ... put your info in there and save it&lt;br /&gt;
//Tag your shizz&lt;br /&gt;
cvs tag TINYDNS_MARCHEX_1_1_844  // just so happens to be the tag I used on that find day&lt;br /&gt;
tell prod-notice@ that you're going to do something fun with dns&lt;br /&gt;
log into slugfest and then pulley and &lt;br /&gt;
status tinydns-marchex-data //look and see that your tag is the next increment, and gets you a lovely list of servers to whack&lt;br /&gt;
submit tinydns-marchex-data#&amp;lt;that tag thing again&amp;gt;&lt;br /&gt;
whack tiny-dns-marchex server1 server2 server3 // whatever the servers are that you want to whack&lt;br /&gt;
status tinydns-marchex-data // get you some good info on whether or not you successfully whacked&lt;br /&gt;
&lt;br /&gt;
TINYDNS_MARCHEX_1_1_863&lt;br /&gt;
*) tinydns-marchex-data:  Changed hostnames for nimcache3/4.qa to 1/2.qa2 and&lt;br /&gt;
   changed nimcr3/4.qa to nimcr1/2.qa2 [pmorris]&lt;br /&gt;
&lt;br /&gt;
whack tinydns-marchex-data ns1.sad ns2.sad ns3.phl ns4.phl ops1.sea ops2.sea&lt;br /&gt;
&lt;br /&gt;
************************************************************************&lt;br /&gt;
&lt;br /&gt;
New number 973.749.1276&lt;br /&gt;
Number that should not route to -- 973.749.1079&lt;br /&gt;
8.14.170.143, 144 are the test servers that 1276 should be routing to.&lt;br /&gt;
&lt;br /&gt;
6:0 &amp;lt;-- appears to be the port the PRI is connected up on both routers&lt;br /&gt;
&lt;br /&gt;
vgw1-r7.ccsphl.voicestar.com&lt;br /&gt;
vgw1-r8.ccsphl.voicestar.com&lt;br /&gt;
&lt;br /&gt;
W0nd3rTw1ns&lt;br /&gt;
&lt;br /&gt;
Output modifiers : begin include exclude&lt;br /&gt;
&lt;br /&gt;
test voice translation-rule name-tag input-number&lt;br /&gt;
&lt;br /&gt;
sho call history voice brief&lt;br /&gt;
265F : 8448368 13868561020ms.426899 +-1 +11800 pid:204 Originate 9737491276&lt;br /&gt;
 dur 00:00:00 tx:430/68800 rx:288/46080 10  (normal call clearing (16))&lt;br /&gt;
 IP 8.14.168.207:15684 SRTP: off rtt:1ms pl:3000/0ms lost:0/1/0 delay:70/60/100ms g711ulaw TextRelay: off&lt;br /&gt;
 media inactive detected:n media contrl rcvd:n/a timestamp:n/a&lt;br /&gt;
 long duration call detected:n long dur callduration :n/a timestamp:n/a&lt;br /&gt;
&lt;br /&gt;
265F : 8448367 13868561010ms.426900 +-1 +11800 pid:200 Answer 2064341366&lt;br /&gt;
 dur 00:00:00 tx:529/84640 rx:288/46080 10  (normal call clearing (16))&lt;br /&gt;
 Telephony 6/0:1:D (8448367) [6/0:1.21] tx:10640/0/0ms g711ulaw noise:-55dBm acom:89dBm&lt;br /&gt;
 long duration call detected:n long dur callduration :n/a timestamp:n/a&lt;br /&gt;
&lt;br /&gt;
show voice call summary&lt;br /&gt;
show voice call status&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Controller 1/7 is down.&lt;br /&gt;
&lt;br /&gt;
controller T1 1/7&lt;br /&gt;
 framing esf&lt;br /&gt;
 linecode b8zs&lt;br /&gt;
 pri-group timeslots 1-24&lt;br /&gt;
 description Paetec SGNS045157&lt;br /&gt;
&lt;br /&gt;
T1 1/6 is up.&lt;br /&gt;
  Applique type is Channelized T1&lt;br /&gt;
  Cablelength is long gain36 0db&lt;br /&gt;
  Description: Paetec SGNS045163&lt;br /&gt;
  No alarms detected.&lt;br /&gt;
  alarm-trigger is not set&lt;br /&gt;
  Version info of slot 1:  HW: 768, PLD Rev: 4&lt;br /&gt;
  Framer Version: 0x8&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
dial-peer voice 107 pots&lt;br /&gt;
 description outgoing to POTS, VSSIP-&amp;gt;100-&amp;gt;107-&amp;gt;POTS&lt;br /&gt;
 preference 1&lt;br /&gt;
 destination-pattern 9907&lt;br /&gt;
 port 1/6:D&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Numbers are in the call route repo in git  (cloned the callroute directory)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dial plan needs to be &amp;quot;called number 800-800-8000 routes to 8.14.170.143 8.14.170.144&lt;br /&gt;
&lt;br /&gt;
As near as I can tell this *should* give us the results that we would want since it's a specific match.   I'm still don't entirely have my head wrapped around the translation rules.  So once Sean gets the test number assigned to the XO PRI, we can schedule a maintenance event and I can see what happens with that.&lt;br /&gt;
&lt;br /&gt;
dial-peer voice 301 voip&lt;br /&gt;
 description outgoing SIP to sip4&lt;br /&gt;
 preference 9&lt;br /&gt;
 destination-pattern NPANXXXXXX&lt;br /&gt;
 translate-outgoing called 3  (not sure this is actually needed here)&lt;br /&gt;
 session protocol sipv2&lt;br /&gt;
 session target ipv4:8.14.170.143&lt;br /&gt;
 dtmf-relay rtp-nte&lt;br /&gt;
 codec g711ulaw&lt;br /&gt;
 no vad&lt;br /&gt;
&lt;br /&gt;
dial-peer voice 302 voip&lt;br /&gt;
 description outgoing SIP to sip4&lt;br /&gt;
 preference 9&lt;br /&gt;
 destination-pattern NPANXXXXXX&lt;br /&gt;
 translate-outgoing called 3&lt;br /&gt;
 session protocol sipv2&lt;br /&gt;
 session target ipv4:8.14.170.144&lt;br /&gt;
 dtmf-relay rtp-nte&lt;br /&gt;
 codec g711ulaw&lt;br /&gt;
 no vad&lt;br /&gt;
&lt;br /&gt;
translation-rule 1&lt;br /&gt;
 Rule 0 ^10 0&lt;br /&gt;
 Rule 1 ^11 1&lt;br /&gt;
 Rule 2 ^12 2&lt;br /&gt;
 Rule 3 ^13 3&lt;br /&gt;
 Rule 4 ^14 4&lt;br /&gt;
 Rule 5 ^15 5&lt;br /&gt;
 Rule 6 ^16 6&lt;br /&gt;
 Rule 7 ^17 7&lt;br /&gt;
 Rule 8 ^18 8&lt;br /&gt;
 Rule 9 ^19 9&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
translation-rule 2&lt;br /&gt;
 Rule 0 ^0 99000&lt;br /&gt;
 Rule 1 ^1 99001&lt;br /&gt;
 Rule 2 ^2 99002&lt;br /&gt;
 Rule 3 ^3 99003&lt;br /&gt;
 Rule 4 ^4 99004&lt;br /&gt;
 Rule 5 ^5 99005&lt;br /&gt;
 Rule 6 ^6 99006&lt;br /&gt;
 Rule 7 ^7 99007&lt;br /&gt;
 Rule 8 ^8 99008&lt;br /&gt;
 Rule 9 ^9 99009&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
translation-rule 3&lt;br /&gt;
 Rule 0 ^99000 0&lt;br /&gt;
 Rule 1 ^99001 1&lt;br /&gt;
 Rule 2 ^99002 2&lt;br /&gt;
 Rule 3 ^99003 3&lt;br /&gt;
 Rule 4 ^99004 4&lt;br /&gt;
 Rule 5 ^99005 5&lt;br /&gt;
 Rule 6 ^99006 6&lt;br /&gt;
 Rule 7 ^99007 7&lt;br /&gt;
&lt;br /&gt;
for i in {1..11} ; do cd /home/www$i/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new;done&lt;br /&gt;
&lt;br /&gt;
for i in {1..11} ; do ssh www$i &amp;quot;cd /home/www$i/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new&amp;quot;;done&lt;br /&gt;
&lt;br /&gt;
cd /home/www11/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new&lt;br /&gt;
&lt;br /&gt;
**************************************&lt;br /&gt;
&lt;br /&gt;
Adtrack database recovery&lt;br /&gt;
&lt;br /&gt;
(11:56:12 AM) Jacob Drahos: in Hochhalter: ok&lt;br /&gt;
(11:08:06 AM) Kevin Hochhalter: so, you need to start adtrack_call_logger on the cp servers&lt;br /&gt;
(11:08:28 AM) Kevin Hochhalter: you have to do this somewhat slowly and carefully&lt;br /&gt;
(11:08:59 AM) Kevin Hochhalter: watch fad-gadget:/var/log/asterisk while you're doing this, and monitor /site/mvs-ast-call-log on each cp server&lt;br /&gt;
(11:09:26 AM) Kevin Hochhalter: if adtrack_call_logger gets hung up on a given cp server, shut it down and kill it's pids if you have to&lt;br /&gt;
(11:09:31 AM) Kevin Hochhalter: and move on to the next one&lt;br /&gt;
(11:10:16 AM) Kevin Hochhalter: once all of the cp servers have processed all of the files, go back through and deal with anything in /site/mvs-ast-call-log/dead on each host&lt;br /&gt;
(11:10:37 AM) Kevin Hochhalter: when you're about halfway through the cp servers, restart mpc_audio_convert on the ac servers&lt;br /&gt;
(11:10:55 AM) Jacob Drahos: so far so good&lt;br /&gt;
(11:11:05 AM) Jacob Drahos: getting started unless i need to know more&lt;br /&gt;
(11:11:11 AM) Kevin Hochhalter: okie dokie&lt;br /&gt;
(11:11:22 AM) Kevin Hochhalter: if you have questions call my cell: 206-303-9095&lt;br /&gt;
(11:11:34 AM) Kevin Hochhalter: I'll stay on mim but might not be close to the 'puter&lt;br /&gt;
&lt;br /&gt;
********************************************&lt;br /&gt;
&lt;br /&gt;
Set up new users in the next ui via http://cm.next.marchex.com/&lt;br /&gt;
Under the internal users tab.&lt;br /&gt;
&lt;br /&gt;
***********************************************&lt;br /&gt;
&lt;br /&gt;
VSTACTICAL vstactical&lt;br /&gt;
&lt;br /&gt;
Scripts have been ran in QA. I am currently verifying data from files.&lt;br /&gt;
&lt;br /&gt;
I'm signing off, because I see no reason for any hesitation on this &lt;br /&gt;
deployment.&lt;br /&gt;
&lt;br /&gt;
Tag for deployment:&lt;br /&gt;
&lt;br /&gt;
VSTACTICAL_0_6_138&lt;br /&gt;
&lt;br /&gt;
Steps are:&lt;br /&gt;
&lt;br /&gt;
Make vstactical tarball:&lt;br /&gt;
&lt;br /&gt;
VSTACTICAL_TAG=VSTACTICAL_0_6_138&lt;br /&gt;
git archive --remote=git.marchex.com:/src/git/vstactical --format=tar --&lt;br /&gt;
prefix=$VSTACTICAL_TAG/ $VSTACTICAL_TAG | gzip -v &amp;gt; &lt;br /&gt;
$VSTACTICAL_TAG.tar.gz&lt;br /&gt;
&lt;br /&gt;
Distribute tarball:&lt;br /&gt;
&lt;br /&gt;
for i in {1..2} ; do sudo cp VSTACTICAL_#_#_##.tar.gz &lt;br /&gt;
/home/cron$i/:~/;done&lt;br /&gt;
&lt;br /&gt;
Unpack tarball:&lt;br /&gt;
&lt;br /&gt;
for i in {2..2} ; do cd /home/cron$i ; sudo gtar -xvzf &lt;br /&gt;
VSTACTICAL_#_#_##.tar.gz ; sudo ln -s VSTACTICAL_#_#_## &lt;br /&gt;
vstactical.new;done&lt;br /&gt;
&lt;br /&gt;
Deploy:&lt;br /&gt;
&lt;br /&gt;
On cron1 and cron2 host: &lt;br /&gt;
Verify extracted tarball from pre-deploy steps &lt;br /&gt;
Note the old symlink ls -l vstactical &lt;br /&gt;
Atomically replace symlinks sudo perl -e 'rename shift, &lt;br /&gt;
shift or die $!' vstactical.new vstactical&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tacticals can be run on either cron1 or cron2.&lt;br /&gt;
&lt;br /&gt;
f@ilBl0g!&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
grep '19/Oct/2011:17:2' access_log | cut -d &amp;quot; &amp;quot; -f 5 | sort | uniq -c | sort -rn | head -n 10&lt;br /&gt;
grep '19/Oct/2011:17:2' access_log | cut -d &amp;quot; &amp;quot; -f 5 | grep -v '^-' | sort | uniq -c | sort -rn | head -n 10&lt;br /&gt;
&lt;br /&gt;
better than tcpdump tshark !&lt;br /&gt;
&lt;br /&gt;
tshark -i bond1 port 5060 -t ad&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
vsac1-3 manage the mp3 transcoding.  #3 is slightly broked.  You go to vscp 1-4 /site/adtrack/current/conf to update mpc.phl file to add/remove stuff.&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
Pie^c0ch8$ or Pie^C0ch8$&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
adtrack blacklist stuff&lt;br /&gt;
&lt;br /&gt;
adtrack_ro=&amp;gt; select * from at_penalty_box where number = '7709627220';&lt;br /&gt;
number | unassigned_lines | penalty_started | &lt;br /&gt;
current_penalty | blacklist_until &lt;br /&gt;
------------+------------------+-------------------------------+-----------------+------------------------------&lt;br /&gt;
7709627220 | 246 | 2011-10-07 09:50:27.672961-04 | 3 mons &lt;br /&gt;
| 2012-02-01 16:31:13.74135-05&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
\x gets you a nicely formatted display (ugh damn you postgresql)&lt;br /&gt;
&lt;br /&gt;
whitelist a number in adtrack&lt;br /&gt;
select * from at_account where name ilike '%NCI%';&lt;br /&gt;
&lt;br /&gt;
Or even this!&lt;br /&gt;
select name from at_account where account_id = 'CA6phk1xT0VbwgBK';&lt;br /&gt;
&lt;br /&gt;
begin;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;use 'global' if global&amp;gt;');&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;use 'global' if global&amp;gt;');&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;hash key&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
select * from at_whitelist where number in ('&amp;lt;##########&amp;gt;','&amp;lt;##########&amp;gt;','&amp;lt;##########&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
commit;&lt;br /&gt;
&lt;br /&gt;
i.e. I want to insert into &lt;br /&gt;
&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('5416337625','QrOXy0Q9KMgELQDF');&lt;br /&gt;
select * from at_whitelist where number in ('5416337625');&lt;br /&gt;
&lt;br /&gt;
8323160383 QrOX60a7VDtzfwD1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/pgsql/pgsql-8.4.4/bin/psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
UPDATE at_forward_no&lt;br /&gt;
SET matchrule = NULL&lt;br /&gt;
FROM at_settings&lt;br /&gt;
WHERE at_settings.settings_id = at_forward_no.settings_id&lt;br /&gt;
AND account_id = 'CA6phk3VXWsSoAG_';&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*****************************************************dconcepcion@marchex.com&lt;br /&gt;
&lt;br /&gt;
find /mnt/site/backups/* -mtime +15 -exec rm {} \;&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
Asterisk maintenance stuff&lt;br /&gt;
&lt;br /&gt;
connect to console (change -i to -r from your ps -ef cruft)&lt;br /&gt;
sudo /site/asterisk/asterisk-1.6.2.6/sbin/asterisk -C /site/nx-call-proc-ast-conf/conf/asterisk.conf -r&lt;br /&gt;
&lt;br /&gt;
core show calls&lt;br /&gt;
sip show channels&lt;br /&gt;
sip show channelstats&lt;br /&gt;
core stop now&lt;br /&gt;
core stop gracefully&lt;br /&gt;
&lt;br /&gt;
*********************************************************&lt;br /&gt;
&lt;br /&gt;
NetScaler net scaler&lt;br /&gt;
&lt;br /&gt;
ssh as nsroot to appropriate machine&lt;br /&gt;
disable server servername.phl&lt;br /&gt;
enable server servername.phl&lt;br /&gt;
&lt;br /&gt;
status&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*********************************************************&lt;br /&gt;
&lt;br /&gt;
mysql crap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysqldump -u root -p -S /site/mysql-pike/run/mysql.sock sct3k &amp;gt; sct3k_20110211.sql&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; add_ce_id_and_ce_name_to_coinfo.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; CE_updates.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; 110963/update_vantage_links.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; 20110330_remove_keiser.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; Update50statesColleges_12-2011.sql &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
xen crap&lt;br /&gt;
&lt;br /&gt;
sudo xm create -c /etc/xen/U/config.file&lt;br /&gt;
sudo xm destroy &amp;lt;id&amp;gt;&lt;br /&gt;
sudo xm reboot &amp;lt;id&amp;gt;&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
&lt;br /&gt;
nim script cruft&lt;br /&gt;
&lt;br /&gt;
at ctns_to_return.txt | /site/perl/perl-5.10.1-1/bin/perl -I /site/oracle_client/client-11.2.0.1/5.10.1/lib return_numbers.pl --DSN=oranext-cluster.sad.marchex.com:1521/OPNEXT.marchex.com --User=nim_numbers --Pass=pFJ6w_XECmN &amp;gt; output.txt&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
&lt;br /&gt;
kvm build crap:&lt;br /&gt;
&lt;br /&gt;
reset default image location&lt;br /&gt;
&lt;br /&gt;
virsh&lt;br /&gt;
pool-destroy default&lt;br /&gt;
pool-undefine default&lt;br /&gt;
pool-define-as --name default --type dir --target /rum/media/user1/partition1&lt;br /&gt;
pool-autostart default&lt;br /&gt;
pool-build default&lt;br /&gt;
pool-start default&lt;br /&gt;
&lt;br /&gt;
cryptsetup luksChangeKey /dev/mapper/vgsys-imgs1&lt;br /&gt;
&lt;br /&gt;
*****************************************&lt;br /&gt;
&lt;br /&gt;
Force unmount of nfs&lt;br /&gt;
&lt;br /&gt;
sudo umount -f -l /foo/bar&lt;br /&gt;
&lt;br /&gt;
***************************************&lt;br /&gt;
&lt;br /&gt;
For an Amazon Linux AMI, the user name is ec2-user.&lt;br /&gt;
&lt;br /&gt;
For a Centos AMI, the user name is centos.&lt;br /&gt;
&lt;br /&gt;
For a Debian AMI, the user name is admin or root.&lt;br /&gt;
&lt;br /&gt;
For a Fedora AMI, the user name is ec2-user or fedora.&lt;br /&gt;
&lt;br /&gt;
For a RHEL AMI, the user name is ec2-user or root.&lt;br /&gt;
&lt;br /&gt;
For a SUSE AMI, the user name is ec2-user or root.&lt;br /&gt;
&lt;br /&gt;
For an Ubuntu AMI, the user name is ubuntu or root.&lt;br /&gt;
&lt;br /&gt;
Otherwise, if ec2-user and root don't work, check with the AMI provider.&lt;br /&gt;
&lt;br /&gt;
***********************************************&lt;br /&gt;
&lt;br /&gt;
cat secure | grep &amp;quot;Invalid user&amp;quot; | awk '{print $8}'  | sort | uniq -c | sort -rf | less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix &amp;quot;broken java&amp;quot;   comment out the jdk.tls.disabledAlgorithms line&lt;br /&gt;
sudo vi /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
switch branches&lt;br /&gt;
&lt;br /&gt;
git branch mc2-1382-kaldi-asr-ingress origin/mc2-1382-kaldi-asr-ingress&lt;br /&gt;
then&lt;br /&gt;
git checkout mc2-1382-kaldi-asr-ingress origin&lt;br /&gt;
&lt;br /&gt;
**************************************************&lt;br /&gt;
&lt;br /&gt;
route53 aws cli&lt;br /&gt;
aws route53 change-resource-record-sets \&lt;br /&gt;
	--hosted-zone-id Z1U05RZDW3PZ3K \&lt;br /&gt;
	--change-batch file://./dns/qa/private-marchex.net-elb.json&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;PENDING&amp;quot;, &lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;Create/Update ELB Private QA Route 53 Entries for marchex.net&amp;quot;, &lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-10-07T17:36:18.545Z&amp;quot;, &lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C0136020ZF5C469VWNKO&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
aws route53  get-change --id /change/C0136020ZF5C469VWNKO&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;INSYNC&amp;quot;, &lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;Create/Update ELB Private QA Route 53 Entries for marchex.net&amp;quot;, &lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-10-07T17:36:18.545Z&amp;quot;, &lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C0136020ZF5C469VWNKO&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
git clone foo&lt;br /&gt;
git checkout -b blah1&lt;br /&gt;
git commit -a&lt;br /&gt;
git push --set-upstream origin blah1&lt;br /&gt;
&lt;br /&gt;
Then go online and submit the branch as a pull request&lt;br /&gt;
&lt;br /&gt;
******************************************************&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
	<entry>
		<id>https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=OldHelperFile&amp;diff=102</id>
		<title>OldHelperFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.iwillfearnoevil.com/mediawiki/index.php?title=OldHelperFile&amp;diff=102"/>
		<updated>2021-12-01T19:17:47Z</updated>

		<summary type="html">&lt;p&gt;Pmorris: Created page with &amp;quot;Personal:  Desk Phone:  206 331 3451   nagios.sea.marchex.com &amp;lt;&amp;lt;-- our nagios instance  TINYDNS_MARCHEX_1_1_844 *************************************************  giving peopl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Personal:&lt;br /&gt;
&lt;br /&gt;
Desk Phone:  206 331 3451&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
nagios.sea.marchex.com &amp;lt;&amp;lt;-- our nagios instance&lt;br /&gt;
&lt;br /&gt;
TINYDNS_MARCHEX_1_1_844&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
giving people access to things&lt;br /&gt;
&lt;br /&gt;
http://id1.sea.marchex.com/last3&lt;br /&gt;
Production Ops (sysadmins and engineers) require a security role of sysadmin.  Search for it ya dork.&lt;br /&gt;
up to 30 min for it to propagate&lt;br /&gt;
&lt;br /&gt;
also ops people need to have last-admin security role set&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voicestar bastion host&lt;br /&gt;
&lt;br /&gt;
culture-club.ccsphl.voicestar.com&lt;br /&gt;
&lt;br /&gt;
On kajagoogoo (ugh)  gotta get the nis+ stuff going&lt;br /&gt;
&lt;br /&gt;
sudo useradd -u &amp;lt;marchex_uid&amp;gt; -g 1 -G 20,22,200 -s /bin/bash -c &amp;quot;Joe User&amp;quot; -k /etc/skel -d /home/kajagoogoo/users/&amp;lt;initial&amp;gt;/&amp;lt;username&amp;gt; -m &amp;lt;username&amp;gt;&lt;br /&gt;
edit /etc/netgroup (of course after making just in case backup)&lt;br /&gt;
&lt;br /&gt;
sudo passwd &amp;lt;username&amp;gt;&lt;br /&gt;
cd yp&lt;br /&gt;
ls&lt;br /&gt;
sudo make&lt;br /&gt;
exit&lt;br /&gt;
&lt;br /&gt;
have EU login and change their password on kajagoogoo ... one that is complete another make in /var/yp must be done.&lt;br /&gt;
&lt;br /&gt;
sudo useradd -u 2010 -g 1 -G 20,22,200 -s /bin/bash -c &amp;quot;John Crawford&amp;quot; -k /etc/skel -d /home/kajagoogoo/users/j/jacrawford -m jacrawford&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Voicestar dev/qa nodes:&lt;br /&gt;
wwwdev.ccsphl&lt;br /&gt;
vscpdev1.ccsphl&lt;br /&gt;
vsacdev1.ccsphl (and 2)&lt;br /&gt;
vspdfdev1.ccsphl (and 2)&lt;br /&gt;
&lt;br /&gt;
Deploys to staging/qa&lt;br /&gt;
&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vscodev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vscpdev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vsacdev1.phl:~/&lt;br /&gt;
scp ADTRACK_1_1_26.tar.gz vsacdev2.phl:~/&lt;br /&gt;
&lt;br /&gt;
What was done on wwwdev (slightly differenty than &lt;br /&gt;
cd /home/wwwdev/www/htdocs/&lt;br /&gt;
ls&lt;br /&gt;
sudo cp ~/ADTRACK_1_1_26.tar.gz .&lt;br /&gt;
ls&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo gtar -zxvf ADTRACK_1_1_26.tar.gz &lt;br /&gt;
ls&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo ln -s ADTRACK_1_1_26 adtrack.new&lt;br /&gt;
ls -latr&lt;br /&gt;
sudo /etc/init.d/apache stop;sudo /etc/init.d/blix stop;sudo /etc/init.d/at_error_snmp_converter stop;sudo /etc&lt;br /&gt;
/init.d/numberorder_process_orders stop;sudo /etc/init.d/numberorder_process_segments stop&lt;br /&gt;
&lt;br /&gt;
sudo perl -e 'rename shift, shift or die $!' adtrack.new adtrack &lt;br /&gt;
&lt;br /&gt;
ls -latr&lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache start;sudo /etc/init.d/blix start;sudo /etc/init.d/at_error_snmp_converter start;sudo /&lt;br /&gt;
etc/init.d/numberorder_process_orders start;sudo /etc/init.d/numberorder_process_segments start&lt;br /&gt;
&lt;br /&gt;
ps -ef | grep http&lt;br /&gt;
&lt;br /&gt;
exit&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
Where is the current git code?&lt;br /&gt;
svn co svn+ssh://svn.marchex.com/src/svn/git/trunk/x86_64-deb5.0/git-1.7.1-1/&lt;br /&gt;
&lt;br /&gt;
^^ Fail on this one.  Go &lt;br /&gt;
&lt;br /&gt;
************************************************&lt;br /&gt;
&lt;br /&gt;
Whenever doing something in prod that is impacting in anyway:&lt;br /&gt;
&lt;br /&gt;
email to prod-notice@marchex.com&lt;br /&gt;
&lt;br /&gt;
ops4.sea has a directory called: /site/escrow-service/data  &lt;br /&gt;
	In this directory you see escrow...just a text file....sudo less escrow to grep out a password if need be&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Force config update on a server:  (as in when a server isn't picking up changes made in last3)&lt;br /&gt;
(01:35:18 PM) chubsie: sudo (heh) /etc/init.d/cfservd restart&lt;br /&gt;
&lt;br /&gt;
*************************************************/&lt;br /&gt;
&lt;br /&gt;
PFC pay for call&lt;br /&gt;
&lt;br /&gt;
MCA Marchex Call Analytics&lt;br /&gt;
&lt;br /&gt;
NIM &lt;br /&gt;
&lt;br /&gt;
**********************************************&lt;br /&gt;
&lt;br /&gt;
SQL stuff&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; begin;&lt;br /&gt;
BEGIN&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164170000', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164180525', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values&lt;br /&gt;
('4164562981', 'global');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where number in&lt;br /&gt;
('4164170000','4164180525','4164562981');&lt;br /&gt;
number | account_id | created&lt;br /&gt;
------------+------------+-------------------------------&lt;br /&gt;
4164170000 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
4164180525 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
4164562981 | global | 2011-09-14 19:46:39.846512-04&lt;br /&gt;
(3 rows)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; commit;&lt;br /&gt;
COMMIT&lt;br /&gt;
adtrack=&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************************&lt;br /&gt;
Deployment   mim channel next_deploy&lt;br /&gt;
&lt;br /&gt;
Pulley fun!&lt;br /&gt;
slugfest is where you start&lt;br /&gt;
/site/pulley/bin/pulley&lt;br /&gt;
login&lt;br /&gt;
source  (staging or production)&lt;br /&gt;
&lt;br /&gt;
submit nim-redis-conf#mca_router_release_rc_11&lt;br /&gt;
&lt;br /&gt;
whack nim-redis-conf#mca_router_release_rc_11 nimcache1.phl nimcache2.phl nimcache3.phl&lt;br /&gt;
&lt;br /&gt;
note that the conf name and tag are separated by the hash.  You can release to multiple boxes with whitespace as a separator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example deployment stuff&lt;br /&gt;
submit nx-proxy-primedia#PFC_1_068_RC_01	SUCCESS&lt;br /&gt;
submit nx-cs-publisher#PFC_1_068_RC_01	SUCCESS&lt;br /&gt;
submit nx-mgmt-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-user-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-reporting-api#PFC_1_067_RC_02	SUCCESS&lt;br /&gt;
submit nx-public-ui#PFC_1_067_RC_02	FAIL&lt;br /&gt;
submit nx-voicestar-sync#VS_SYNCER_HF_01 SUCCESS	&lt;br /&gt;
passenger#PASSENGER_0_0_2	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
whack nx-proxy-primedia nxclp1.sad nxclp2.sad	Success&lt;br /&gt;
whack nx-cs-publisher nxpub1.sad nxpub2.sad	SUCCESS&lt;br /&gt;
whack nx-user-api nxapi1.sad nxapi2.sad	SUCCESS&lt;br /&gt;
whack nx-mgmt-api nxapi1.sad nxapi2.sad	SUCCESS&lt;br /&gt;
whack nx-reporting-api nxapi1.sad nxapi2.sad SUCCESS	&lt;br /&gt;
whack ruby nxui1.sad nxui2.sad	skipped&lt;br /&gt;
whack passenger nxui1.sad nxui2.sad skipped	&lt;br /&gt;
whack nx-public-ui nxui1.sad nxui2.sad	skipped for now&lt;br /&gt;
whack nx-voicestar-sync nxpub1.sad nxpub2.sad success&lt;br /&gt;
&lt;br /&gt;
nx-call-settings-redis-conf  &lt;br /&gt;
&lt;br /&gt;
**************************************************************&lt;br /&gt;
&lt;br /&gt;
Zenoss Bits&lt;br /&gt;
&lt;br /&gt;
/usr/local/zenoss/common/libexec/check_http ${here/id} -f -R Please sign in&lt;br /&gt;
&lt;br /&gt;
****************************************************************&lt;br /&gt;
&lt;br /&gt;
Voicestar&lt;br /&gt;
DB3 if you update the symlink on prod databases otherwise you blow away the db&lt;br /&gt;
&lt;br /&gt;
****************************************************************&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
&lt;br /&gt;
Postgres (need to get to adtrack via culture club as there are connectivity issues going direct)&lt;br /&gt;
&lt;br /&gt;
Note to self.  Need to be setting up pgpass file and appropriate pathing statements for my profile or else.&lt;br /&gt;
&lt;br /&gt;
(03:13:03 PM) khochhalter@mim: adtrack=&amp;gt; \d at_whitelist&lt;br /&gt;
              Table &amp;quot;public.at_whitelist&amp;quot;&lt;br /&gt;
   Column   |           Type           |   Modifiers&lt;br /&gt;
------------+--------------------------+---------------&lt;br /&gt;
 number     | text                     | not null&lt;br /&gt;
 account_id | text                     | not null&lt;br /&gt;
 created    | timestamp with time zone | default now()&lt;br /&gt;
Indexes:&lt;br /&gt;
    &amp;quot;at_whitelist_pkey&amp;quot; PRIMARY KEY, btree (number, account_id)&lt;br /&gt;
    &amp;quot;whitelist_cache_key&amp;quot; btree (((('whitelist:'::text || number) || ':'::text) || account_id))&lt;br /&gt;
Triggers:&lt;br /&gt;
    _adtrack_cluster_logtrigger AFTER INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE _adtrack_cluster.logtrigger('_adtrack_cluster', '107', 'kk')&lt;br /&gt;
    update_whitelist_cache_trg AFTER INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE list_to_cache_queue()&lt;br /&gt;
Disabled triggers:&lt;br /&gt;
    _adtrack_cluster_denyaccess BEFORE INSERT OR DELETE OR UPDATE ON at_whitelist FOR EACH ROW EXECUTE PROCEDURE _adtrack_cluster.denyaccess('_adtrack_cluster')&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; begin;&lt;br /&gt;
BEGIN&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values ('6502800002','CA6ph0pTj_0zIQE0');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where account_id = 'CA6ph0pTj_0zIQE0';&lt;br /&gt;
   number   |    account_id    |            created&lt;br /&gt;
------------+------------------+-------------------------------&lt;br /&gt;
 6502800002 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
(1 row)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; insert into at_whitelist (number, account_id) values ('4152589777','CA6ph0pTj_0zIQE0');&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
adtrack=&amp;gt; select * from at_whitelist where account_id = 'CA6ph0pTj_0zIQE0';&lt;br /&gt;
   number   |    account_id    |            created&lt;br /&gt;
------------+------------------+-------------------------------&lt;br /&gt;
 6502800002 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
 4152589777 | CA6ph0pTj_0zIQE0 | 2011-09-23 18:11:09.052406-04&lt;br /&gt;
(2 rows)&lt;br /&gt;
&lt;br /&gt;
adtrack=&amp;gt; commit;&lt;br /&gt;
COMMIT&lt;br /&gt;
adtrack=&amp;gt;&lt;br /&gt;
(03:13:17 PM) khochhalter@mim: http://intranet.marchex.com/techwiki/Wiki.jsp?page=VS.Database.Access&lt;br /&gt;
(03:23:21 PM) khochhalter@mim: http://intranet.marchex.com/techwiki/Wiki.jsp?page=VS.DatabaseRestore&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*********************************************************************&lt;br /&gt;
Update dns in the company via our fancy cvs repo&lt;br /&gt;
&lt;br /&gt;
cvs co dns&lt;br /&gt;
edit file that you need to edit&lt;br /&gt;
update RELEASE_NOTES in tinydns-marchex with the new tag and whatnot&lt;br /&gt;
cvs diff -uN  | less  //Check your diff bitch!&lt;br /&gt;
cvs diff -uN &amp;gt; ~/&amp;lt;tag&amp;gt;.diff  //Get your file for sending out for code review&lt;br /&gt;
cvs commit ... put your info in there and save it&lt;br /&gt;
//Tag your shizz&lt;br /&gt;
cvs tag TINYDNS_MARCHEX_1_1_844  // just so happens to be the tag I used on that find day&lt;br /&gt;
tell prod-notice@ that you're going to do something fun with dns&lt;br /&gt;
log into slugfest and then pulley and &lt;br /&gt;
status tinydns-marchex-data //look and see that your tag is the next increment, and gets you a lovely list of servers to whack&lt;br /&gt;
submit tinydns-marchex-data#&amp;lt;that tag thing again&amp;gt;&lt;br /&gt;
whack tiny-dns-marchex server1 server2 server3 // whatever the servers are that you want to whack&lt;br /&gt;
status tinydns-marchex-data // get you some good info on whether or not you successfully whacked&lt;br /&gt;
&lt;br /&gt;
TINYDNS_MARCHEX_1_1_863&lt;br /&gt;
*) tinydns-marchex-data:  Changed hostnames for nimcache3/4.qa to 1/2.qa2 and&lt;br /&gt;
   changed nimcr3/4.qa to nimcr1/2.qa2 [pmorris]&lt;br /&gt;
&lt;br /&gt;
whack tinydns-marchex-data ns1.sad ns2.sad ns3.phl ns4.phl ops1.sea ops2.sea&lt;br /&gt;
&lt;br /&gt;
************************************************************************&lt;br /&gt;
&lt;br /&gt;
New number 973.749.1276&lt;br /&gt;
Number that should not route to -- 973.749.1079&lt;br /&gt;
8.14.170.143, 144 are the test servers that 1276 should be routing to.&lt;br /&gt;
&lt;br /&gt;
6:0 &amp;lt;-- appears to be the port the PRI is connected up on both routers&lt;br /&gt;
&lt;br /&gt;
vgw1-r7.ccsphl.voicestar.com&lt;br /&gt;
vgw1-r8.ccsphl.voicestar.com&lt;br /&gt;
&lt;br /&gt;
W0nd3rTw1ns&lt;br /&gt;
&lt;br /&gt;
Output modifiers : begin include exclude&lt;br /&gt;
&lt;br /&gt;
test voice translation-rule name-tag input-number&lt;br /&gt;
&lt;br /&gt;
sho call history voice brief&lt;br /&gt;
265F : 8448368 13868561020ms.426899 +-1 +11800 pid:204 Originate 9737491276&lt;br /&gt;
 dur 00:00:00 tx:430/68800 rx:288/46080 10  (normal call clearing (16))&lt;br /&gt;
 IP 8.14.168.207:15684 SRTP: off rtt:1ms pl:3000/0ms lost:0/1/0 delay:70/60/100ms g711ulaw TextRelay: off&lt;br /&gt;
 media inactive detected:n media contrl rcvd:n/a timestamp:n/a&lt;br /&gt;
 long duration call detected:n long dur callduration :n/a timestamp:n/a&lt;br /&gt;
&lt;br /&gt;
265F : 8448367 13868561010ms.426900 +-1 +11800 pid:200 Answer 2064341366&lt;br /&gt;
 dur 00:00:00 tx:529/84640 rx:288/46080 10  (normal call clearing (16))&lt;br /&gt;
 Telephony 6/0:1:D (8448367) [6/0:1.21] tx:10640/0/0ms g711ulaw noise:-55dBm acom:89dBm&lt;br /&gt;
 long duration call detected:n long dur callduration :n/a timestamp:n/a&lt;br /&gt;
&lt;br /&gt;
show voice call summary&lt;br /&gt;
show voice call status&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Controller 1/7 is down.&lt;br /&gt;
&lt;br /&gt;
controller T1 1/7&lt;br /&gt;
 framing esf&lt;br /&gt;
 linecode b8zs&lt;br /&gt;
 pri-group timeslots 1-24&lt;br /&gt;
 description Paetec SGNS045157&lt;br /&gt;
&lt;br /&gt;
T1 1/6 is up.&lt;br /&gt;
  Applique type is Channelized T1&lt;br /&gt;
  Cablelength is long gain36 0db&lt;br /&gt;
  Description: Paetec SGNS045163&lt;br /&gt;
  No alarms detected.&lt;br /&gt;
  alarm-trigger is not set&lt;br /&gt;
  Version info of slot 1:  HW: 768, PLD Rev: 4&lt;br /&gt;
  Framer Version: 0x8&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
dial-peer voice 107 pots&lt;br /&gt;
 description outgoing to POTS, VSSIP-&amp;gt;100-&amp;gt;107-&amp;gt;POTS&lt;br /&gt;
 preference 1&lt;br /&gt;
 destination-pattern 9907&lt;br /&gt;
 port 1/6:D&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Numbers are in the call route repo in git  (cloned the callroute directory)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dial plan needs to be &amp;quot;called number 800-800-8000 routes to 8.14.170.143 8.14.170.144&lt;br /&gt;
&lt;br /&gt;
As near as I can tell this *should* give us the results that we would want since it's a specific match.   I'm still don't entirely have my head wrapped around the translation rules.  So once Sean gets the test number assigned to the XO PRI, we can schedule a maintenance event and I can see what happens with that.&lt;br /&gt;
&lt;br /&gt;
dial-peer voice 301 voip&lt;br /&gt;
 description outgoing SIP to sip4&lt;br /&gt;
 preference 9&lt;br /&gt;
 destination-pattern NPANXXXXXX&lt;br /&gt;
 translate-outgoing called 3  (not sure this is actually needed here)&lt;br /&gt;
 session protocol sipv2&lt;br /&gt;
 session target ipv4:8.14.170.143&lt;br /&gt;
 dtmf-relay rtp-nte&lt;br /&gt;
 codec g711ulaw&lt;br /&gt;
 no vad&lt;br /&gt;
&lt;br /&gt;
dial-peer voice 302 voip&lt;br /&gt;
 description outgoing SIP to sip4&lt;br /&gt;
 preference 9&lt;br /&gt;
 destination-pattern NPANXXXXXX&lt;br /&gt;
 translate-outgoing called 3&lt;br /&gt;
 session protocol sipv2&lt;br /&gt;
 session target ipv4:8.14.170.144&lt;br /&gt;
 dtmf-relay rtp-nte&lt;br /&gt;
 codec g711ulaw&lt;br /&gt;
 no vad&lt;br /&gt;
&lt;br /&gt;
translation-rule 1&lt;br /&gt;
 Rule 0 ^10 0&lt;br /&gt;
 Rule 1 ^11 1&lt;br /&gt;
 Rule 2 ^12 2&lt;br /&gt;
 Rule 3 ^13 3&lt;br /&gt;
 Rule 4 ^14 4&lt;br /&gt;
 Rule 5 ^15 5&lt;br /&gt;
 Rule 6 ^16 6&lt;br /&gt;
 Rule 7 ^17 7&lt;br /&gt;
 Rule 8 ^18 8&lt;br /&gt;
 Rule 9 ^19 9&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
translation-rule 2&lt;br /&gt;
 Rule 0 ^0 99000&lt;br /&gt;
 Rule 1 ^1 99001&lt;br /&gt;
 Rule 2 ^2 99002&lt;br /&gt;
 Rule 3 ^3 99003&lt;br /&gt;
 Rule 4 ^4 99004&lt;br /&gt;
 Rule 5 ^5 99005&lt;br /&gt;
 Rule 6 ^6 99006&lt;br /&gt;
 Rule 7 ^7 99007&lt;br /&gt;
 Rule 8 ^8 99008&lt;br /&gt;
 Rule 9 ^9 99009&lt;br /&gt;
!&lt;br /&gt;
!&lt;br /&gt;
translation-rule 3&lt;br /&gt;
 Rule 0 ^99000 0&lt;br /&gt;
 Rule 1 ^99001 1&lt;br /&gt;
 Rule 2 ^99002 2&lt;br /&gt;
 Rule 3 ^99003 3&lt;br /&gt;
 Rule 4 ^99004 4&lt;br /&gt;
 Rule 5 ^99005 5&lt;br /&gt;
 Rule 6 ^99006 6&lt;br /&gt;
 Rule 7 ^99007 7&lt;br /&gt;
&lt;br /&gt;
for i in {1..11} ; do cd /home/www$i/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new;done&lt;br /&gt;
&lt;br /&gt;
for i in {1..11} ; do ssh www$i &amp;quot;cd /home/www$i/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new&amp;quot;;done&lt;br /&gt;
&lt;br /&gt;
cd /home/www11/www/htdocs ; sudo gtar -xvzf ADTRACK_1_1_32.tar.gz ; sudo ln -s ADTRACK_1_1_32 adtrack.new&lt;br /&gt;
&lt;br /&gt;
**************************************&lt;br /&gt;
&lt;br /&gt;
Adtrack database recovery&lt;br /&gt;
&lt;br /&gt;
(11:56:12 AM) Jacob Drahos: in Hochhalter: ok&lt;br /&gt;
(11:08:06 AM) Kevin Hochhalter: so, you need to start adtrack_call_logger on the cp servers&lt;br /&gt;
(11:08:28 AM) Kevin Hochhalter: you have to do this somewhat slowly and carefully&lt;br /&gt;
(11:08:59 AM) Kevin Hochhalter: watch fad-gadget:/var/log/asterisk while you're doing this, and monitor /site/mvs-ast-call-log on each cp server&lt;br /&gt;
(11:09:26 AM) Kevin Hochhalter: if adtrack_call_logger gets hung up on a given cp server, shut it down and kill it's pids if you have to&lt;br /&gt;
(11:09:31 AM) Kevin Hochhalter: and move on to the next one&lt;br /&gt;
(11:10:16 AM) Kevin Hochhalter: once all of the cp servers have processed all of the files, go back through and deal with anything in /site/mvs-ast-call-log/dead on each host&lt;br /&gt;
(11:10:37 AM) Kevin Hochhalter: when you're about halfway through the cp servers, restart mpc_audio_convert on the ac servers&lt;br /&gt;
(11:10:55 AM) Jacob Drahos: so far so good&lt;br /&gt;
(11:11:05 AM) Jacob Drahos: getting started unless i need to know more&lt;br /&gt;
(11:11:11 AM) Kevin Hochhalter: okie dokie&lt;br /&gt;
(11:11:22 AM) Kevin Hochhalter: if you have questions call my cell: 206-303-9095&lt;br /&gt;
(11:11:34 AM) Kevin Hochhalter: I'll stay on mim but might not be close to the 'puter&lt;br /&gt;
&lt;br /&gt;
********************************************&lt;br /&gt;
&lt;br /&gt;
Set up new users in the next ui via http://cm.next.marchex.com/&lt;br /&gt;
Under the internal users tab.&lt;br /&gt;
&lt;br /&gt;
***********************************************&lt;br /&gt;
&lt;br /&gt;
VSTACTICAL vstactical&lt;br /&gt;
&lt;br /&gt;
Scripts have been ran in QA. I am currently verifying data from files.&lt;br /&gt;
&lt;br /&gt;
I'm signing off, because I see no reason for any hesitation on this &lt;br /&gt;
deployment.&lt;br /&gt;
&lt;br /&gt;
Tag for deployment:&lt;br /&gt;
&lt;br /&gt;
VSTACTICAL_0_6_138&lt;br /&gt;
&lt;br /&gt;
Steps are:&lt;br /&gt;
&lt;br /&gt;
Make vstactical tarball:&lt;br /&gt;
&lt;br /&gt;
VSTACTICAL_TAG=VSTACTICAL_0_6_138&lt;br /&gt;
git archive --remote=git.marchex.com:/src/git/vstactical --format=tar --&lt;br /&gt;
prefix=$VSTACTICAL_TAG/ $VSTACTICAL_TAG | gzip -v &amp;gt; &lt;br /&gt;
$VSTACTICAL_TAG.tar.gz&lt;br /&gt;
&lt;br /&gt;
Distribute tarball:&lt;br /&gt;
&lt;br /&gt;
for i in {1..2} ; do sudo cp VSTACTICAL_#_#_##.tar.gz &lt;br /&gt;
/home/cron$i/:~/;done&lt;br /&gt;
&lt;br /&gt;
Unpack tarball:&lt;br /&gt;
&lt;br /&gt;
for i in {2..2} ; do cd /home/cron$i ; sudo gtar -xvzf &lt;br /&gt;
VSTACTICAL_#_#_##.tar.gz ; sudo ln -s VSTACTICAL_#_#_## &lt;br /&gt;
vstactical.new;done&lt;br /&gt;
&lt;br /&gt;
Deploy:&lt;br /&gt;
&lt;br /&gt;
On cron1 and cron2 host: &lt;br /&gt;
Verify extracted tarball from pre-deploy steps &lt;br /&gt;
Note the old symlink ls -l vstactical &lt;br /&gt;
Atomically replace symlinks sudo perl -e 'rename shift, &lt;br /&gt;
shift or die $!' vstactical.new vstactical&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tacticals can be run on either cron1 or cron2.&lt;br /&gt;
&lt;br /&gt;
f@ilBl0g!&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
grep '19/Oct/2011:17:2' access_log | cut -d &amp;quot; &amp;quot; -f 5 | sort | uniq -c | sort -rn | head -n 10&lt;br /&gt;
grep '19/Oct/2011:17:2' access_log | cut -d &amp;quot; &amp;quot; -f 5 | grep -v '^-' | sort | uniq -c | sort -rn | head -n 10&lt;br /&gt;
&lt;br /&gt;
better than tcpdump tshark !&lt;br /&gt;
&lt;br /&gt;
tshark -i bond1 port 5060 -t ad&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
vsac1-3 manage the mp3 transcoding.  #3 is slightly broked.  You go to vscp 1-4 /site/adtrack/current/conf to update mpc.phl file to add/remove stuff.&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
Pie^c0ch8$ or Pie^C0ch8$&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
adtrack blacklist stuff&lt;br /&gt;
&lt;br /&gt;
adtrack_ro=&amp;gt; select * from at_penalty_box where number = '7709627220';&lt;br /&gt;
number | unassigned_lines | penalty_started | &lt;br /&gt;
current_penalty | blacklist_until &lt;br /&gt;
------------+------------------+-------------------------------+-----------------+------------------------------&lt;br /&gt;
7709627220 | 246 | 2011-10-07 09:50:27.672961-04 | 3 mons &lt;br /&gt;
| 2012-02-01 16:31:13.74135-05&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
&lt;br /&gt;
psql -h lb-pool -d adtrack_ro -U pmorris&lt;br /&gt;
psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
\x gets you a nicely formatted display (ugh damn you postgresql)&lt;br /&gt;
&lt;br /&gt;
whitelist a number in adtrack&lt;br /&gt;
select * from at_account where name ilike '%NCI%';&lt;br /&gt;
&lt;br /&gt;
Or even this!&lt;br /&gt;
select name from at_account where account_id = 'CA6phk1xT0VbwgBK';&lt;br /&gt;
&lt;br /&gt;
begin;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;use 'global' if global&amp;gt;');&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;use 'global' if global&amp;gt;');&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('&amp;lt;##########&amp;gt;','&amp;lt;hash key&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
select * from at_whitelist where number in ('&amp;lt;##########&amp;gt;','&amp;lt;##########&amp;gt;','&amp;lt;##########&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
commit;&lt;br /&gt;
&lt;br /&gt;
i.e. I want to insert into &lt;br /&gt;
&lt;br /&gt;
INSERT INTO at_whitelist (number, account_id) VALUES ('5416337625','QrOXy0Q9KMgELQDF');&lt;br /&gt;
select * from at_whitelist where number in ('5416337625');&lt;br /&gt;
&lt;br /&gt;
8323160383 QrOX60a7VDtzfwD1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/pgsql/pgsql-8.4.4/bin/psql -h lb-pool -d adtrack -U at&lt;br /&gt;
&lt;br /&gt;
UPDATE at_forward_no&lt;br /&gt;
SET matchrule = NULL&lt;br /&gt;
FROM at_settings&lt;br /&gt;
WHERE at_settings.settings_id = at_forward_no.settings_id&lt;br /&gt;
AND account_id = 'CA6phk3VXWsSoAG_';&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*****************************************************dconcepcion@marchex.com&lt;br /&gt;
&lt;br /&gt;
find /mnt/site/backups/* -mtime +15 -exec rm {} \;&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
Asterisk maintenance stuff&lt;br /&gt;
&lt;br /&gt;
connect to console (change -i to -r from your ps -ef cruft)&lt;br /&gt;
sudo /site/asterisk/asterisk-1.6.2.6/sbin/asterisk -C /site/nx-call-proc-ast-conf/conf/asterisk.conf -r&lt;br /&gt;
&lt;br /&gt;
core show calls&lt;br /&gt;
sip show channels&lt;br /&gt;
sip show channelstats&lt;br /&gt;
core stop now&lt;br /&gt;
core stop gracefully&lt;br /&gt;
&lt;br /&gt;
*********************************************************&lt;br /&gt;
&lt;br /&gt;
NetScaler net scaler&lt;br /&gt;
&lt;br /&gt;
ssh as nsroot to appropriate machine&lt;br /&gt;
disable server servername.phl&lt;br /&gt;
enable server servername.phl&lt;br /&gt;
&lt;br /&gt;
status&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*********************************************************&lt;br /&gt;
&lt;br /&gt;
mysql crap&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysqldump -u root -p -S /site/mysql-pike/run/mysql.sock sct3k &amp;gt; sct3k_20110211.sql&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; add_ce_id_and_ce_name_to_coinfo.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; CE_updates.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; 110963/update_vantage_links.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; 20110330_remove_keiser.sql &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/site/mysql/mysql-5.0.51a/bin/mysql --defaults-file=/site/mysql-pike/conf/mysql.conf -u root -p sct3k &amp;lt; Update50statesColleges_12-2011.sql &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
xen crap&lt;br /&gt;
&lt;br /&gt;
sudo xm create -c /etc/xen/U/config.file&lt;br /&gt;
sudo xm destroy &amp;lt;id&amp;gt;&lt;br /&gt;
sudo xm reboot &amp;lt;id&amp;gt;&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
&lt;br /&gt;
nim script cruft&lt;br /&gt;
&lt;br /&gt;
at ctns_to_return.txt | /site/perl/perl-5.10.1-1/bin/perl -I /site/oracle_client/client-11.2.0.1/5.10.1/lib return_numbers.pl --DSN=oranext-cluster.sad.marchex.com:1521/OPNEXT.marchex.com --User=nim_numbers --Pass=pFJ6w_XECmN &amp;gt; output.txt&lt;br /&gt;
&lt;br /&gt;
****************************************&lt;br /&gt;
&lt;br /&gt;
kvm build crap:&lt;br /&gt;
&lt;br /&gt;
reset default image location&lt;br /&gt;
&lt;br /&gt;
virsh&lt;br /&gt;
pool-destroy default&lt;br /&gt;
pool-undefine default&lt;br /&gt;
pool-define-as --name default --type dir --target /rum/media/user1/partition1&lt;br /&gt;
pool-autostart default&lt;br /&gt;
pool-build default&lt;br /&gt;
pool-start default&lt;br /&gt;
&lt;br /&gt;
cryptsetup luksChangeKey /dev/mapper/vgsys-imgs1&lt;br /&gt;
&lt;br /&gt;
*****************************************&lt;br /&gt;
&lt;br /&gt;
Force unmount of nfs&lt;br /&gt;
&lt;br /&gt;
sudo umount -f -l /foo/bar&lt;br /&gt;
&lt;br /&gt;
***************************************&lt;br /&gt;
&lt;br /&gt;
For an Amazon Linux AMI, the user name is ec2-user.&lt;br /&gt;
&lt;br /&gt;
For a Centos AMI, the user name is centos.&lt;br /&gt;
&lt;br /&gt;
For a Debian AMI, the user name is admin or root.&lt;br /&gt;
&lt;br /&gt;
For a Fedora AMI, the user name is ec2-user or fedora.&lt;br /&gt;
&lt;br /&gt;
For a RHEL AMI, the user name is ec2-user or root.&lt;br /&gt;
&lt;br /&gt;
For a SUSE AMI, the user name is ec2-user or root.&lt;br /&gt;
&lt;br /&gt;
For an Ubuntu AMI, the user name is ubuntu or root.&lt;br /&gt;
&lt;br /&gt;
Otherwise, if ec2-user and root don't work, check with the AMI provider.&lt;br /&gt;
&lt;br /&gt;
***********************************************&lt;br /&gt;
&lt;br /&gt;
cat secure | grep &amp;quot;Invalid user&amp;quot; | awk '{print $8}'  | sort | uniq -c | sort -rf | less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fix &amp;quot;broken java&amp;quot;   comment out the jdk.tls.disabledAlgorithms line&lt;br /&gt;
sudo vi /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************************&lt;br /&gt;
&lt;br /&gt;
switch branches&lt;br /&gt;
&lt;br /&gt;
git branch mc2-1382-kaldi-asr-ingress origin/mc2-1382-kaldi-asr-ingress&lt;br /&gt;
then&lt;br /&gt;
git checkout mc2-1382-kaldi-asr-ingress origin&lt;br /&gt;
&lt;br /&gt;
**************************************************&lt;br /&gt;
&lt;br /&gt;
route53 aws cli&lt;br /&gt;
aws route53 change-resource-record-sets \&lt;br /&gt;
	--hosted-zone-id Z1U05RZDW3PZ3K \&lt;br /&gt;
	--change-batch file://./dns/qa/private-marchex.net-elb.json&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;PENDING&amp;quot;, &lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;Create/Update ELB Private QA Route 53 Entries for marchex.net&amp;quot;, &lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-10-07T17:36:18.545Z&amp;quot;, &lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C0136020ZF5C469VWNKO&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
aws route53  get-change --id /change/C0136020ZF5C469VWNKO&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;ChangeInfo&amp;quot;: {&lt;br /&gt;
        &amp;quot;Status&amp;quot;: &amp;quot;INSYNC&amp;quot;, &lt;br /&gt;
        &amp;quot;Comment&amp;quot;: &amp;quot;Create/Update ELB Private QA Route 53 Entries for marchex.net&amp;quot;, &lt;br /&gt;
        &amp;quot;SubmittedAt&amp;quot;: &amp;quot;2020-10-07T17:36:18.545Z&amp;quot;, &lt;br /&gt;
        &amp;quot;Id&amp;quot;: &amp;quot;/change/C0136020ZF5C469VWNKO&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
*****************************************************&lt;br /&gt;
git clone foo&lt;br /&gt;
git checkout -b blah1&lt;br /&gt;
git commit -a&lt;br /&gt;
git push --set-upstream origin blah1&lt;br /&gt;
&lt;br /&gt;
Then go online and submit the branch as a pull request&lt;br /&gt;
&lt;br /&gt;
******************************************************&lt;/div&gt;</summary>
		<author><name>Pmorris</name></author>
	</entry>
</feed>