ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update| #!/bin/bash | |
| mount_disk() | |
| { | |
| sudo umount $disk | |
| mkdir ~/Desktop/$diskname | |
| sudo mount_ntfs -o rw,auto,nodev,nobrowse,noowners,noatime $disk ~/Desktop/$diskname | |
| echo "Mount $disk to ~/Desktop/$diskname" | |
| open ~/Desktop/$diskname | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>homebrew.mxcl.aria2</string> |
| Issue this command to terminal with your device connected : | |
| $ adb shell pm list packages | |
| If that doesn't work, then: | |
| $ adb shell | |
| $ su | |
| $ pm list packages |
| #!/bin/sh | |
| # | |
| # msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service | |
| # | |
| # Please report issues and/or improvements to Sam Hocevar <sam@hocevar.net> | |
| # | |
| # Prerequisites: | |
| # — MSYS2 itself: http://sourceforge.net/projects/msys2/ | |
| # — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights | |
| # |
| // ==UserScript== | |
| // @name Google Search Better Privacy | |
| // @description Delete unnecessary params and add useful params on Google Search. | |
| // @version 0.0.4 | |
| // @include http://*.google.*/search* | |
| // @include http://*.google.*/imgres* | |
| // @include https://*.google.*/search* | |
| // @include https://*.google.*/imgres* | |
| // @exclude http://play.google.com/* | |
| // @exclude http://mail.google.com/* |
| #!/bin/sh | |
| # | |
| # sshd setup script for gRPC Jenkins windows worker. | |
| # | |
| # Prerequisites: | |
| # — MSYS2 itself: http://sourceforge.net/projects/msys2/ | |
| # — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights | |
| # | |
| # This script is a cleaned up and improved version of the procedure initially | |
| # found at https://ghc.haskell.org/trac/ghc/wiki/Building/Windows/SSHD |
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <!-- iOS 10, macOS Sierra, and friends bring a new logging subsystem that's | |
| supposed to scale from the kernel, up to frameworks, and up to apps. It defaults | |
| to a more regimented, privacy-focused approach that large apps and complex | |
| systems need. | |
| It, along with Activity Tracing introduced in iOS 8 and macOS Yosemite and the | |
| Console app in macOS Sierra, hope to help you graduate from caveman debugging to |
| 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 |