Sunday 28 December 2014

Ups and Downs

I cannot stress enough how important it is that we all recognize this pattern of ups and downs.

This is why:

During the 'downs' our negative thoughts grow larger and outweigh our positive thoughts. Once in this state our judgement becomes cloudy and we start to doubt ourselves.

It happens to all of us, including me. What is important is to spot this 'down' for what it is; a temporary depression and something we will soon be out of.

The problem I see, is a lot of guys don't spot it and make rash decisions in desperation, which can lead to bigger problems.

One solution to a 'down' period is to look back at your earlier posts and see how far you've come. Once you see the bigger picture, you also see the pattern and you see the 'down' for what it is.

It could be said that even a bad relationship is simply one of the knock-backs we all experience and that it is just as vital to experience these and learn from them as it is to experience other issues such as opening or isolating for example. It's just a shame they take so long and can cause so much pain when they end. I guess the bigger the mistake, the bigger the lesson.

The key is to learn from all of these mistakes to ensure that "each time you get a bit better".

Nevertheless, there is an equilibrium point, when you get an 85% result and throwing the dice again means you are much more likely to get a result lower than that.

The higher you aim, the harder you have to work to get there- it is exponential, not linear, because of the normal distribution.

Okay.

In layman's terms.

Say you are dating a 9 who is a doctor, driving a fast car, younger than you and knows how to ride a stripper pole.

What are your chances of dating another girl, more attractive (say 10) with > job, >car, > intellect and knows how to ride a stripper pole?

In this case, if your 9 isn't giving you lip or making problems, you should probably stick with a good thing while it's going. That is, if you are into monogamous relationships and looking to settle down,.

There comes a point where you burn time rolling the dice again looking for a "better deal" when you already have a fantastic deal in front of you. I think staying with a fantastic deal (even if there is better out there) is a good way to show gratitude to the universe and humility to yourself. You can get yourself killed by being too greedy, by forgetting to be grateful.

Tuesday 23 December 2014

A word on "Value"

Value' as a concept is relative to each person. The 'value' of a woman (or a relationship with any person) is different for each person observing her. You look at a woman and you place some value on her. That value, if it could be quantified, would be different for every person.

A guy who is already in a happy relationship might not value her very highly because he isn't looking for a girlfriend. A guy who's been single for a long time and is actively looking for a relationship might value her more highly.

This is where the mindset of abundance comes in. If you have 10 girls who want to date you, are you going to be very bothered if one of them finds a different boyfriend and stops showing interest in you? Probably not.

However, if only one girl is interested in you and she finds someone else, it will have a greater negative effect on you.

Supply and demand.

So to answer your question succinctly, no there's nothing else you can do. Have more women in your life.

But to add in a bit more practical advice - my own experience is that if you're trying to meet all your women through cold approaches, it's tough to cultivate enough of them at any one time. I recommend that you build a 'home base' social group which has women in it. That way you'll always have a source of female company even if you haven't met too many girls at bars or whatever. Hunting and farming.

Tuesday 28 October 2014

A Library For Survival Knowledge

The current world will not end in a bang like some 2014 maya pipe dream, killing computers overnight. What we have at hands right now is the ongoing process of choosing by inaction not to create enough ways to harvest renewable energy. As the fossils run out, we will see a gradual shift away from our current global industrial world.
Cheap mass shipping to the other side of the world will be among the first luxuries to go, meaning we will need to start to produce most of our goods locally again, starting from the basics and working up to more complicated ones. Which is where the library kicks in. If we reasonably manage our inheritance from the industrial era, we will have quite a stretch of time available while which we can rig up a some power to a computer to read and transcribe the library. I mean, many a slashdotter will be able to rip apart that electric car into some wind generators, batteries included.
Now we can plot a simple graph with two lines - one of us exhausting and repurposing our current goods and infrastructure until we run out, the other line being us rebuilding our civilization on renewable and sustainable production and goods. What is still undecided is how low the valley will go, and whether we hit such a critical low of development that we will never come back up again.
How well this will go depends on a few factors. First, practicing any technology needs a society able to feed specialists. This ability will decline sharply everywhere, because our current agriculture is 100% about converting oil into food - there is a real possibility that billions will die of hunger. Second, some countries like the USA and GB will have to start pretty much from the beginning, having destroyed their industrial base through corporate looting and offshoring. Contrast that with China or Germany with their massive industrial base which only needs to get the power back on. Third is of course the availability of raw materials, on which point do also note the lack of plastics in a post-oil world.
And if this was too easy, expect mass migrations caused by sea level rises, thirst and hunger and wars of every size and reason to complicate matters further. Only a state with can comfortably secure it's territory, food and resources with a reasonable surplus will have a chance to actually think about a rebound. At this point we can only hope there will be one.
Or we could get off our collective arses and actually do something about the future. I seriously doubt we will see an actual global push into renewable and sustainable, though. This would require effort, resilience and actual change, all of which are in a very short supply on this scale; furthermore, it would mean replacing our power structures, ideologies and economical systems, all of which are and will fight tooth and nail to survive. So it remains that the next best thing is for us to compile some kind of a library of survival knowledge...

Sunday 14 September 2014

Funny Forum Post Template

Your post advocates a

( ) technical ( ) legislative ( ) market-based ( ) vigilante

approach to fighting spam. Your idea will not work. Here is why it won't work. (One or more of the following may apply to your particular idea, and it may have other flaws which used to vary from state to state before a bad federal law was passed.)

( ) Spammers can easily use it to harvest email addresses
( ) Mailing lists and other legitimate email uses would be affected
( ) No one will be able to find the guy or collect the money
( ) It is defenceless against brute force attacks
( ) It will stop spam for two weeks and then we'll be stuck with it
( ) Users of email will not put up with it
( ) Microsoft will not put up with it
( ) Apple will not put up with it
( ) The police will not put up with it
( ) Requires too much cooperation from spammers
( ) Requires immediate total cooperation from everybody at once
( ) Many email users cannot afford to lose business or alienate potential employers
( ) Spammers don't care about invalid addresses in their lists
( ) Anyone could anonymously destroy anyone else's career or business

Specifically, your plan fails to account for

( ) Laws expressly prohibiting it
( ) Lack of centrally controlling authority for email
( ) Open relays in foreign countries
( ) Ease of searching tiny alphanumeric address space of all email addresses
( ) Asshats
( ) Jurisdictional problems
( ) Unpopularity of weird new taxes
( ) Public reluctance to accept weird new forms of money
( ) Huge existing software investment in SMTP
( ) Susceptibility of protocols other than SMTP to attack
( ) Willingness of users to install OS patches received by email
( ) Armies of worm riddled broadband-connected Windows boxes
( ) Eternal arms race involved in all filtering approaches
( ) Extreme profitability of spam
( ) Joe jobs and/or identity theft
( ) Technically illiterate politicians
( ) Extreme stupidity on the part of people who do business with spammers
( ) Dishonesty on the part of spammers themselves
( ) Bandwidth costs that are unaffected by client filtering
( ) Outlook

and the following philosophical objections may also apply:

( ) Ideas similar to yours are easy to come up with, yet none have ever been shown practical
( ) Any scheme based on opt-out is unacceptable
( ) SMTP headers should not be the subject of legislation
( ) Blacklists suck
( ) Whitelists suck
( ) We should be able to talk about Viagra without being censored
( ) Countermeasures should not involve wire fraud or credit card fraud
( ) Countermeasures should not involve sabotage of public networks
( ) Countermeasures must work if phased in gradually
( ) Sending email should be free
( ) Why should we have to trust you and your servers?
( ) Incompatiblity with open source or open source licenses
( ) Feel-good measures do nothing to solve the problem
( ) Temporary/one-time email addresses are cumbersome
( ) I don't want the government reading my email
( ) Killing them that way is not slow and painful enough

Furthermore, this is what I think about you:

( ) Sorry dude, but I don't think it would work.
( ) This is a stupid idea, and you're a stupid person for suggesting it.
( ) Nice try, assh0le! I'm going to find out where you live and burn your house down!

Tuesday 9 September 2014

DDOS Bots IptabLes/IptabLex

DDOS Bots IptabLes/IptabLex 

Bash commands to clean a system infected with the ELF IptabLes binary. After running these commands, system administrators are advised to reboot the system and run a thorough system inspection.

sudo find / -type f -name '.*ptabLe*' -exec rm -f {} ';'
ps -axu | awk '/\.IptabLe/ {print $2}' | sudo xargs kill -9

More Info: http://cryptome.org/2014/09/ddos-bots-iptables.pdf
http://www.akamai.com/html/about/press/releases/2014/press-090314-1.html

Tuesday 2 September 2014

A few links for you....

A few links for your perusal. 

https://poshchat.codeplex.com/downloads/get/700177

https://in.fortacloud.co/cart/fortacloud-free-vps-/

https://getlantern.org/

A few items for sale on eBay

http://www.ebay.co.uk/itm/121424041058?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1555.l2649

http://www.ebay.co.uk/itm/121424041759?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1555.l2649

http://www.ebay.co.uk/itm/121424198720?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1555.l2649


Sunday 22 June 2014

2 x FreeNAS Quick Fixes 9.2.0+

Fixes for FreeNAS

There is an error trying to install Plugins, It mentions Jails but it has NOTHING to do with the jails. 

See the issue here....

https://bugs.freenas.org/issues/4680

On a command line this is the fix.....

  • echo '64.62.136.38 cdn.freenas.org' >> /etc/hosts

Once you have upgraded to the latest version you cannot turn CIFS on and off. And consequently not change permissions. 

Fix for CIFS Share
As root and in SSH do the following commands:
  • cd /tmp
  • fetch https://bugs.freenas.org/attachments/download/768/fixup.sh.txt
  • chmod +x fixup.sh.txt
  • mv fixup.sh.txt fixup.sh
  • ./fixup.sh

Thursday 19 June 2014

How To Wipe a Folder on Mac OS (Securely)

srm -f -r -m -z -v *.*

Broadband Terminology (BT UK)


  • SFI test (it stands for special faults investigation), including a PQ (pair quality) test.

  • "lift and shift". This involves an engineer disconnecting your line from one ADSL rack (a digital subscriber line access multiplexer, or DSLAM) in the exchange and connecting it to a different one.

Networking - North Korea IP Block


  • 175.45.176.0/22 - North Korea

Linux (ESXi) Update ESXi from Command Line


  • wget http://hostupdate.vmware.com/software/VUM/OFFLINE/release-331-20120408-206167/ESXi500-201204001.zip
  • vim-cmd hostsvc/maintenance_mode_enter
  • esxcli software vib update --depot=/vmfs/volumes/4f3ebfb7-0a4d1490-4fba-2c768aabd269/ESXi550-201404001.zip
  • vim-cmd hostsvc/maintenance_mode_exit
  • reboot

