let a = new Set([1,2,3]);
let b = new Set([4,3,2]);
let union = new Set([...a, ...b]);
// {1,2,3,4}
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/sh | |
uuidgen | awk '{print tolower($0)}' |
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/sh | |
uuidgen | awk '{print tolower($0)}' | sed s/-/\\n/g | head -n 1 |
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
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master |
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
# First denoise audio | |
## Get noise sample | |
ffmpeg -i input.ogg -vn -ss 00:00:00 -t 00:00:01 noise-sample.wav | |
## Create noise profile | |
sox noise-sample.wav -n noiseprof noise.prof | |
## Clean audio from noise | |
sox input.ogg clean.wav noisered noise.prof 0.21 |
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
// ---------------------------------------------------------------------------- | |
// | |
// Organizations. | |
// | |
// ---------------------------------------------------------------------------- |
A git choose-your-own-adventure!
This document is an attempt to be a fairly comprehensive guide to recovering from what you did not mean to do when using git. It isn't that git is so complicated that you need a large document to take care or your particular problem, it is more that the set of things that you might have done is so large that different techniques are needed depending on exactly what you have done and what you want to have happen.
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
- install lsb | |
- install openssh-server (for SSH access via Haguichi) | |
- install samba | |
- configure /etc/smb.conf: add to interfaces | |
- add samba user: `sudo smbpasswd -a mgub` (use to log into share from Hamachi/Haguichi) | |
- install hamachi and login | |
- install Haguichi |
Install Ubuntu Cinnamon. Follow these instructions.
These settings are set in System Settings > Themes.
- Window borders: Arc-Darker (Alternative: Numix)
- Icons: Numix-Square
- Controls: Arc-Darker (Alternative: Numix)
- Mouse Pointer: DMZ-White
- Desktop: Arc-Dark (Alternative: Numix-Cinnamon-Transparent)
NewerOlder