### ### SYSTEM SECURITY ### ### # Enable address Space Randomization kernel.randomize_va_space = 2 # Restrict core dumps fs.suid_dumpable = 0 # Hide kernel pointers kernel.kptr_restrict = 1 # Restrict access to kernel logs kernel.dmesg_restrict = 1 # Restrict ptrace scope kernel.yama.ptrace_scope = 1 # Protect links on the filesystem fs.protected_hardlinks = 1 fs.protected_symlinks = … Read More “Current sysctl.conf” »
Category: Uncategorized
(Updated July 9, 2025) GRUB IPv6 ========= vi /etc/default/grub add GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1″ update-grub Virtualization ============== (add virt-manager if you have a GUI) apt install qemu-kvm libvirt-clients bridge-utils libvirt-daemon-system virtinst Configuration for the bridge (single port. would need bond for multiport.) ============================ root@u24vm1:~# cat /etc/netplan/50-cloud-init.yaml network: version: 2 ethernets: enp0s25: dhcp4: no bridges: br0: interfaces: – enp0s25 … Read More “LibVirt Configuration Notes” »
class Untitled { public static void genPal1() { for( int x = 0; x
import java.io.FileNotFoundException; import java.util.Scanner; import java.io.FileReader; import java.io.PrintWriter; public class Project { public static void main(String[] args) throws FileNotFoundException { String line, rev; int x; Scanner inFile = new Scanner(new FileReader(“Word Salad”)); PrintWriter outFile = new PrintWriter(“copy.txt”); while ( inFile.hasNext() ) { line = inFile.next().toUpperCase(); //System.out.println(line); rev = “”; for ( x = line.length() – … Read More “Project 5 Showcase” »
if (player == ‘S’) { if (computer == ‘B’) { System.out.println(“Computer wins with ” + names[rand] + “.”); } else if (computer == ‘P’) { System.out.println(“Computer had ” + names[rand] + “. You won with ” + names[choices.indexOf(player)] + “.”); wins++; } else { System.out.println(“It’s a draw!”); } } else if (player == ‘P’) { … Read More “Project 4 Showcase” »
String number; int radix; for (int i = 0; i < args.length; i++) { number = args[i].substring(0,args[i].indexOf(':')); radix = Integer.parseInt(args[i].substring(args[i].indexOf(':') + 1)); System.out.println(number + " base " + radix + " is " + Integer.parseInt(number, radix) + " base 10."); } if(args.length>0){ //Checking for input from user for(String input:args){ //Loop to parse //Find the numerical … Read More “Variations on a theme – 111 – Project 1” »
(Updated November 23, 2024) FactorialIter.javaOpen in JDoodle public class FactorialIter { public static int fact(int n) { int prod = 1; if ( n < 0 ) throw new IllegalArgumentException("Value cannot be negative."); for (int i = n; i > 1; i–) prod = prod * i; return prod; } public static void main(String [] … Read More “TEST JDoodle” »
(Updated November 18, 2024) Printing.asmLoad Workspace define CHROUT $ffd2 ldx #0 ; set index to zero print: lda words,x ; load a letter from words beq done ; if it’s the zero, we’re done jsr CHROUT ; print the character inx ; increment the index bne print ; keep printing done: brk ; end! ; … Read More “TEST 6502” »
Overview Sometimes, we have data in one form that needs to be put into another as code or storage in a database. Many editors, like Sublime Text, have Find/Replace tools for complex data transformations. IntelliJ has a similar facility within its editor (Edit/Find/Replace). This brief tutorial explains some regexes (regular expressions) used to achieve quick … Read More “Data Transformation with Regex” »
(Updated February 8, 2025) Overview In case anyone is having trouble getting started, here are a few screenshots of how your environment in IntelliJ must look. Here is the view with the TokenType enumeration. Another view with the main code. And a final view with the 6502 test program. The Record section of the textbook … Read More “CISS-111 Project 2 Getting Started” »