Linux (ESXi/Misc) Working with log files


  • find /var/log/ -name *.log -mtime +1 -exec ls -tl {} \;
  • find /var/log/ -name *.log -mtime +1 -exec rm -f {} \; 
  • egrep 'segfault|fail|denied|oops|warn' /var/log/*
  • tail -f /var/log/mcelog
  • tail -f /var/log/vmkernel.log
  • grep -c "hardware error" /var/log/mcelog
  • grep -i "hardware error" /var/log/mcelog
  • grep -c "hardware error" /var/log/vmkernel.log
  • grep -i "hardware error" /var/log/vmkernel.log
  • grep -r "audit" *
  • grep -r "error" *

  • Clear Log Files
  • cd /; find /vmfs/volumes/ -name vmware-*.log -mtime +1 -exec ls  {} \; 
  • cd /; find /vmfs/volumes/ -name vmware-*.log -mtime +1 -exec ls  {} \; | xargs rm

Linux (Misc) Performance Tweak and Disable IPV6

echo manual | sudo tee -a /etc/init/failsafe.override
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableiwrpv6.conf 

Linux (ESXi) Power off all VM's on Command Line

vim-cmd vmsvc/getallvms |grep vmx| awk '{ print $1 }'|while read VMID; do echo "work with VM id=$VMID"; vim-cmd vmsvc/power.shutdown $VMID;sleep 1s; done;sleep 1s; poweroff

Linux (ESXi) Enable Jumbo Packets

***Enable Jumbo Packets***

esxcli network vswitch standard set -m 9000 -v vSwitch0
esxcli network vswitch standard list

Linux (ESXi) - Power on VM at the Command Line

To power on a virtual machine from the command line:

    List the inventory ID of the virtual machine with the command:

    vim-cmd vmsvc/getallvms |grep <vm name>

    Note: The first column of the output shows the vmid.

    Check the power state of the virtual machine with the command:

    vim-cmd vmsvc/power.getstate <vmid>

    Power-on the virtual machine with the command:

    vim-cmd vmsvc/power.on <vmid> 

Linux - Installing Nagios 4 (Part 2)


  • /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
  • /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc/objects
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg
  • /usr/bin/install -c -b -m 660 -o nagios -g nagios sample-config/resource.cfg /usr/local/nagios/etc/resource.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/templates.cfg /usr/local/nagios/etc/objects/templates.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/commands.cfg /usr/local/nagios/etc/objects/commands.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/contacts.cfg /usr/local/nagios/etc/objects/contacts.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/timeperiods.cfg /usr/local/nagios/etc/objects/timeperiods.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/localhost.cfg /usr/local/nagios/etc/objects/localhost.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/windows.cfg /usr/local/nagios/etc/objects/windows.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/printer.cfg /usr/local/nagios/etc/objects/printer.cfg
  • /usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/switch.cfg /usr/local/nagios/etc/objects/switch.cfg


  • /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
  • sudo /etc/init.d/nagios restart
  • nmap -oG output.txt -sn -O -iR 100 --script smtp-open-relay --min-parallelism 1500 -v -v
  • nmap -oG output.txt -O -iR 100 --script smtp-open-relay --min-parallelism 1500 -v -v
  • cp hosts.cfg /usr/local/nagios/etc/objects/
  • /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Linux - Installing Nagios 4 (Part 1)


  1. sudo apt-get install wget build-essential apache2 php5-gd libgd2-xpm libgd2-xpm-dev libapache2-modphp5 sendmail
  2. cd /tmp
  3. wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.4.tar.gz
  4. wget http://nagios-plugins.org/download/nagios-plugins-2.0.tar.gz
  5. useradd nagios
  6. groupadd nagcmd
  7. usermod -a -G nagcmd nagios
  8. tar zxvf nagios-4.0.4.tar.gz
  9. tar zxvf nagios-plugins-2.0.tar.gz
  10. cd nagios
  11. ./configure --with-nagios-group=nagios --with-command-group=nagcmd
  12. make all
  13. make install
  14. make install-init
  15. make install-config
  16. make install-commandmode
  17. make install-webconf
  18. cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
  19. chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
  20. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
  21. /etc/init.d/nagios start
  22. htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
  23. cd /tmp/nagios-plugins-2.0
  24. ./configure --with-nagios-user=nagios --with-nagios-group=nagios
  25. make
  26. make install
  27. chkconfig --add nagios
  28. chkconfig --level 35 nagios on
  29. chkconfig --add httpd
  30. chkconfig --level 35 httpd on
  31. ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios


Funny Forum Post For you to use.....

Your post advocates a

(X) technical ( ) legislative ( ) market-based ( ) vigilante

approach to fighting spam. Your idea will not work. Here is why it won't work. (One or more of the following may apply to your particular idea, and it may have other flaws which used to vary from state to state before a bad federal law was passed.)

( ) Spammers can easily use it to harvest email addresses
( ) Mailing lists and other legitimate email uses would be affected
(X) No one will be able to find the guy or collect the money
(X) It is defenseless against brute force attacks
( ) It will stop spam for two weeks and then we'll be stuck with it
( ) Users of email will not put up with it
( ) Microsoft will not put up with it
( ) Apple will not put up with it
( ) The police will not put up with it
( ) Requires too much cooperation from spammers
( ) Requires immediate total cooperation from everybody at once
( ) Many email users cannot afford to lose business or alienate potential employers
( ) Spammers don't care about invalid addresses in their lists
( ) Anyone could anonymously destroy anyone else's career or business

Specifically, your plan fails to account for

( ) Laws expressly prohibiting it
( ) Lack of centrally controlling authority for email
( ) Open relays in foreign countries
( ) Ease of searching tiny alphanumeric address space of all email addresses
(X) Asshats
( ) Jurisdictional problems
( ) Unpopularity of weird new taxes
( ) Public reluctance to accept weird new forms of money
( ) Huge existing software investment in SMTP
( ) Susceptibility of protocols other than SMTP to attack
( ) Willingness of users to install OS patches received by email
(X) Armies of worm riddled broadband-connected Windows boxes
(X) Eternal arms race involved in all filtering approaches
(X) Extreme profitability of spam
( ) Joe jobs and/or identity theft
( ) Technically illiterate politicians
( ) Extreme stupidity on the part of people who do business with spammers
( ) Dishonesty on the part of spammers themselves
( ) Bandwidth costs that are unaffected by client filtering
( ) Outlook

and the following philosophical objections may also apply:

( ) Ideas similar to yours are easy to come up with, yet none have ever been shown practical
( ) Any scheme based on opt-out is unacceptable
( ) SMTP headers should not be the subject of legislation
( ) Blacklists suck
( ) Whitelists suck
( ) We should be able to talk about Viagra without being censored
( ) Countermeasures should not involve wire fraud or credit card fraud
( ) Countermeasures should not involve sabotage of public networks
( ) Countermeasures must work if phased in gradually
( ) Sending email should be free
( ) Why should we have to trust you and your servers?
( ) Incompatiblity with open source or open source licenses
(X) Feel-good measures do nothing to solve the problem
( ) Temporary/one-time email addresses are cumbersome
( ) I don't want the government reading my email
( ) Killing them that way is not slow and painful enough

Furthermore, this is what I think about you:

(X) Sorry dude, but I don't think it would work.
( ) This is a stupid idea, and you're a stupid person for suggesting it.
( ) Nice try, assh0le! I'm going to find out where you live and burn your house down!

Repeat after me: NET NEUTRALITY IS NOT FUCKING QOS!.


It's really simple: QOS ("Quality Of Service") is about discriminating between different types of traffic based on its characteristics and needs (e.g. low-latency-required stuff like VoIP vs. latency-not-important "bulk data" transfers like BitTorrent). That kind of discrimination is just fine. In contrast, Net Neutrality seeks only to prohibit discrimination based on the origin or destination of the packets; i.e., who sent or requested them. That kind of discrimination is very much not "just fine."

For example, Comcast wanting to prioritize Comcast's video-streaming service above Bittorrent is fine; that's QOS. Comcast wanting to prioritize Comcast's video-streaming service above Netflix is wrong; that violates net neutrality.

In my experience, the only people who disagree with this after having it explained to them are those who are paid to believe otherwise.

Wednesday 18 June 2014

NSA - Not what you think

You guys do know if they where to put a hidden key.... they wouldn't call it NSAKEY! you know NSA does not stand for national security agency...... it was at the time meaning Name Space Assembly Key... had a completely different purpose then the tin foil hatters want you to think.... but lets just ignore all the development documentation on windows back in the 90's and name it some big conspiracy

Solaris - Reset Interface Mask

ifconfig ce0 netmask 255.255.255.0 broadcast + up && ifconfig ce0

Update Cisco IOS - FTP Method

Delete Old Image
delete /force /recursive c2960-lanbasek9-mz.150-2.EZ

Download,Extract and Install New Image
archive download-sw /overwrite ftp://<<FTPSERVER>>/c2960-lanbasek9-tar.150-2.SE6.tar

NX-OS - Simple Port Chan (LACP)


show system internal clis feature
feature lacp - To Enable LACP

*Identify a free Channel Group Number

interface Eth2/6
description ***DESCRIPTION***
switchport
switchport access vlan <<VLAN>>
spanning-tree port type edge
no shutdown
channel-group 100 mode active


interface port-channel100
description ***DESCRIPTION***
vpc 100
switchport
switchport access vlan <<VLAN>>
spanning-tree port type edge

Upgrading to a New Firmware Release - Cisco 800 Series Routers

Upgrading to a New Firmware Release

Perform the following steps to upgrade to a new firmware release:

1. Download the new firmware from Cisco.com Software Center at http://www.cisco.com/cisco/software/navigator.html.

Choose Products -> Routers -> Branch Routers -> Cisco 800 Series Routers -> Cisco 887VA Integrated Services Router -> Very High Bitrate DSL (VDSL) Firmware

2. Copy the firmware to a designated location; for example, router flash or a TFTP server.

3. Configure the router to load the new firmware from a designated location.

Router# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# controller vdsl 0
Router(config-controller)# firmware filename ?
  archive:  Download fw file name
  cns:      Download fw file name
  flash:    Download fw file name
  ftp:      Download fw file name
  http:     Download fw file name
  https:    Download fw file name
  null:     Download fw file name
  nvram:    Download fw file name
  rcp:      Download fw file name
  scp:      Download fw file name
  system:   Download fw file name
  tar:      Download fw file name
  tftp:     Download fw file name
  tmpsys:   Download fw file name
  xmodem:   Download fw file name
  ymodem:   Download fw file name
Router(config-controller)# firmware filename flash:vdsl.bin.35j23jdslfw

Note Controller VDSL 0 should not be turned off.
4. Enter the copy running-config startup-config command to save your configuration.

5. Enter the reload command to restart the router.

Problem Solving - BPDU Filter Disabled On Access Ports ***ONLY IF NOT WIRELESS APs***

Problem Solving -  BPDU Filter Disabled On Access Ports ***ONLY IF NOT WIRELESS APs***

spanning-tree bpdufilter enable

Problem Solving - Uplink Fast Not Enabled

Problem Solving - Uplink Fast Not Enabled

set spantree uplinkfast enable rate 25

Cisco Macro Usage

Using Predefined Cisco Macros

macro apply cisco-desktop $access_vlan <<<VLAN>>>
macro apply cisco-wireless $native_vlan <<<VLAN>>>

More Info: http://ccie-or-null.net/2011/06/13/working-with-cisco-macros/

Cisco IOS - Simple Port Span

Setting up a simple Port Span

c3750(config)#monitor session 1 source interface fastethernet 0/1
c3750(config)#monitor session 1 destination interface fastethernet 0/2

Cisco IOS (Wireless AP) Updating Image

Updating a Cisco AP Image

AP>en
AP#debug lwapp console cli or debug capwap console cli
AP#config t
AP(confg)int fa 0
AP(confg-if)ip addr <addr> <mask> (same subnet as that of the laptop)
AP(confg-if)end
AP#archive download-sw /force-reload /overwrite tftp://<tftp ip address>/<image name.tar>

Cisco IOS - Include Command Examples


  • show mac address-table | include 
  • sh arp | inc <IP Address>
  • show int status
  • show interface | i line|escription
  • sh spanning-tree detail | i ieee|occur|from|is
  • sh int | include (is down)
  • sh int | include (is up)
  • sh run | include (helper-address)
  • show int status | inc (a-10)
  • sh int | inc line protocol is|Last input (notconnect)

Cisco IOS - Recover from a Damaged or Broken IOS, Using the Console Cable

Recover from a Damaged or Broken IOS, Using the Console Cable:

flash_init
load_helper
dir flash:
boot flash:c2950-i6k2l2q4-mz.121-22.EA13.bin

Replace with whatever IOS version is in your flash. 

Windows Generic

Show and Reset Proxy Settings In Windows.


  • netsh winhttp show proxy
  • netsh winhttp reset proxy

Windows Powershell - Find Old Files

Change the Path and Days Accordingly

Get-ChildItem -Path "C:\" -Include "*.*" -Recurse | where {$_.LastWriteTime -le $(get-date).AddDays(-365)}

Windows Powershell - Starting As An Elevated User

Two Commands to Start PowerShell As an Elevated User.

Run Both Commands separately on one line. Both Commands do the same job. Just replace USER and DOMAIN accordingly.


  • Start-Process powershell.exe -Credential "DOMAIN\USER" -NoNewWindow -ArgumentList "Start-Process powershell.exe -Verb runAs"
  • C:\Windows\System32\runas.exe /env /noprofile /user:USER@DOMAIN "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -command \"start-process powershell -verb RunAs\""