Disclaimer: Its a collection from lots of other site(s) and few of my notes. I would also like to declare that I am not owning lots of its content. Please feel free to contact me directly if you want me to remove any of your content, that you don't want to share to other through this blog.
Thursday, 29 December 2016
For Kid and on mac
cat tellWordsWithArgs.py
#!/usr/bin/env python
import subprocess
import sys
# Example on how to use this code:
# ./tellWordsWithArgs.py I like to eat apple
command = "say"
text = sys.argv[1:]
tc = list(text)
topCharacters = list(tc)
for characters in topCharacters:
c1 = list(characters)
for c1 in characters:
if c1 == " ":
subprocess.call([command, ",,"])
else:
subprocess.call([command, c1])
#Changing list to string again.
text=''.join(text)
subprocess.call([command, text])
github
Github
README:
*) How to pull files from this repository?
Ans: a) Install git
b) create a directory where you want to pull these files.
c) cd into that directory
d) type: git init
e) git pull https://github.com/Amitmund/quick_tools
# Example:
mkdir -p ~/github/amitmund/quick_tools
cd ~/github/amitmund/quick_tools [ unix quick key: cd + [esc + _ ]
# make sure you are in the above directory
# Note: You can create your won directory name, its just an example.
git init
git pull https://github.com/Amitmund/quick_tools
### For owner ###
Steps: if you want to add or edit things at this repo. [ example: adding Updating README file ]
a. vi README [ update your content.]
b. git add README
c. git commit -m “Updating README file"
d. git remote add origin https://github.com/Amitmund/quick_tools
e. git push -u origin master
# It will ask your username and password please provide the same.
# Few more Note:
$HOME/.gitconfig is your global config for git.
There are three levels of config files.
cat $(git rev-parse --show-toplevel)/.git/config
(mentioned by bereal) is your local config, local to the repo you have cloned.
you can also type from within your repo:
git remote -v
And see if there is any remote named 'origin' listed in it.
If not, if that remote (which is created by default when cloning a repo) is missing, you can add it again:
git remote add origin url/to/your/fork
Original Link: http://stackoverflow.com/questions/15637507/fatal-origin-does-not-appear-to-be-a-git-repository
README:
*) How to pull files from this repository?
Ans: a) Install git
b) create a directory where you want to pull these files.
c) cd into that directory
d) type: git init
e) git pull https://github.com/Amitmund/quick_tools
# Example:
mkdir -p ~/github/amitmund/quick_tools
cd ~/github/amitmund/quick_tools [ unix quick key: cd + [esc + _ ]
# make sure you are in the above directory
# Note: You can create your won directory name, its just an example.
git init
git pull https://github.com/Amitmund/quick_tools
### For owner ###
Steps: if you want to add or edit things at this repo. [ example: adding Updating README file ]
a. vi README [ update your content.]
b. git add README
c. git commit -m “Updating README file"
d. git remote add origin https://github.com/Amitmund/quick_tools
e. git push -u origin master
# It will ask your username and password please provide the same.
# Few more Note:
$HOME/.gitconfig is your global config for git.
There are three levels of config files.
cat $(git rev-parse --show-toplevel)/.git/config
(mentioned by bereal) is your local config, local to the repo you have cloned.
you can also type from within your repo:
git remote -v
And see if there is any remote named 'origin' listed in it.
If not, if that remote (which is created by default when cloning a repo) is missing, you can add it again:
git remote add origin url/to/your/fork
Original Link: http://stackoverflow.com/questions/15637507/fatal-origin-does-not-appear-to-be-a-git-repository
Subscribe to:
Posts (Atom)