Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Shipping it like it's 1999

Neven Jacmenović guycalledseven

:shipit:
Shipping it like it's 1999
View GitHub Profile
@guycalledseven
guycalledseven / manual-uninstall-cisco-webex.sh
Created Jun 27, 2020
Manual uninstall of Cisco Webex on macOS 10.15 Catalina
View manual-uninstall-cisco-webex.sh
#!/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 / manual-uninstall-parallels.sh
Last active Jul 5, 2021
Manually remove Parallels Desktop v15 leftovers MacOS
View manual-uninstall-parallels.sh
# used different forum posts/guides to figure this out like:
# The uninstall script is located at /Library/Parallels/Parallels Service.app/Contents/Resources
# https://github.com/danijeljw/remparallels/blob/master/remprls.sh
# https://kb.parallels.com/122461
# sudo find / -iname "*parallels*"
# sudo find / -iname "*prl*"
#before uninstalling deactivate your licencse - this won't be possible after uninstall
prlsrvctl deactivate-license
@guycalledseven
guycalledseven / haproxy.md
Last active Jul 23, 2021
haproxy conditions
View haproxy.md

Haproxy conditions

Since I keep forgetting them I've put them here.

To form a condition, you can use the following syntax after the rule that it applies to:

<HAProxy action statement> if|unless [!]acl1 <AND|OR|or|'||'> [!]acl2 ...

  • if - the condition is TRUE if the result of the ACLs is TRUE.
@guycalledseven
guycalledseven / Lorem.php
Created Feb 19, 2018
Lorem generator in PHP
View Lorem.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 / nginx_issues.md
Last active Jul 23, 2018
bizarre nginx issues caused by incorrect file permissions
View nginx_issues.md

issues experienced

nginx error.log shows permission denied

nginx log in /var/log/nginx/error.log shows intereseting Error 13: Permission denied:

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.domain.tld, 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.domain.tld"
View gist:8f110e16881cf995aabd50db8b563a73
/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 / reset-spotlight-search-location.sh
Created Nov 6, 2017
Reset Spotlight search location (macos El Capitan, Sierra)
View reset-spotlight-search-location.sh
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.
@guycalledseven
guycalledseven / manual-uninstall-wireshark.sh
Created Mar 6, 2017
Manually remove Wireshark leftovers MacOS
View manual-uninstall-wireshark.sh
sudo rm -r /Applications/Wireshark.app
sudo rm -r /Library/Wireshark
sudo rm /Library/StartupItems/ChmodBPF
sudo rm /Library/LaunchDaemons/org.wireshark.ChmodBPF.plist
sudo rm /Library/Application\ Support/Wireshark/ChmodBPF/ChmodBF
sudo rm /Library/Application\ Support/Wireshark/ChmodBPF/org.wireshark.ChmodBPF.plist
sudo dscl . -delete /Groups/access_bpf
@guycalledseven
guycalledseven / manual-uninstall-paragon-ntfs.sh
Last active Jul 18, 2021
Manually remove Paragon NTFS v15 leftovers MacOS
View manual-uninstall-paragon-ntfs.sh
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
@guycalledseven
guycalledseven / karabiner.json
Created Sep 21, 2016
Karabiner-Elements config to change section key § with accent key ` put it into ~/.karabiner.d/configuration/karabiner.json
View karabiner.json
{
"profiles": [
{
"name": "Default profile",
"selected": true,
"simple_modifications": {
"non_us_backslash": "grave_accent_and_tilde"
}
}
]