Skip to content

Instantly share code, notes, and snippets.

View nhwaani's full-sized avatar
🎯
Focusing

Nadeem Hilal Wani nhwaani

🎯
Focusing
View GitHub Profile

#Distributed System Course List

##Systems

  • Cornell CS 614 - Advanced Course in Computer Systems - Ken Birman teaches this course. The readings cover more distributed systems research than is typical (which I am in favour of!). In fact, there's barely anything on traditional internal OS topics like filesystems or memory management. There's some worthwhile commentary at the bottom of the page.

  • Princeton COS 518 - Advanced Operating Systems - short and snappy reading list of two papers per topic, covering some interesting stuff like buffering inside the operating system, and L4.

with container_item_qty as (
SELECT itb.barcode as container, itl.barcode as barcode, itb.id_doc_source, count(itl.barcode) as qty
FROM noondwh.wms.item_box itb
LEFT JOIN noondwh.wms.item_box_contents ibc ON (ibc.id_item_box_container = itb.id_item_box) AND itb.id_state =4
LEFT JOIN noondwh.wms.item itm ON (itm.id_item, itm.id_item_kind) = (ibc.id_item_inner, 1)
LEFT JOIN noondwh.wms.item_lot itl ON itm.id = itl.id_item_lot
LEFT JOIN noondwh.wms.doc d ON (d.id_doc = itb.id_doc_source) AND d.id_state = 5
LEFT JOIN noondwh.wms.doc_tag dt USING (id_doc_tag)
LEFT JOIN noondwh.wms.warehouse w USING (id_warehouse)
WHERE 1=1
@nhwaani
nhwaani / rms_tote_seggregation.py
Last active May 24, 2021 12:20
RMS TOTE SEGREGATION PR
TOTE REGEX :
TOTE_CODE_TTR = '^TTR[0-9]{5}$' # RMS
TOTE_CODE_TT = '^TT[0-9]{3,9}$' # WMS only wms will have TT followed by 3-9 digits
TOTE_CODE_TTX = '^TTX[0-9]{5}$' #XMS
For the new flow we will hit :
1: /{barcode}/mp_resolution which accepts
@nhwaani
nhwaani / db.sql
Last active August 4, 2020 11:42
Update return_request set warehouse_code = "W00000012A", destination_warehouse_code="W00000012A" where warehouse_code = "CAI01";
Update return_document set warehouse_code = "W00000012A" where warehouse_code = "CAI01";
Update return_document_capacity set warehouse_code = "W00000012A" where warehouse_code = "CAI01";
Update return_request set warehouse_code = "W00000018A", destination_warehouse_code="W00000018A" where warehouse_code = "CAI02";
Update return_document set warehouse_code = "W00000018A" where warehouse_code = "CAI02";
Update return_document_capacity set warehouse_code = "W00000018A" where warehouse_code = "CAI02";
Update return_request set warehouse_code = "W00000020A", destination_warehouse_code="W00000020A" where warehouse_code = "CAI03";
Update return_document set warehouse_code = "W00000020A" where warehouse_code = "CAI03";
class Partner(Model):
__tablename__ = 'partner'
id_partner = sa.Column(BIGINT, nullable=False, primary_key=True)
name = sa.Column(sa.String(50), nullable=False)
phone = sa.Column(sa.String(30), nullable=False, default='+971-50-0000000')
street_address = sa.Column(sa.String(500), nullable=False)
lang = sa.Column(sa.String(20), nullable=False, default='en') # en
country = sa.Column(sa.String(30), nullable=False)
awbs = ["PB79974159641A","PB79258896436A","PB79313383818A","PB71584849249A","PB78213390060A","PB75377579464A","PB74998364445A","PB72615329048A","PB74967239700A","PB77192318186A","PB77082219527A","PB79470582990A","PB70505383139A","PB76166247256A","PB76721100221A","PB71966330101A","PB78317860446A","PB73381674808A","PB70422721020A","PB79031660901A","PB79138902780A","PB77474213709A","PB77229529859A","PB73793925275A","PB78355278529A","PB73348048363A","PB77955457420A","PB79683022255A","PB70467030283A","PB77471639199A","PB78136352088A","PB76483791452A","PB76366128200A","PB73232902773A","PB72283159486A","PB72072462091A","PB76151466867A","PB73709269874A","PB77453848663A","PB79016491501A","PB72205085926A","PB79576043040A","PB78930478359A","PB78998783938A","PB72049688541A","PB75035453958A","PB75489381791A","PB73748942457A","PB75519997536A","PB79116379528A","PB76198626430A","PB74759800572A","PB73637639619A","PB78399735698A","PB70493065818A","PB78267425612A","PB73699749748A","PB74332109269A","PB75210496776A","PB7145500047
for i, _ in enumerate(string):
y = i+1
for x in range(y, len(string)):
if ord(string[i]) - ord(string[x]) == 0:
return False
return True
class TransferDocument(Model):
__tablename__ = 'transfer_document'
id_transfer_document = sa.Column(sa.BIGINT, primary_key=True)
id_warehouse = sa.Column(sa.Integer,nullable=False)
id_partner = sa.Column(sa.Integer, nullable=False)
doc_nr = sa.Column(sa.String(100),nullable=False, unique=True)
doc_type = sa.Column(sa.String(50), nullable=False)
doc_ref = sa.Column(sa.String(100), nullable=False)
zone_src = sa.Column(sa.String(100),nullable=False)
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Start-Up commands
# Network monitor applet
exec --no-startup-id nm-applet
# Gnome stuffs
exec --no-startup-id gnome-settings-daemon
# This disables "tap-click"
@nhwaani
nhwaani / Sublime Text 3 Build 3103 License Key - CRACK
Created September 17, 2016 22:12
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04