Skip to content

Instantly share code, notes, and snippets.

View copley's full-sized avatar

Max Copley. SWEN Graduate from VUW (Wellington, NZ) copley

View GitHub Profile
@copley
copley / AWS Leadership Principles
Created October 23, 2017 06:59
AWS Leadership Principles
Leadership Principles
Our Leadership Principles aren’t just a pretty inspirational wall hanging. These Principles work hard, just like we do. Amazonians use them, every day, whether they’re discussing ideas for new projects, deciding on the best solution for a customer’s problem, or interviewing candidates. It’s just one of the things that makes Amazon peculiar.
Customer Obsession
Leaders start with the customer and work backwards. They work vigorously to earn and keep customer trust. Although leaders pay attention to competitors, they obsess over customers.
Ownership
Leaders are owners. They think long term and don’t sacrifice long-term value for short-term results. They act on behalf of the entire company, beyond just their own team. They never say “that’s not my job."
Invent and Simplify
Leaders expect and require innovation and invention from their teams and always find ways to simplify. They are externally aware, look for new ideas from everywhere, and are not limited by “not invented here". Because we
@copley
copley / Locked Host File
Created December 3, 2023 20:47
Locked Host File
For reasons only you know, you have locked the hosts file, as well as adding an inappropriate ACL to the etc directory. I'll limit myself to fixing the hosts file. Enter the following command in the same way as before -- NO TYPING:
sudo chflags nouchg /etc/hosts
You'll be prompted for your password, which won't be displayed when you type it. Type nothing in the window except your password. Then quit Terminal.
@copley
copley / W.D. Gann's Reading List
Created October 29, 2018 21:33
W.D. Gann's Reading List
W. D. GANN'S
RECOMMENDED READING LIST
The following books come from W. D. Gann’s recommended reading list which was released to his students in 1946 as the fundamental background reading for any serious student of market forecasting. Many of these books are extremely rare, and we are proud to make available the largest selection of these books ever offered since Gann’s time. Many of these books have been out of print for half a century, and most are not available through any other source. We are currently reorganizing these selections into collections combining complete works of one author, or topically similar titles, to provide these essential resources as accessible prices. Check the Seeker's Sanctum for changing prices and availability.
To See The Available Sacred Science Institute Titles From Gann's Reading List:
OUR ASTROLOGY TITLES FROM GANN'S RECOMMENDED LIST
@copley
copley / Bash Hints
Last active April 21, 2023 17:33
Bash Hints
Find .class files,
# find . -mindepth 3 -maxdepth 5 -name "*.class"
Find the passwd file under all sub-directories starting from root directory.
# find / -name passwd
./usr/share/doc/nss_ldap-253/pam.d/passwd
./usr/bin/passwd
./etc/pam.d/passwd
@copley
copley / 2000 Java Problems
Created May 5, 2020 03:55
2000 Java Problems
https://www.w3resource.com/java-exercises/sorting/index.php
Basic Part-I
Basic Part-II
Data Types
Conditional Statement
Array
String
Date Time
Method
https://www.w3resource.com/java-exercises/array/index.php#editorr
https://www.ntu.edu.sg/home/ehchua/programming/java/J2a_BasicsExercises.html
https://adriann.github.io/programming_problems.html (Shown Below)
Simple Programming Problems
Whenever I’m TA for a introductory CS class where students learn some programming language, I have trouble coming up with good exercises. Problems from Project Euler and the like are usually much too difficult for beginners, especially if they don’t have a strong background in mathematics.
@copley
copley / POWER PHRASES TO BUILD YOUR RESUME
Created May 10, 2020 10:37
POWER PHRASES TO BUILD YOUR RESUME
POWER PHRASES TO BUILD YOUR RESUME
ACCURACY
 Recognize the importance of accuracy
 Perform with a high degree of accuracy
 Perform with consistent accuracy
 Achieve results with accuracy and precision
 Maintain high statistical accuracy
 Expect perfection
 Strive for perfection
 Excel in achieving perfection
@copley
copley / Java Snippets
Created May 23, 2020 02:57
Java Snippets
package snippets;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
@copley
copley / SQL vs MySQL: What's the Difference?
Created May 15, 2020 05:25
SQL vs MySQL: What's the Difference?
What is SQL?
SQL is a language which is used to operate your database. SQL is the basic language used for all the databases. There are minor syntax changes amongst different databases, but the basic SQL syntax remains largely the same. SQL is a short abbreviation of Structured Query Language. According to ANSI (American National Standards Institute), SQL is the standard language to operate a relational database management system.
SQL is used in the accessing, updating, and manipulation of data in a database. Its design allows for the management of data in an RDBMS, such as MYSQL. SQL language also used for controlling data access and for creation and modification of Database schemas.
What is MYSQL?
Developed in the mid-90s., MySQL was one of the first open-source database available in the market. Today there are many alternatives variants of MySQL,. However, the differences between the variants are not significant as they use the same syntax, and basic functionality also remains same.
1 Tools and Commands Reference
The JDK tools and their commands enable developers to handle development tasks such as compiling and running a program, packaging source files into a Java Archive (JAR) file, applying security policies to a JAR file, and more.
The tools and commands reference topic lists and describes the Java Development Kit (JDK) tools. They’re grouped into the following sections based on the related functions that they perform. Details about the tools and the commands that you use to run them are contained in the corresponding sections of this guide.
Main Tools
The following foundation tools and commands let you create and build applications:
javac: You can use the javac tool and its options to read Java class and interface definitions and compile them into bytecode and class files.