Skip to content

Instantly share code, notes, and snippets.

Ben Baron einsteinx2

Block or report user

Report or block einsteinx2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:14a0e865295cf66aa9a9bf1a8e46ee49
# Show write speed for file or directory
# Optional second parameter to set the check interval in seconds, defaults to 20
monitorio () {
target="$1"
interval=${2:-"20"}
echo -e "Checking every ${interval} seconds"
size=$(du -ks "$target" | awk '{print $1}')
firstrun="1"
echo ""
while [ 1 ]; do
@einsteinx2
einsteinx2 / emuparadise.py
Last active May 27, 2018 — forked from fopina/emuparadise.py
Scraper script for emuparadise.me
View emuparadise.py
#!/usr/bin/env python3
"""
Scraper script for emuparadise.me
Usage
=====
```
fopina$ ./emuparadise.py -h
usage: emuparadise.py [-h] [--download] [--search] [--system SYSTEM] [--list]
View iSubCLA.txt
Contributor License Agreement
By contributing your code to iSub you grant Benjamin Baron a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, transferable license under all of Your relevant intellectual property rights (including copyright, patent, and any other rights), to use, copy, prepare derivative works of, distribute and publicly perform and display the Contributions on any licensing terms, including without limitation: (a) open source licenses like the GPL license; and (b) binary, proprietary, or commercial licenses. Except for the licenses granted herein, You reserve all right, title, and interest in and to the Contribution.
You confirm that you are able to grant us these rights. You represent that You are legally entitled to grant the above license. If Your employer has rights to intellectual property that You create, You represent that You have received permission to make the Contributions on behalf of that employer, or that Your employer has waived such rights for the Contribut
@einsteinx2
einsteinx2 / BalanceCLA.txt
Created Oct 23, 2017
Balance Contributor License Agreement
View BalanceCLA.txt
Contributor License Agreement
By contributing your code to Balance you grant Balanced Software, Inc. a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, transferable license under all of Your relevant intellectual property rights (including copyright, patent, and any other rights), to use, copy, prepare derivative works of, distribute and publicly perform and display the Contributions on any licensing terms, including without limitation: (a) open source licenses like the GPL license; and (b) binary, proprietary, or commercial licenses. Except for the licenses granted herein, You reserve all right, title, and interest in and to the Contribution.
You confirm that you are able to grant us these rights. You represent that You are legally entitled to grant the above license. If Your employer has rights to intellectual property that You create, You represent that You have received permission to make the Contributions on behalf of that employer, or that Your employer has waived such rights for t
View gist:5fc58d6dd1e85bc21c64113df5ddc195
iSub 4 Missing Functionality:
Play Queue:
- Drag and drop various minor issues
- UX improvement, when mini player in play queue is not at the top, fade in a copy. When scrolling back go the top, make it slightly sticky so if falls back into place easily.
Playback:
DONE - Videos (Video player and play queue incrementing)
DONE - Support self signed SSL in AVPlayer/AVPlayerController
- Shuffle mode
View keybase.md

Keybase proof

I hereby claim:

  • I am einsteinx2 on github.
  • I am benbaron (https://keybase.io/benbaron) on keybase.
  • I have a public key ASCi0o7AxR8SyDgF0HSFUsGCPogrkc082VNZ2U_iufyegQo

To claim this, I am signing this object:

@einsteinx2
einsteinx2 / locking.swift
Last active Mar 2, 2019 — forked from kristopherjohnson/locking.swift
Simple synchronization functions for Swift, wrapping the Cocoa NSLocking classes
View locking.swift
import Foundation
/// Protocol for NSLocking objects that also provide try()
public protocol TryLockable: NSLocking {
func `try`() -> Bool
}
// These Cocoa classes have tryLock()
extension NSLock: TryLockable {}
extension NSRecursiveLock: TryLockable {}
You can’t perform that action at this time.