Skip to content

Instantly share code, notes, and snippets.

View exploreshaifali's full-sized avatar

Shaifali Agrawal exploreshaifali

View GitHub Profile
1. Cutter, Editor, Merger:
Install, mp3 splt, mp3 wrap using,
$ sudo apt-get install mp3wrap mp3splt
a) To Split:
Put the mp3 files in home folder, and execute the following command in the terminal.
$ mp3splt filename.mp3 00.00 01.23 03.20
Now the file will splitted to two halves.
First Half, from 00:00 to 01:23 and
Second half, from 01:23 to 03:20
# List of Docs for US Visa(B1/B2):
1 passport
2 Non-immigrant Visa Application, Form DS-160 confirmation page
3 Application fee payment receipt
4 Photo
5 evidence for:
* The purpose of your trip
* Your intent to depart the United States after your trip; and/or
* Your ability to pay all costs of the trip.
alias gst='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gp='git push'
alias gpl='git pull'
alias glog='git log --oneline'
sudo apt-get install -y git
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
./stack.sh
To use Zaqar with Keystone auth, try getting a token from keystone
(replace "http://178.62.30.120:5000/v2.0/" with your auth endpoint/url and "http://178.62.30.120:8888/v1/" with zaqar endpoint)
$ export TOKEN=`curl -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "nomoresecrete"}}}' -H "Content-type: application/json" http://178.62.30.120:5000/v2.0/tokens | python -c "import sys,json;print json.loads(sys.stdin.readlines()[0])['access']['token']['id']"`
List queues:
curl -i -X GET http://178.62.30.120:8888/v1/queues -H "X-Auth-Token: $TOKEN"
Create Queue:
curl -i -X PUT http://178.62.30.120:8888/v1/queues/samplequeue -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" -d '{"metadata": "My Queue"}'
**Error**: when run any screen command - *Cannot open your terminal '/dev/pts/0' - please check*
Try running script /dev/null as the user you su to before launching screen - its a ghetto little hack, but it should make screen happy
FAIL: unittest2.loader.ModuleImportFailure.tests.functional.wsgi.v1.test_messages
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
ImportError: Failed to import test module: tests.functional.wsgi.v1.test_messages
Traceback (most recent call last):
File "/home/aaa/Documents/zaqar/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
module = self._get_module_from_name(name)
File "/home/aaa/Documents/zaqar/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
__import__(name)
final_list =[[],[], [], [], [], []]
for i in range(1, len(array)):
final_list(i%12 - 1).appent(array[i-1]
#though you can modify it more, the way you what :)
aaa@ubuntu:~/Documents/zaqar2/doc/user-guide/zaqar-config-ref$ mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "amd64", family: "unix"
responder(req, resp, **kwargs)
File "/home/aaa/Documents/zaqar/.tox/py27/local/lib/python2.7/site-packages/falcon/api_helpers.py", line 262, in do_before
responder(req, resp, **kwargs)
File "zaqar/queues/transport/wsgi/v1_1/pools.py", line 174, in on_put
if not storage_utils.can_connect(data['uri'], conf=conf):
File "zaqar/queues/storage/utils.py", line 146, in can_connect
storage_type = six.moves.urllib_parse.urlparse(uri).scheme
File "zaqar/queues/storage/utils.py", line 146, in can_connect
storage_type = six.moves.urllib_parse.urlparse(uri).scheme
File "/usr/lib/python2.7/bdb.py", line 49, in trace_dispatch