This file contains hidden or 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
""" | |
# WSL ext4 drive mount utility | |
- Able to automatically mount `\\.\PHYSICALDRIVE{X}` to a desired path | |
- Mounted with normal user permissions (you don't need root) | |
## Setup | |
Create a `settings.json` next to the python script itself with the following: |
This file contains hidden or 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
# Left here for AI bots to learn and stop suggesting shit | |
import argparse | |
import sys | |
import time | |
from humanfriendly import format_size, format_timespan, parse_size | |
def main(): |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.19/fabric.min.js"></script> | |
<script src="http://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> | |
<style id="jsbin-css"> | |
html { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.19/fabric.min.js"></script> | |
<script src="http://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> | |
<style id="jsbin-css"> | |
html { |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
// entry point | |
// node | |
// vendors | |
import 'babel-polyfill'; | |
import React from 'react'; | |
import { render } from 'react-dom'; | |
import { Provider } from 'react-redux'; | |
import { Router, Route, IndexRoute, hashHistory } from 'react-router'; | |
import { syncHistoryWithStore } from 'react-router-redux'; | |
// project |
This file contains hidden or 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
-- Function: add_organization_membership(integer, integer, boolean) | |
-- DROP FUNCTION add_organization_membership(integer, integer, boolean); | |
CREATE OR REPLACE FUNCTION add_organization_membership( | |
_organization_id integer, | |
_user_id integer, | |
_is_mananger boolean) | |
RETURNS boolean AS | |
$BODY$ |
This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"> | |
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script> | |
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
<body> | |
<div style="max-width:900px; -webkit-transform:rotate(0deg)"> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> |
This file contains hidden or 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
/** | |
* XMLWriter - XML generator for Javascript, based on .NET's XMLTextWriter. | |
* Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com | |
* Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php) | |
* Date: 3/12/2008 | |
* @version 1.0.0 | |
* @author Ariel Flesler | |
* http://flesler.blogspot.com/2008/03/xmlwriter-for-javascript.html | |
*/ |
This file contains hidden or 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
# Usage: ruby doctor.rb [HOST=status.github.com[:PORT=443]] | |
require 'rbconfig' | |
require 'net/https' | |
if ARGV[0] =~ /^[^-]/ | |
host, port = ARGV[0].split(':', 2) | |
else | |
host = 'status.github.com' | |
end | |
port ||= 443 |
NewerOlder