Skip to content

Instantly share code, notes, and snippets.

@koniiiik
koniiiik / gist:3066649
Created July 7, 2012 14:23
Current status of the CompositeField Django fork
Script started on Sat 07 Jul 2012 11:42:21 AM CEST
Creating test database for alias 'default'...
Creating test database for alias 'other'...
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF....F.............................................F...............................................................................................................................................................................ss.............................EEEE.EE.........................................F..........................................................s................................
@koniiiik
koniiiik / proposal.rst
Last active March 20, 2019 20:30
Google Summer of Code 2013 proposal: Composite Fields, vol. 2

Composite Fields, vol. 2

Abstract

Two years ago, as part of GSoC 2011, I started working on an implementation of composite fields as a means to support multi-column primary keys in models. While the project was successful, the timeframe wasn't sufficient to finish it and get it into a state where it

@koniiiik
koniiiik / proposal.txt
Created April 24, 2013 08:36
Google Summer of Code 2011 proposal: Composite Fields
GSoC 2011 Proposal: Composite Fields
====================================
About me
--------
My name is Michal Petrucha. I'm an undergrad student of computer science
at the Faculty of Mathematics, Physics and Informatics, Comenius
University, Bratislava, Slovakia.
@koniiiik
koniiiik / tick.sh
Last active December 20, 2015 19:38
#!/bin/bash
RUN=1
trap "echo Terminated.; RUN=''" TERM
trap "echo Exiting.; sleep 1; echo 'Now really exiting.'" EXIT
while [ -n "$RUN" ]; do
echo "Tick."
sleep 1;
#INCLUDE "hostio.inc"
#USE "hostio.lib"
#USE "snglmath.lib"
VAL INT NUM.CELLS IS 47:
VAL INT OUTPUT.FIELD.WIDTH IS 3:
INT32, INT32 FUNCTION Random.bit(VAL INT32 seed)
-- Generates pseudo-random numbers. Returns an INT32 with a value of 0 or 1.
INT32 new.seed, result:
  • Update HISTORY.rst
  • Update version number in my_project/__init__.py
  • Update version number in setup.py
  • Install the package again for local development, but with the new version number:
python setup.py develop
  • Run the tests:
python setup.py test
@koniiiik
koniiiik / sd_crawl.py
Created July 6, 2017 13:06
Sample code using pysmb's security descriptor support
import logging
logging.basicConfig(level=logging.DEBUG)
import collections
import os
from smb.smb_constants import FILE_READ_DATA
from smb.SMBConnection import SMBConnection, OperationFailure
from smb.security_descriptors import (

Keybase proof

I hereby claim:

  • I am koniiiik on github.
  • I am koniiiik (https://keybase.io/koniiiik) on keybase.
  • I have a public key whose fingerprint is 517D 3563 6E0D B0B4 4950 DF2D 703B 4FF2 0F33 F925

To claim this, I am signing this object: