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
nix-env --uninstall '*' | |
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller | |
./result/bin/darwin-uninstaller | |
sudo launchctl unload /Library/LaunchDaemon/org.nixos.nix-daemon.plist | |
sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
sudo launchctl unload /Library/LaunchDaemons/org.nixos.activate-system.plist | |
sudo rm /Library/LaunchDaemons/org.nixos.activate-system.plist | |
sudo rm -rf /etc/nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels |
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
/** | |
* Matrix 4 video URL generator | |
* by: gil0mendes <gil00mendes@gmail.com> | |
* | |
* [ALERT] | |
* Please keep in mind that this code can stop working due to website changes. I really don't know if they will keep | |
* the files after announcing the trailer or film release. | |
* | |
* [CONTEXT] | |
* Matrix 4 teaser was announced with a interactive website that allows you to chose between the red and blue pill. It |
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
(function () { | |
const docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
el.style.outline = '1px solid red'; | |
console.log(el); | |
} |
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
/** | |
* Load Controller from Url | |
* v: 1.0.2 | |
* | |
* Created by Gil Mendes <gil00mendes@gmail.com> | |
* | |
* Usage: | |
* ng-controller-from-Url="<url_to_js>[|<controller_name>]" | |
*/ | |
define([ |
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
### SERVER SERVICES ALIAS | |
# Nginx | |
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.restart='nginx.stop && nginx.start' | |
# PHP-FPM | |
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist" | |
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist" | |
alias php-fpm.restart='php-fpm.stop && php-fpm.start' |