This file contains 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
public class Echo { | |
public static void main(String[] args) { | |
for (int i = 0; i < args; i++) { | |
System.out.print(args[i] + " "); | |
} | |
} | |
} |
This file contains 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
#Ponies! | |
mainSix = ['Twlight Sparkel', 'Applejack', 'Fluttershy', 'Rarity', 'Pinkie Pie', | |
'Rainbow Dash'] | |
for pony in mainSix: | |
print "%s is best pony!" % pony | |
print "\nBut lets be serious for a moment. We all know that %s is the all time best pony ever" % mainSix[5] |
This file contains 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains 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
import java.util.*; | |
public final class Truck { | |
private String fName = "Dodge"; | |
private int fNumDoors = 2; | |
private Date fYearManufactured = new Date(); | |
private String fColor = "Fuchsia"; | |
private List<String> fOptions = Arrays.asList("Air Conditioning"); |
This file contains 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
import java.util.*; | |
import java.lang.reflect.Field; | |
public final class Van { | |
// PRIVATE // | |
private String fName; | |
private int fNumDoors; | |
private Date fYearManufactured; | |
private String fColor; |
This file contains 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
#to send with netcat | |
nc -p 9000 -l < '/path/to/file | |
#e.g. nc -p 9000 -l /home/user/text.txt | |
#to receve with netcat | |
nc 0.0.0.0 (ip of sender) 'port number' > '/path/to/save/file | |
#e.g. nc 128.101.71.9 9000 > /home/kurt/text.txt |
This file contains 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
tar -cv --file=outPutFile.tar source\of\file | |
gzip -9 < outPutFile.tar > outPutFile.tar.gz | |
del outPutFile.tar | |
#possible bat file with variables would look like this: | |
tar -cv --file=%1 %2 | |
gzip -9v < %1 > %1.gz | |
del %1 |
This file contains 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
bootrec.exe /FixBoot | |
bootrec.exe /FixMbr | |
##change Activities to somethign else in gnome shell | |
usr/share/gnome-shell/js/ui/panel.js: | |
From: | |
this._label = new St.Label({ text: _("Activities") }); | |
To: |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background] | |
"OEMBackground"=dword:00000001 |
This file contains 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
useradd -m -g users -G adm,storage,optical,audio,video,network,wheel,power,lp,log -s /bin/bash $usernam |
OlderNewer