Skip to content

Instantly share code, notes, and snippets.

View Apkawa's full-sized avatar
๐ŸŒด
On vacation

Apkawa Apkawa

๐ŸŒด
On vacation
View GitHub Profile
@pikhovkin
pikhovkin / drawings.py
Last active March 28, 2020 10:06
Patch for openpyxl 2.1.2 for basic reading images. drawings.py and excel.py are in the patch_reader package
# coding: utf-8
from __future__ import absolute_import
import os.path
from io import BytesIO
from openpyxl.xml.constants import (PACKAGE_WORKSHEET_RELS,
REL_NS,
PACKAGE_RELS,
PACKAGE_IMAGES,
@region23
region23 / golang_books_sites.md
Last active January 5, 2025 14:30
ะŸะพะปะตะทะฝั‹ะต ั€ะตััƒั€ัั‹ ะดะปั ะธะทัƒั‡ะฐัŽั‰ะธั… Go

ะะฐ ั€ัƒััะบะพะผ ัะทั‹ะบะต

  • ะ’ะฒะตะดะตะฝะธะต ะฒ ะฟั€ะพะณั€ะฐะผะผะธั€ะพะฒะฐะฝะธะต ะฝะฐ Go - http://golang-book.ru/
  • ะ’ัั‘, ั‡ั‚ะพ ะฒั‹ ั…ะพั‚ะตะปะธ ะทะฝะฐั‚ัŒ ะฟั€ะพ GOPATH ะธ GOROOT - http://habrahabr.ru/post/249545/ (ัั‚ะฐั‚ัŒั ะฝะฐ ะฅะฐะฑั€ะต)
  • ะ ัƒััะบะธะน ั„ะพั€ัƒะผ ะฟะพ Go - https://groups.google.com/forum/#!forum/golang-ru

ะ ัƒััะบะพัะทั‹ั‡ะฝั‹ะต ัะฐะนั‚ั‹ ะธ ัะพะพะฑั‰ะตัั‚ะฒะฐ

  • ะŸะตั€ะฒั‹ะน ั€ัƒััะบะพัะทั‹ั‡ะฝั‹ะน ัะฐะนั‚ ะฟะพ Go http://4gophers.com/
  • ะ ัƒััะบะพัะทั‹ั‡ะฝั‹ะน slack-ั‡ะฐั‚ ะฟะพ Go https://golang-ru.slack.com

English resources

@Nullreff
Nullreff / install-krita.sh
Last active December 25, 2016 03:30
Krita on Debian
#!/bin/sh
# See http://www.davidrevoy.com/article193/guide-building-krita-on-linux-for-cats
# Directory setup
SOURCE=~/src/software/calligra
BUILD=~/src/software/krita
INSTALL=/opt/krita
mkdir -p $SOURCE $BUILD $INSTALL
# Install dependencies
@rothgar
rothgar / main.yml
Last active April 28, 2025 04:18
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
@rxaviers
rxaviers / gist:7360908
Last active June 1, 2025 18:40
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@lordfriend
lordfriend / 360px้ซ˜ๅบฆ
Last active December 19, 2015 00:20
G+ๅทฆไพง่พนๆ ๅ›พ็‰‡...
.M8jNpf {
overflow: visible !important;
}
.M8jNpf::before {
position: absolute;
content: url('https://lh6.googleusercontent.com/-KK4uX4DzKDs/UcsJhmwGBtI/AAAAAAAASA8/gpFUyCTqV9Q/w219-h360-no/tsukiko_small.gif');
width: 219px;
height: 360px;
top: 0px;
@zacharyvoase
zacharyvoase / README.md
Last active May 21, 2020 06:19
A liโ€™l class for data URI manipulation in Python.

DataURI.py

Data URI manipulation made easy.

This isn't very robust, and will reject a number of valid data URIs. However, it meets the most useful case: a mimetype, a charset, and the base64 flag.

Parsing

@simonsmith
simonsmith / amd-jquery-plugin.js
Last active April 29, 2020 15:28
AMD compatible plugin for jQuery
// UMD dance - https://github.com/umdjs/umd
!function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else {
factory(root.jQuery);
}
}(this, function($) {
'use strict';
@ivanvanderbyl
ivanvanderbyl / gist:4222308
Created December 6, 2012 06:55
Postgres 9.1 to 9.2 upgrade guide for Ubuntu 12.04
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
sudo apt-get install postgresql-9.2 postgresql-server-dev-9.2 postgresql-contrib-9.2
sudo su -l postgres
psql -d template1 -p 5433
CREATE EXTENSION IF NOT EXISTS hstore;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
service postgresql stop
/usr/lib/postgresql/9.2/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.2/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.2/main/ -O "-c config_file=/etc/postgresql/9.2/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf"
@mamchenkov
mamchenkov / update_translations.sh
Created September 10, 2012 13:41
gettext translations update
#!/bin/bash
DOMAIN="easyforex"
POT="$DOMAIN.pot"
LANGS="en_US ru_RU"
SOURCES="*.php"
# Create template
echo "Creating POT"
rm -f $POT