Skip to content

Instantly share code, notes, and snippets.

View jasonpolites's full-sized avatar

Jason jasonpolites

View GitHub Profile
@dayne
dayne / 0-WLS_Removing Win Path.md
Last active June 23, 2024 06:08
Cleaning up WLS path to remove /mnt/c paths (world writable).

The Windows Linux Subsystem (WSL) comes with /win/c mounted world read-write and is setup for compatibility between windows and linux by putting all your windows paths into your linux system path. This is great for some usecases. Some tools get grumpy having these world writable directories a users path. While this doesn't break them but it can cause annoying warning messages.

On the other hand, when you don't care about the windows tools being in your path, it might make you more sane not to see those error messages, and also to limit the number of places tools look for supporting binaries not-relevant to themselves.

: warning: Insecure world writable dir /mnt/c in PATH, mode 040777

You can remove all those /mnt/c paths from your $PATH with the following line:

@jasonpolites
jasonpolites / addcomment.java
Created August 8, 2011 22:57
Socialize SDK Android - Comments
import com.socialize.Socialize;
import com.socialize.entity.Comment;
import com.socialize.error.SocializeException;
import com.socialize.listener.comment.CommentAddListener;
if(Socialize.getSocialize().isAuthenticated()) {
// Add a comment to an entity
Socialize.getSocialize().addComment("http://someurl.com", "My comment text", new CommentAddListener() {
public void onError(SocializeException error) {