I hereby claim:
- I am gsamat on github.
- I am samat (https://keybase.io/samat) on keybase.
- I have a public key whose fingerprint is 7A02 13AE B4A7 C671 9490 0978 D074 5471 F28C D69D
To claim this, I am signing this object:
conn = new Mongo(); | |
db = conn.getDB("publisher_bookmate"); | |
db.getMongo().setSlaveOk(); | |
var mapFunction1 = function() { | |
emit(this.read_at, this.size); | |
}; | |
var reduceFunction1 = function(keyCustId, readcount) { | |
return Array.sum(readcount); | |
}; | |
res= db.getCollection("stats.reading_hourlies").mapReduce( |
Правда, я слышал об одном митьке, который затрачивал сравнительно долгое время на приготовление пищи, зато он делал это впрок, на месяц вперед. Этот митёк покупал 3 кг зельца (копеек за 30 за кг), 4 буханки хлеба, две пачки маргарина для сытности, тщательно перемешивал эти продукты в тазу, варил и закатывал в десятилитровую бутыль. Таким образом, питание на месяц обходилось ему примерно в 3 рубля плюс большая экономия времени. |
echo "`{du -s /mnt/z2911kj6/pg&&sleep 10&&du -s /mnt/z2911kj6/pg}|awk 'NR==1 {a=$1;}; NR==2 {print $1-a};'`*512/1024/1024" | bc |
Application -> Build Phases -> Link Binary with Libraries -> Add QTKit.framework | |
add header to AppDelegate.h | |
#import <QTKit/QTKit.h> | |
# in AppDelegate.h | |
@property (strong) QTMovie *movie; | |
#!/bin/sh | |
# start it with "caffeinate ./enable-internet.sh", if you want to prevent your Macbook from sleeping | |
# do not forget "chmod +x ./enable-internet.sh" | |
# put your username and password below | |
username= | |
password= | |
count=1 | |
while true | |
do | |
#curl --trace-ascii - -d 'redirurl=%24PORTAL_REDIRURL%24&auth_user=$username&auth_pass=$password&accept=Login+%3E%3E' https://mwcp-spg-01a.adlkerala.com:8003/index.php |
#!/bin/sh | |
# 0. create a channel you want to import to | |
# 1. first you get token and channel_id from slack's API page | |
# 2. then you run the script | |
# 3. while it is running, you export your team data, delete everything except one channels.json, users.json and one dir for you channel | |
# 4. then manually (sorry guys) craft json and put it into channel dir | |
# 5. make zip and upload it to import | |
# 6. profit | |
token= | |
channel_id= |
I hereby claim:
To claim this, I am signing this object:
egrep -o 'https://www.facebook.com/profile.php\?id=[0-9]*' page.html | sort -u > numbers.txt | |
egrep -o 'https://www.facebook.com/[a-z\._]*\?fref' page.html | sort -u > logins.txt |
заходим в news feed preferences
Unfollow
Скроллим до упора вниз
Выполняем в консоли
var a = document.querySelectorAll('[aria-label$="Following"]');
#!/bin/sh | |
# CONFIGURATION | |
# 1. Go to @botfather and create a bot and use it's auth token as bot_token value | |
# 2. Create test channel, believe me, you need it | |
# 3. Set some url for your test channel | |
# 4. Add your bot to both channels, set their names in variables | |
# USAGE | |
# 1. Copy your markdown-formatted message into OS clipboard (Cmd+C) |