This file contains 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
#!/usr/bin/env sh | |
killall -9 transmission-daemon | |
rm -v /mnt/SEA_DISC/torrents/.config/transmission-daemon/blocklists/* | |
cd /mnt/SEA_DISC/torrents/.config/transmission-daemon/blocklists | |
ls /mnt/SEA_DISC/torrents/.config/transmission-daemon/blocklists | |
wget -q -O bt_level1.gz http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz | |
wget -q -O bt_level2.gz http://list.iblocklist.com/?list=bt_level2&fileformat=p2p&archiveformat=gz |
This file contains 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
set -g prefix C-a | |
unbind C-b | |
set -g default-terminal "screen-256color" | |
set -sg escape-time 1 | |
# window and panes index | |
set -g base-index 1 | |
setw -g pane-base-index 1 |
This file contains 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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
// Suggestions from golang-nuts | |
// http://play.golang.org/p/Ctg3_AQisl |
This file contains 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
"download-queue-size": 5, | |
"encryption": 1, | |
"idle-seeding-limit": 30, | |
"idle-seeding-limit-enabled": false, | |
"incomplete-dir": "/mnt/BIGHUSK/torrents", | |
"incomplete-dir-enabled": false, | |
"lpd-enabled": false, | |
"message-level": 2, | |
"peer-congestion-algorithm": "", | |
"peer-limit-global": 240, |
This file contains 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
int resultsSize = [self.dataController.products count]; //data is the previous array of data | |
[self.dataController.products addObjectsFromArray:products]; | |
[self.productsView performBatchUpdates:^{ | |
NSMutableArray *arrayWithIndexPaths = [NSMutableArray array]; | |
for (int i = resultsSize; i < resultsSize + products.count; i++) { | |
[arrayWithIndexPaths addObject:[NSIndexPath indexPathForRow:i inSection:0]]; | |
} | |
[self.productsView insertItemsAtIndexPaths:arrayWithIndexPaths]; | |
} |
This file contains 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
AWSS3.defaultS3().listBuckets(nil).continueWithBlock { | |
(task: BFTask!) -> AnyObject! in | |
let output : AWSS3ListBucketsOutput = task.result() as AWSS3ListBucketsOutput | |
println("found \(output.buckets.count) buckets") | |
for bucket in output.buckets as [AWSS3Bucket] { | |
println("Found bucket \(bucket.name)") | |
} | |
return nil |
This file contains 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
for (NSDictionary *data in responseObject[@"discussions"]) { | |
NFTDiscussionModel *discussion = [MTLJSONAdapter modelOfClass:[NFTDiscussionModel class] | |
fromJSONDictionary:data error:nil]; | |
[items addObject:discussion]; | |
} | |
success([items firstObject]); |
This file contains 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
var AWS = require("aws-sdk"); | |
var DOC = require("dynamodb-doc"); | |
var path = require('path'); | |
var util = require('util'); | |
var _ = require('lodash'); | |
var async = require('async'); | |
var internals = {}; |
This file contains 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
func dataSource(dataSource: ASTableViewDataSource, removedSections: NSIndexSet?, insertedSections: NSIndexSet?, movedSections: [MovedIndex]?) { | |
dispatch_async(dispatch_get_main_queue()) { | |
self.tableView.ins_endPullToRefresh() | |
} | |
tableView.beginUpdates() | |
var del = NSMutableIndexSet() | |
var add = NSMutableIndexSet() | |
This file contains 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
heightForHeaderInSection 0 | |
heightForHeaderInSection 0 | |
heightForHeaderInSection 1 | |
heightForHeaderInSection 1 | |
heightForHeaderInSection 2 | |
heightForHeaderInSection 2 | |
heightForHeaderInSection 3 | |
heightForHeaderInSection 3 | |
heightForHeaderInSection 4 | |
heightForHeaderInSection 4 |