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
Show hidden characters
{ | |
"atomic_save": false, | |
"bold_folder_labels": true, | |
// OSX | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme", | |
// "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Bright.tmTheme", | |
"fade_fold_buttons": false, | |
"font_face": "Monaco", |
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
# https://coderwall.com/p/oqtj8w/the-single-most-useful-thing-in-bash | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
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
defaults delete com.apple.Spotlight userHasMovedWindow | |
defaults delete com.apple.Spotlight userHasMovedWindow;defaults delete com.apple.Spotlight windowHeight;killAll Spotlight | |
2017-11-06 21:23:27.412 defaults[8180:686296] | |
Domain (com.apple.Spotlight) not found. | |
Defaults have not been changed. | |
2017-11-06 21:23:27.507 defaults[8181:686301] | |
Domain (com.apple.Spotlight) not found. | |
Defaults have not been changed. |
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
/var/log/nginx/error.log | |
``` | |
2017/11/14 00:33:30 [crit] 5117#5117: *224 open() "/var/lib/nginx/proxy/3/02/0000000023" failed (13: Permission denied) while reading upstream, client: 93.136.115.2, server: git.nivas.hr, request: "GET /css/semantic-2.2.10.min.css HTTP/1.1", upstream: "http://127.0.0.1:3000/css/semantic-2.2.10.min.css", host: "git.nivas.hr" | |
``` | |
``` | |
ps aux | grep "nginx: worker process" | |
nginx 5117 0.0 0.1 125644 6676 ? S 00:30 0:00 nginx: worker process | |
``` |
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
{ | |
// you may set specific environment variables here | |
// e.g "env": { "PATH": "$HOME/go/bin:$PATH" } | |
// in values, $PATH and ${PATH} are replaced with | |
// the corresponding environment(PATH) variable, if it exists. | |
"env": {"GOPATH": "c:/Users/Neven/Dropbox/Private/projects/go/workspace/", "PATH": "$GOPATH/bin:$PATH" }, | |
"autocomplete_live_hint": true, | |
"fmt_tab_width": 4, | |
//"fmt_cmd": ["goimports"], |
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
<?php | |
// by user @mpen - https://stackoverflow.com/a/39986034/528020 | |
// usage: Lorem::ipsum(4); | |
abstract class Lorem { | |
public static function ipsum($nparagraphs) { | |
$paragraphs = []; | |
for($p=0; $p<$nparagraphs; ++$p) { | |
$nsentences = random_int(3,8); | |
$sentences = []; | |
for($s=0; $s<$nsentences; ++$s) { |
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
!/bin/sh | |
sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet.kext | |
sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet.kext | |
sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XComposite.kext | |
sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XComposite.kext | |
sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet109.kext | |
sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet109.kext |
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
# Tested on OSX Yosemite 10.10.4 | |
# there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b | |
# XXX TODO | |
# should I disable com.google.Keystone.Agent ?? | |
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/ | |
# Stop DS_Store file creation on network connections | |
# restart Finder afterwards |
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
#!/bin/bash | |
# | |
# After downloading and running official Cisco Webex uninstaller (Cisco_WebEx_App_Uninstall), there is still a lot of Cisco Webex artifacts left on the system | |
# Cisco_WebEx_App_Uninstall.dmg.zip - https://cisco.bravais.com/s/4Kd44oJMbWksbTPQtvpw | |
# | |
rm -rf "/Users/$USER//Library/Application Support/Google/Chrome/Default/IndexedDB/https_tadawul.webex.com_0.indexeddb.leveldb" | |
rm -rf "/Users/$USER//Library/Application Support/Cisco/WebEx Meetings" | |
rm -rf "/Users/$USER//Library/WebKit/com.webex.meetingmanager" | |
rm -rf "/Users/$USER//Library/Logs/WebexMeetings" |
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
{ | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": { | |
"non_us_backslash": "grave_accent_and_tilde" | |
} | |
} | |
] |
OlderNewer