1 | sudo ufw allow 80/tcp |
Gravatar as Favicon
1 | <link rel="shortcut icon" type="image/x-icon" href="https://secure.gravatar.com/avatar/9f927ffa7e383a4cdbf2ae32191fe70f?r=g&d=https://avatar-cdn.atlassian.com/default/32&s=32" /> |
Extraer numeros de un string
python1
2
3
4
5
6
7>>> import re
>>> s = '300 gm'
>>> re.findall('\d+', s)
['300']
>>> s = '300 gm 200 kgm some more stuff a number: 439843'
>>> re.findall('\d+', s)
['300', '200', '439843']
mount disk centos
https://www.centos.org/forums/viewtopic.php?t=29878
Found the problem - missing packages (nfs-utils, nfs4-acl-tools, portmap) Seems to work OK with quick tests.
sda disco principal
sdb discos secundarios
fsdisk -l /dev/sdb
mount -t ext4 /dev/sdb1 mnt/disk1
git push
https://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to
If the GitHub repo has seen new commits pushed to it, while you were working locally, I would advice for:
git pull –rebase
git push
The full syntax is:
git pull –rebase origin master
git push origin master
That way, you would replay (the –rebase part) your local commits on top of the newly updated origin/master (or origin/yourBranch: git pull origin yourBranch).
See a more complete example in the chapter 6 Pull with rebase of the Git Pocket Book.
I would recommend a:
git push -u origin master
That would establish a tracking relationship between your local master branch and its upstream branch.
After that, any future push for that branch can be done with a simple:
git push
See “Why do I need to explicitly push a new branch?”.
Since the OP already reset and redone its commit on top of origin/master:
git reset –mixed origin/master
git add .
git commit -m “This is a new commit for what I originally planned to be amended”
git push origin master
There is no need to pull –rebase.
Note: git reset –mixed origin/master can also be written git reset origin/master, since the –mixed option is the default one when using git reset.
emacs 25 centos
https://gist.github.com/binarytemple-clients/0a936a9eb81db558da9b
$ sudo yum -y install libXpm-devel libjpeg-turbo-devel openjpeg-devel openjpeg2-devel turbojpeg-devel giflib-devel libtiff-devel gnutls-devel libxml2-devel GConf2-devel dbus-devel wxGTK-devel gtk3-devel
$ wget http://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-25.1.tar.gz
$ tar zxvf emacs-25.1.tar.gz
$ cd emacs-25.1
$ ./autogen
$ ./configure –without-makeinfo # incase makeinfo is not available on your system: Example Centos 7 else ./configure
would do
$ sudo make install
verify installation
$ which emacs
$ emacs –version
GNU Emacs 25.1.1
docker phpldapadmin
1 | docker pull rroemhild/test-openldap |
Linux find last modified file
1 | find -cmin -N |