create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Software required:
After installation and putting the youtube-dl
in PATH
youtube-dl \
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist && \ | |
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist && \ | |
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz && \ | |
sudo pkgutil --forget org.macosforge.xquartz.pkg && \ | |
rm -rf ~/.serverauth* && rm -rf ~/.Xauthorit* && rm -rf ~/.cache && rm -rf ~/.rnd && \ | |
rm -rf ~/Library/Caches/org.macosforge.xquartz.X11 && rm -rf ~/Library/Logs/X11 |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
# pboblem : some applications can't be found using spotlight search box. | |
# solution : reload the metadata plist | |
# source : http://apple.stackexchange.com/questions/62715/applications-dont-show-up-in-spotlight | |
# Turn off spotlight | |
sudo mdutil -a -i off | |
# Unload it : | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |
package nau.algorhythms; | |
import javax.sound.sampled.Line; | |
/** | |
* | |
* Created by maxi on 25.01.16. | |
*/ | |
public class StringLinkedList { |
// 1 LEVEL | |
int stackLength = 10; | |
IntegerStack stack = new IntegerStack(stackLength); | |
// expecting true | |
out.println("Stack emptiness: " + stack.isEmpty()); | |
// populating | |
for (int i = 0; i < stackLength; i++) | |
stack.push(i + 1); |
package nau.algorhythms; | |
/** | |
* Created by maxi on 25.01.16. | |
*/ | |
public class IntegerStack { | |
private int[] array; | |
private byte headPosition; |
namespace Restaurant | |
{ | |
public static class FileManager | |
{ | |
public static void SerializeCollectionToFile<T>(List<T> collection, string fileName) | |
{ | |
new SharpSerializer ().Serialize (collection, fileName); | |
} | |
public static List<T> DeserializeCollectionFromFile<T> (string fileName) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |