Posts

Golang Notes

GO LANG SPEC + OPERATOR INTEGER OPERAND GOLANG PLAYGO+ROUND EFFECTIVE GO https://golang.org/ref/spec go fmt formating package main import (        "fmt" ) func main() {     n, err := fmt.Println("Hello, playground", 42, true)         fmt.Println(n)         fmt.Println(err) } == Output === Hello, playground 42 true 26 <nil> DECLARE AND ASSIGN x :   <--- DECLARE = 42  <--- ASSIGN x := 42 DECLARE AND ASSIGN ############################################## Short declation doesnt work outside curly only function inside body var work outside curly global var z int = integer and value of zero / false / nil ############################################## var y = 42 var z = "any" func main() { fmt.Println(y) fmt.Printf("%T\n",y) fmt.Println(z) fmt.Printf("%T\n",z) = 42 int any string ################################################### fmt with example fmt.Pri...
GTX1050tI STABILITY ASUS GTX1050TI +100 CORE CLOCK INNO3D GTX1050TI +115 CORE CLOCK (OC TO 85 DUE TO ERRATIC AT 115) ZOTAC 1050TI LOW PROFILE +50

Linux ISP Hosting Server Setup

Installation of Linux Server capable of the following for small to large companies - Mail Server - Web Server - Ftp Server - Raid 1 Configuration - Auto Backup Configuration - Multi Tenant setup - With graphical interface for easy configuration - Accepting Paypal and Xoom - Accepting Remote Installation (provided server has minimal OS installed with public ip address and ssh access) Contact: 09288057356 Email: jmazaredo@gmail.com WWW: http://mazaredo.com

Installing Mod Security on Ubuntu Xenial

In Ubuntu Xenial name changed. /home/jmazaredo# apt-cache search modsecurity libapache2-mod-security2 - Tighten web applications security for Apache libapache2-modsecurity - Dummy transitional package modsecurity-crs - modsecurity's Core Rule Set

Black screen after logging in on Windows 2012 R2 using domain credentials on remote desktop connection

https://support.microsoft.com/en-us/kb/970879 Blank Desktop on Windows Vista or Windows Server 2008  Email  Print Source:  Microsoft Support RAPID PUBLISHING RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION. Symptom After logging on to a Windows Vista or Windows Server 2008 computer, you are presented with a blank screen with no Start Menu, shortcuts, or icons. If you reboot and use F8 to boot to Safe Mode with Networking, you will see your normal desktop.  You may see the following events in the Application log:  Log Name: Application  Source: Microsoft-Windows-Winlogon  Event ID: 4006  Level: Warning  User: N/A  Computer: M1.Contoso.com  Description:  The Windows logon process has failed to spawn a user applicati...

Lxc - Linux containers

https://en.m.wikipedia.org/wiki/LXC Done configuring Linux lxc. As for now my recommendation is to be used only for in house servers since it is fairly new compared to xen,VMware and other virtulization .

Script to report linux login yesterday

Create a script for yesterday.. yesterday.sh #jmazaredo 4-19-2016 #Get the date month and date cut the necessary date ystd=$(date --date yesterday | cut -d' ' -f2,3) tdy=$(date --date today | cut -d' ' -f2,3) #show the date yesterday Month and date echo ${ystd} #show the date today Month and date echo ${tdy} #grep the date try checking the tdy since you may have no login yesterday last | grep "$tdy" Crontab Entry email it 8 * * * /user/yesterday.sh | mail -s "Last Login Yesterday" me@example.net