Shirker's blog about IT stuff

Friday, April 27, 2018

How to list all IPs belongs to a specific company/origin

›
How to list all IPs belongs to a specific company  whois -h whois.radb.net -- '-i origin AS35995' | grep -Eo "([0-9.]+){4}/[...
Wednesday, August 23, 2017

Monitor missed calls (Asterisk)

›
There is a way to monitor, if your employees are missing some calls by having this pretty simply script /usr/local/sbin/vm-mailer.sh #!/...
Sunday, September 25, 2016

remove php spammer script from hosting

›
First enable logging i.e. simple edit your php.ini mail.add_x_header = On mail.log = /var/log/phpmail.log /root/remove_mailers.sh scr...
Sunday, January 17, 2016

vicidial is not sending calls to the agents

›
I have experienced recently an issue on system built from scratch (Centos 7) . The issue was: Asterisk is dialing number from the list. ...
Tuesday, January 5, 2016

grep exception

›
Grep all BUT not starting with "#" and ";" grep "^[^#;]" smb.conf
Saturday, August 8, 2015

tw_cli replace HDD in the hard raid

›
https://www.webair.com/community/3ware-replacing-a-degraded-drive-with-tw_cli/

convert ata.X to sdX device

›
ls -l /sys/block/sd* | sed -e 's@.*-> \.\.@/sys@' -e 's@/host@ @' -e 's@/target.*/@ @' \ | while read Path Ho...
Wednesday, August 5, 2015

nmap open ports scan

›
nmap -T5 -sS -P0 ho.st.ip.addr
Tuesday, June 30, 2015

Linux: troubleshoot connection with traceroute and mtr

›
https://www.digitalocean.com/community/tutorials/how-to-use-traceroute-and-mtr-to-diagnose-network-issues
Thursday, June 25, 2015

nmap: scanning for conficker

›
nmap -p139,445 --script p2p-conficker,smb-os-discovery,smb-check-vulns --script-args=smbuser=*****,smbpass=*****,checkconficker=1,safe=1 -...
Wednesday, June 3, 2015

How to match newlines in sed

›
Original: http://backreference.org/2009/12/23/how-to-match-newlines-in-sed / Lots of sed newcomers ask why the following snippets of cod...

tcpdump tutorial from danielmiessler.com

›
tcpdump  is the premier network analysis tool for   information security   professionals. Having a solid grasp of this über-powerful appli...

shutdown a windows PC with PHP

›
$runcmd="net rpc SHUTDOWN -C \"This system was left on a fter hours and is ...

Cisco 2691 ADSL configuration

›
Cisco 2691 ADSL config (worked with PLDT ) vpdn-group pppoe request-dialin protocol pppoe ! interface ATM0/0 description PLDT ADSL no i...
Thursday, April 23, 2015

Emergency password reset Dell powerconnect 3248

›
For the 3248/5212/5224 products: Note: This password recovery procedure involves rebooting the switch to the Factory Defaults. This will ...
1 comment:
Wednesday, January 21, 2015

Centos 7 PXE diskless

›
The guide is here: http://www.server-world.info/en/note?os=CentOS_6&p=pxe&f=4 But I have installed Centos7 Desktop on PC(worksta...
Wednesday, September 17, 2014

use vim as default editor

›
echo "export EDITOR=vim" >> ~/.bashrc && export EDITOR=vim
Tuesday, August 19, 2014

Modify all LDAP users in one shot

›
Once I need to reset login shell for all users. Here is easy solution, one simple loop SAVEIFS=$IFS; IFS=$(echo -en "\n\b"); fo...
Friday, August 15, 2014

Asterisk(Bash): watching agents on call/waiting in color

›
#!/bin/bash clear while true do buffer=$( clear /usr/sbin/asterisk -rx "show queue <My_Queue>" \ | grep Agent \ | grep -v \...
Thursday, August 14, 2014

ZFS::chmod: changing permissions of Operation not permitted

›
Problem:  I can't change a folder permissions running on NFS client: chmod: changing permissions of <somedir>: Operation not ...
Monday, August 11, 2014

GREP: colored output

›
http://stackoverflow.com/questions/17236005/grep-output-with-multiple-colors EXAMPLE:  Colored output from asterisk CLI asterisk -rvvv...
Thursday, August 7, 2014

BASH Shell: For Loop File Names With Spaces

›
http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html BASH for loop works nicely under UNIX / Linux / Windows and O...
›
Home
View web version
Powered by Blogger.