Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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:

@koniiiik
koniiiik / sd_crawl.py
Created Jul 6, 2017
Sample code using pysmb's security descriptor support
View sd_crawl.py
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 (
View pypi-release-checklist.md
  • 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
View life-1d-dist1.occ
#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:
View tick.sh
#!/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;
@koniiiik
koniiiik / proposal.txt
Created Apr 24, 2013
Google Summer of Code 2011 proposal: Composite Fields
View proposal.txt
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 / proposal.rst
Last active Mar 20, 2019
Google Summer of Code 2013 proposal: Composite Fields, vol. 2
View proposal.rst

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 / gist:3066649
Created Jul 7, 2012
Current status of the CompositeField Django fork
View gist:3066649
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................................