Archives
- April 2021
- August 2020
- December 2019
- October 2019
- August 2019
- May 2018
- March 2018
- December 2017
- May 2017
- April 2017
- January 2017
- June 2016
- April 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- August 2015
- May 2015
- April 2015
- March 2015
- December 2014
- October 2014
- September 2014
- June 2014
- April 2014
- December 2013
- August 2013
- July 2013
- June 2013
- April 2013
- March 2013
- February 2013
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- April 2012
- January 2012
- December 2011
- November 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
Categories
Category Archives: Uncategorized
Ubuntu home dir auto creation freeipa
pam-auth-update –force
Posted in Uncategorized
Comments Off on Ubuntu home dir auto creation freeipa
MacOS Settings for VirtualBox
VBoxManage modifyvm “Mojave” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1 VBoxManage setextradata “Mojave” VBoxInternal2/EfiGopMode 4
Posted in Uncategorized
Comments Off on MacOS Settings for VirtualBox
How to create a Bootable ISO image of macOS
hdiutil create -o /tmp/HighSierra.cdr -size 5200m -layout SPUD -fs HFS+J hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg hdiutil detach /Volumes/Install\ macOS\ High\ Sierra hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso
Posted in Uncategorized
Comments Off on How to create a Bootable ISO image of macOS
EMC RecoverPoint admin password recovery
Log in via SSH to the RecoverPoint Cluster using user: security-admin and password: security-admin Use the command: unlock_user Select the user admin from the list.
Posted in Uncategorized
Comments Off on EMC RecoverPoint admin password recovery
SNMP Trap Reciever for SNMP Trap Testing…
I used this perl module and script to test SNMP Traps (Mostly to check if they are being generated when expected): #!/usr/bin/perl use Net::SNMPTrapd; my $snmptrapd = Net::SNMPTrapd->new() or die “Error creating SNMPTrapd listener: “, Net::SNMPTrapd->error; … Continue reading
Posted in Uncategorized
Comments Off on SNMP Trap Reciever for SNMP Trap Testing…
How to remove a disk device in linux RHEL
Just stumbled upon an issue where disks were removed from a RHEL system by the storage admin and the RHEL os does not clean up all device files ‘/dev/sd*’ … This throws out kernel error messages to the syslog and … Continue reading
Posted in Uncategorized
Comments Off on How to remove a disk device in linux RHEL
Perl to PHP and vise versa
— Perl arrays — — Php arrays — @a = (); @a = ( ‘xx’, 11, 33.5, ); @a = 12..33; $a[2] = ‘something’; $len = scalar(@a); # or $len = @a; @a3 = (‘xx’, @a1, @a2); ($x, $y) = … Continue reading
Posted in Perl, PHP, Uncategorized
Comments Off on Perl to PHP and vise versa
How To Resize /dev/shm Filesystem In Linux
By default installation, RHEL and most Linux distributions mount tmpfs (a RAM-based temporarily filesystem) to /dev/shm directory and this temporarily filesystem size is always set to be half of the installed memory. If that default size is not something expected, … Continue reading
Posted in Uncategorized
Comments Off on How To Resize /dev/shm Filesystem In Linux
Root lost password rescue
#include <stdio.h> #include <pwd.h> int main() { setuid(0); setgid(0); execl(“/bin/bash”,”prom”,0); } So what is the idea behind this code? Compile this code and the output place in a safe place with a name that only you might know … Continue reading
Posted in Uncategorized
Comments Off on Root lost password rescue