Category Archives: #ITNinjaSkills
Why I never say any system is 100 % secure….
Google Send email as …….
Have to keep this in mind when configuring the send email as function for Google Apps.
https://www.google.com/settings/security/lesssecureapps
I am building the world…
…that I want live in. Not waiting for the future…
Code snippits : perl date stamp for adding to file
#!/usr/local/bin/perl
my @lt = localtime(time);
my $dte = sprintf “%04d%02d%02d%02d%02d%02d”, $lt[+5]+1900, $lt[4]+1, @lt[3,2,1,0];
my $path=”/var/logs”;
$file=”$path/file-$dte”;
print “$file \n”;
A nice internet speed test tool for IT professionals
This is a great tool for folks who know how to interpret the data. Be warned, if you use this and on’t know what it it means, you are the same folks that will go on WebMD and then tell your doctor what prescription you need.
Command line to disable Windows 10 update
Put this in a batch file
rem Take ownership
takeown /f C:\Windows\System32\GWX /r /d yrem Set Permission
icacls C:\Windows\System32\GWX\* /grant %USERNAME%:FRem Kill process
taskkill /f /im gwx.exe
taskkill /f /im GWX.exeRem Remove Folder
rd /S /q C:\Windows\System32\GWX
Coder 4 life
A great discussion on OS use in Computer Science education
What makes Windows a “bad” OS? Why does the computer science world force Linux on you?
I have worked on linux in school and I don’t hate it but I don’t see what it has that windows doesn’t (so far). The differences I do see on linux are manually done things, things that are automated on windows. Besides being free and no viruses(because I have avoided viruses my whole life through smart web searching/downloading) what are advantages over windows? *Also why can’t a computer scientist like me fix the problems windows does have*? I mean isn’t that the purpose of my degree? I’m sorry if I sound like a windows fanboy but I just want a totally performance/convenience based reasoning.
*I know windows is closed source but let’s just say I mean to join Microsoft and help fix it*
#programaday : Find Teamviewer ID and email it….
Assumptions :
Sendemail program is in c:\sendemail\
IF @OSArch = ‘x86’ Then
$tv=”HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer”
Else
$tv=”HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TeamViewer”
EndIfSleep(1000)
emailID($tv)Func emailID($tv_key)
Local $file2send = “c:\2em.bat”
Local $sVar = RegRead($tv_key, “ClientID”)
$em=”c:\sendemail\sendemail.exe -f <My Email> -t <My Email> -u ” & chr(34) & ” TV on ” & @ComputerName & ” is ” & $sVar & chr(34) & ” -m ” & chr(34) & ” TV on ” & @ComputerName & ” is ” & $sVar & chr(34)
FileCreate($file2send ,$em)
; MsgBox($MB_SYSTEMMODAL, $file2send , $em)
ShellExecute($file2send)
Sleep(8000)
FileDelete($file2send)
EndFunc
; Create a file.
Func FileCreate($sFilePath, $sString)
Local $bReturn = True ; Create a variable to store a boolean value.
If FileExists($sFilePath) = 0 Then $bReturn = FileWrite($sFilePath, $sString) = 1 ; If FileWrite returned 1 this will be True otherwise False.
Return $bReturn ; Return the boolean value of either True of False, depending on the return value of FileWrite.
EndFunc ;==>FileCreate