Skip to content

Instantly share code, notes, and snippets.

View drakulavich's full-sized avatar
🎯
Focusing

Anton Yakutovich drakulavich

🎯
Focusing
View GitHub Profile
@drakulavich
drakulavich / insomnia-workshop-20201031.md
Last active October 30, 2020 12:51
Insomnia Workshop

Prerequirements

Please install the following tools:

We will use Medium.com clone called Conduit to test API during workshop. If you want to practice on your machine, please do the following steps.

Deploy Back-end/API on local machine

@drakulavich
drakulavich / gist:3713651
Created September 13, 2012 11:18
Edit post link with github on blogspot
1. В настройках поста нужно поменять timestamp, как показано на рисунке: http://cl.ly/image/0c0Y1c2t3s1k
Файлы у меня называются по маске год-месяц-день.md (Пример: 2012-08-26.md).
2. После <data:post.body/> вставил конструкцию:
<div style='text-align:center; margin-bottom: 10px;'><a class='button icon edit' expr:href='&quot;https://github.com/drakulavich/blogpost/blob/master/posts/&quot; + data:post.dateHeader + &quot;.md&quot;'>Исправить статью</a></div>
data:post.dateHeader превращается в 2012-08-26 и ссылка ведёт, куда следует. Уличная магия.
@drakulavich
drakulavich / gist:3256146
Created August 4, 2012 08:49
Upload images to picasaweb and get direct urls

Установить пакет googlecl:

sudo apt-get install googlecl

Примеры

Загрузить картинку в альбом Blogger'а:

google picasa post "♠ Краплёная колода" gnome-disk-utility.png
@drakulavich
drakulavich / file-splitter.py
Created August 4, 2011 21:05
python script that split files in folder for cd burning
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, operator, sys
from glob import glob
from optparse import OptionParser
usage = "usage: %prog [options] path_to_directory"
parser = OptionParser(usage=usage)
parser.add_option("-s", "--size", type="int", dest="cdsize", default=700,