sudo vim /etc/default/grub
# find and replace this line GRUB_CMDLINE_LINUX_DEFAULT
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1280x720"
sudo update-grub
sudo reboot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOTDOGS(){ | |
for i in {1..26};do | |
a=$((i-1)) | |
b=$((i+a)) | |
let c+='b' | |
printf %s "$b " | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.Espinz; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.print("Hello Worlds!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Shapes: | |
"""A shapes class.""" | |
def __init__(self): | |
self.question = input('What is your favorite type of shape? ') | |
self.triangle = "triangle" | |
self.square = "square" | |
self.circle = "circle" | |
def shape_type(self): | |
print('Your favorite shape is a', end=' ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type d \( -path ./directory1 -o -path ./directory2 \) -prune -o -iname "*.txt" -print -exec mv {} TXT \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat Study.org| grep Chapter | head -n 9 > holder.txt && xargs -0 -n 1 mkdir < <(tr \\n \\0 <holder.txt) && rm holder.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COUNT=$(ls | grep -E "Chapter\ [0-9]" | cut -d ' ' -f 3-10 | wc -l) | |
for x in `seq 0 $COUNT`; do | |
if [ "$x" -eq "0" ]; then | |
newDIRS=$(ls | grep -E "Chapter\ [0-9]" | cut -d ' ' -f 3-10 | head -n 1) | |
mkdir "$x. ${newDIRS}" | |
else | |
DIRS=$(ls | grep -E "Chapter\ [0-9]*" | sort -k2 -n | cut -d ' ' -f 3-10 | tail -n 15 | sed -n ${x}p) | |
newDIRS=$(ls | grep -E "Chapter\ [0-9]" | cut -d ' ' -f 3-10 | sed -n ${x}p) | |
mkdir "$x. ${DIRS}" |
NewerOlder