Skip to content

Instantly share code, notes, and snippets.

View guycalledseven's full-sized avatar
:shipit:
Shipping it like it's 1999

Neven Jacmenović guycalledseven

:shipit:
Shipping it like it's 1999
View GitHub Profile
@guycalledseven
guycalledseven / Preferences.sublime-settings
Last active October 20, 2015 20:21
sublime settings (for OSX MBP13" + Win10 Wide)
{
"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",
@guycalledseven
guycalledseven / .inputrc
Created February 29, 2016 19:10
enables case insensitive autocomplete with up/down arrows
# 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
@guycalledseven
guycalledseven / reset-spotlight-search-location.sh
Created November 6, 2017 20:25
Reset Spotlight search location (macos El Capitan, Sierra)
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.
/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
```
@guycalledseven
guycalledseven / GoSublime.sublime-settings
Last active February 15, 2018 18:23
My GoSublime .dot file
{
// 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"],
@guycalledseven
guycalledseven / Lorem.php
Created February 19, 2018 01:08
Lorem generator in PHP
<?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) {
@guycalledseven
guycalledseven / tplink_ue300_driver_uninstall.sh
Last active May 31, 2020 14:53
Manually uninstall TPLINK UE300 USB3 WIFI dongle drivers on OS X
@guycalledseven
guycalledseven / osx_yosemite_disable_features.sh
Last active August 16, 2021 01:57
Disabling OSX Yosemite annoyances / features I have no use of
# 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
@guycalledseven
guycalledseven / manual-uninstall-cisco-webex.sh
Created June 27, 2020 10:53
Manual uninstall of Cisco Webex on macOS 10.15 Catalina
#!/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"
@guycalledseven
guycalledseven / karabiner.json
Created September 21, 2016 10:45
Karabiner-Elements config to change section key § with accent key ` put it into ~/.karabiner.d/configuration/karabiner.json
{
"profiles": [
{
"name": "Default profile",
"selected": true,
"simple_modifications": {
"non_us_backslash": "grave_accent_and_tilde"
}
}
]