Before the age of alarm clocks, there was a job known as the "knocker up" where a man would tap on someones window with a long pole until they were awake. Often factories would hire men to ensure they made it to the knocker up position on time.
Source
During the Cold War, CIA agents used a method of communication based on how their shoelaces were tied.Source