Execute this by:
(777 might be an over kill for this one) sudo chmod 777 available_ip.sh
./available_ip.sh
Execute this by:
(777 might be an over kill for this one) sudo chmod 777 available_ip.sh
./available_ip.sh
#!/bin/sh | |
# Uncomment for debugging | |
#set -x | |
pingf(){ | |
if ping -w 2 -q -c 1 192.168.1."$1" > /dev/null ; | |
then | |
printf "IP %s is up\n" 192.168.1."$1" | |
else | |
printf "IP %s is open\n" 192.168.1."$1" | |
fi |
from flask import Flask | |
from flask_jwt import JWT, jwt_required, current_identity | |
from werkzeug.security import safe_str_cmp | |
class User(object): | |
def __init__(self, id, username, password): | |
self.id = id | |
self.username = username | |
self.password = password |
const cluster = require('cluster'); | |
if (cluster.isMaster) { | |
cluster.fork(); | |
cluster.on('exit', function(worker, code, signal) { | |
cluster.fork(); | |
}); | |
} |
package com.demo.advjava; | |
public class StarsPattern { | |
public static void main(String[] args) { | |
printStars90(10); | |
printStarsRev(10); | |
// printStarsRev(10); | |
printStars(10); | |
} |
package com.demo.advjava; | |
public class GraphImplementationAdjMat { | |
int[][] graph; | |
public GraphImplementationAdjMat(int vertices) { | |
graph = new int[vertices][vertices]; | |
} |
package com.demo.advjava; | |
import java.awt.AWTException; | |
import java.awt.Robot; | |
import java.awt.event.KeyEvent; | |
import java.io.IOException; | |
public class NotepadFun { | |
public static void main(String[] args) throws IOException, InterruptedException, AWTException { | |
Runtime.getRuntime().exec("gedit"); |
package com.demo.advjava; | |
public class NQueensTesting { | |
int boardSize = 8; | |
int[][] board = new int[boardSize][boardSize]; | |
public void populateBoard() { | |
int i, j; | |
for (i = 0; i < boardSize; i++) |
package com.demo.advjava; | |
public class CircularLinkedList { | |
Node head; | |
class Node { | |
int data; | |
Node next; |