Search found 14 matches: Hide

Searched query: hide

by jessica
Mon Nov 26, 2018 2:00 pm
Forum: Born Again Shell Scripting
Topic: Valid IP Address
Replies: 0
Views: 104

Valid IP Address

A BASH script to test for valid IP Addresses Dxw1LBzN #!/bin/bash function valid_ip() { local ip=$1 local stat=1 if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then OIFS=$IFS IFS='.' ip=($ip) IFS=$OIFS [[ ${ip[0]} -le 255 && ${ip[1]} -le 255 \ && ${ip[2]} -le 255 && ${ip[3]} -le 2...
by jessica
Tue Sep 18, 2018 11:20 am
Forum: VB Script
Topic: Ahh the good ole days
Replies: 0
Views: 167

Ahh the good ole days

I was asked to re-vamp an old PAR system at work and they wanted to do as minimum as possible to make the thing work like it should. I was told to just leave it as the old classic ASP code and add the functionality they wanted. Needless to say this actually took longer then just rebuilding the entir...
by jessica
Fri Sep 14, 2018 11:44 am
Forum: Ruby
Topic: It's beer time!
Replies: 0
Views: 179

It's beer time!

I've been posting a lot of FizzBuzz examples, although I want to create something a little more interesting. This time it is the Beer song. Notice the variables I have defined, count, containerType and getDrunkBy, these will play a part in the creation of the song. Also there is a function called ge...
by jessica
Wed Sep 12, 2018 6:09 am
Forum: PHP
Topic: Bot Detection System
Replies: 0
Views: 232

Bot Detection System

0EWDLfuf <?php /** * Generates a list of robot useragent deffinitions for use with * $_SERVER['HTTP_USER_AGENT'] to identify robots * * Created by: Muddy_Funster @ forums.phpfreaks.com - 09/2013 * Updated and modified by: Jessica Brown for use on DIABLOS - 07/2017 * * A Huge Thank You to Psycho, Ki...
by jessica
Wed Sep 12, 2018 6:05 am
Forum: PHP
Topic: Constants are better defined through arrays.
Replies: 0
Views: 131

Constants are better defined through arrays.

WHAT? How? Do you even know what your talking about Jessica? Well, yes. So when creating many configurable items, you can setup NAMESPACE, and Global and pass different parameters all over the place many different ways, although one of the best methods I have used is actually pretty nice, clean and ...
by jessica
Tue Sep 11, 2018 8:57 pm
Forum: HTML
Topic: HTML 5 template
Replies: 0
Views: 152

HTML 5 template

2HUkbnZZ <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The Title</title> <meta name="description" content="The Website description"> <meta name="author" content="Your name"> <link rel="stylesheet" href="css/main.css"> <script src="js/main.js"> </head> <body> <!-- Here is whe...
by jessica
Mon Sep 10, 2018 10:13 am
Forum: C#
Topic: First and Last of Dates Function
Replies: 0
Views: 176

First and Last of Dates Function

I didn't create this, although I use it quite often. A nice little way of getting dates for first and last. 3RC2biM4 public static partial class DateTimeExtensions { public static DateTime FirstDayOfWeek(this DateTime dt) { var culture = System.Threading.Thread.CurrentThread.CurrentCulture; var diff...
by jessica
Mon Sep 10, 2018 6:24 am
Forum: Powershell Scripting
Topic: Windows Product Key
Replies: 0
Views: 113

Windows Product Key

I needed a method at work to get the product key that is on the Windows machines. Instead of scrolling through a bunch of Registry Items, I figured I would write a PS script to grab it. aF7chsMt Function Get-WindowsKey { param ($targets = ".") $hklm = 2147483650 $regPath = "Software\Microsoft\Window...
by jessica
Sun Sep 09, 2018 11:21 am
Forum: PHP
Topic: Better PHP Dump
Replies: 0
Views: 132

Better PHP Dump

... max-width:440px to header css added word-wrap:break-word to main div css added max-width:480px to notification panel Version 2.3.0: Added auto hide feature to prevent array to interfere with template Version 2.0.0 Added notification area to provide detail information about array Added css to ...
by jessica
Sun Sep 09, 2018 10:40 am
Forum: Born Again Shell Scripting
Topic: Menu Driven Linux Info System
Replies: 0
Views: 216

Menu Driven Linux Info System

QeZU4AmQ #!/bin/bash #################################################################### # Sathish Arthar (Sathisharthar {at} gmail.com) - Jan 2014 #################################################################### # simple menu driven shell script to to get information about # your Linux server...