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
### Keybase proof | |
I hereby claim: | |
* I am ipedrazas on github. | |
* I am iv (https://keybase.io/iv) on keybase. | |
* I have a public key whose fingerprint is CF64 C5D1 AEA0 4B09 07C3 6C10 3669 7054 1D4F 3A80 | |
To claim this, I am signing this object: |
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
# run.py | |
from eve import Eve | |
import pdb | |
from worker import populate_dotmark | |
def after_insert(resource, items): | |
print "after insert" | |
for item in items: | |
url = item['url'] |
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
from eve import Eve | |
import pdb | |
from worker import populate_dotmark | |
def after_insert(resource, items): | |
print "after insert" | |
for item in items: |
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
/* Controllers */ | |
angular.module('dotApp').controller('dotMarkController', ['$scope', 'api', '$routeParams', function ($scope, api, $routeParams) { | |
$scope.refreshEntries = function(){ | |
api.getDotMarksEntries().success(function (data) { | |
var elems = new Array(); | |
var etags = new Array(); | |
_.each(data._items, function(item){ | |
elems.push(item); | |
_.each(item.tags, function(tag) { |
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
-> % curl -H "If-Match: 8c000ac14c61d1810a49418ca8c2147a5310f923" -X PATCH | |
-d 'views=2' http://dotmarks.dev:5000/dotmarks/5373ae41f3c4d5154270e265 | |
{"_status": "ERR", "_issues": {"views": "must be of integer type"}} |
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
xsetwacom set "Wacom BambooPT 2FG Small Pen stylus" MapToOutput HDMI1 |
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
<div class="calculator center"> | |
<form class="form-horizontal" role="form"> | |
<div class="form-group"> | |
<div class="col-xs-6 col-sm-4"> | |
</div> | |
<div class="col-xs-6 col-sm-4 xrate"> | |
<h1>Megamine Btc-Satoshi Calculator</h1> | |
</div> | |
<div class="col-xs-6 col-sm-4"> | |
</div> |
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
sudo apt-get install vim-athena | |
"+yy > copy | |
"+p < paste | |
# finally | |
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
lsblk | |
# umount any disk that you want to use in the raid | |
umount /mnt | |
sudo apt-get install lvm2 | |
sudo mkdir /mnt/stripe1 | |
sudo vgcreate vg1 /dev/xvdb /dev/xvdc | |
sudo lvcreate -i 2 -L 300G -n lv1 vg1 | |
sudo mkfs -t ext4 /dev/vg1/lv1 |
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
docker run -it -v /etc/localtime:/etc/localtime -v $HOME/.irssi:/home/user/.irssi --read-only --name irssi irssi |
OlderNewer