Posts

Featured Post

How To Make Kernel Kill OOM Apps

I'm Using Fedora 64bit 3GB of RAM ... so kill this one .. #include <stdio.h>
#include <stdlib.h>
#define MEGABYTE 1024*1024

int main(int argc, char *argv[]) {
  void *myblock = NULL;
int count = 0;

while (1){
    myblock = (void *) malloc(MEGABYTE);
if (!myblock) break;
    printf("Currently allocating %d MB\n", ++count);
  }
  exit(0);
}

Symantec ThreatCon Rating

Image
The ThreatCon is currently at Level 2: Elevated.
On April 11, Microsoft released its scheduled patch update for July 2017. This month's update covers vulnerabilities in Internet Explorer, Microsoft Edge, Microsoft Windows, Microsoft Office and Microsoft Office Services and Web Apps.Visual Studio for Mac, .NET Framework, Silverlight,Adobe Flash Player.

Customers are advised to apply all patches as soon as possible

Microsoft Security Bulletin Summary for April 2017:
https://portal.msrc.microsoft.com/en-us/security-guidance/releasenotedetail/42b8fa28-9d09-e711-80d9-000d3a32fc99 Symantec ThreatCon Rating The Symantec ThreatCon rating is a measurement of the global threat exposure, delivered as part of Symantec DeepSight Threat Management System. ThreatCon Level 2
Medium : Increased alertness
This condition applies when knowledge or the expectation of attack activity is present, without specific events occurring or when malicious code reaches a moderate risk rating. Under this condition, a ca…

Honda Just Invented a Self-Balancing Motorcycle

Image
Honda Just Invented a Self-Balancing Motorcycle That Never Falls Over .... :)

How to Hide Text in a .Text File Windows

Image
This Is a Picture Will Enplane Everything :

C Programming / Linux – Color Text Output (printf)

Image
I'm Using GNOME Terminal 3.20.3 and Fedora 24.
#include <stdio.h>
char fail_color[] = "\033[31;1m";
char pass_color[] = "\033[32;1m";
char color_end[] = "\033[0m";
char Yellow[] = "\033[33;1m";
char Blue[] = "\033[34;1m";
char Purple[] = "\033[35;1m";
char White[] = "\033[37;1m";
char DarkGray[] = "\033[30;1m";
char Y_highligth[] = "\033[33;7m";
int main(int argc, char const *argv[]) {
  printf("%sPass\n%sFail\n%sNormal\n",pass_color, fail_color, color_end);
  printf("%sYellow\n", Yellow);
  printf("%sBlue\n", Blue);
  printf("%sPurple\n", Purple);
  printf("%sWhite\n", White);
  printf("%sDarkGray\n", DarkGray);
  printf("%sYellow highligth\n", Y_highligth);
  return 0;
}
OutPut :

My DNF "yum" Configuration

cat /etc/dnf/DNF.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
keepcache=True
exclude=libreoffice* opera*
throttle=100k

Serving Web Pages `NetCat`

You can even use netcat to act as a web server: while true; do nc -l -p 8080 < index.html ; donewould serve the page index.html until you close the terminal window.