Skip to content

Instantly share code, notes, and snippets.

View nico4's full-sized avatar

Cornel Nitu nico4

View GitHub Profile
@nico4
nico4 / python-sources.rst
Last active August 29, 2015 13:57
Install Python2.7 on Centos

Install Python2.7 from sources

Prerequisites: :

$ yum groupinstall 'development tools'
$ yum install zlib-devel bzip2-devel openssl-devel wget

Get Python sources:

@nico4
nico4 / puias.rst
Last active November 17, 2020 00:19
Install python2.7 on Centos 6 using PUIAS repository

Install Python2.7 on Centos with PUIAS

Create puias-computational.repo file: :

$ vim /etc/yum.repos.d/puias-computational.repo

Paste the following code into the above file: :

@nico4
nico4 / idei
Created February 7, 2014 10:16
Salut,
Scuze de întărziere, de abia acum am reușit să mă adun...
Mai jos îți trimit căteva lucruri care mi-au plăcut. Nu au o ordine și nici nu mă atașez de unul din ele în particular:
[1] http://graffitimurals.com.au/wp-content/uploads/Office-Space-Graffiti-Mural.jpg
[2] http://vps.graffitikings.co.uk/wp-content/uploads/3.jpg
[3] http://graffitimurals.com.au/office-space-street-art/
[4] http://deardesigner.co.uk/wp-content/uploads/2010/08/graffiti-interiors-cherry-bedroom12.jpg
@media screen { /* To prevent PocketPC from loading the stylesheet */
#workarea ul.menu { /* Simple menu of items */
list-style: none;
list-style-image: none;
padding:0;
margin:0;
}
.indented {
padding-left: 2em;
[
// Rebind "go to file" to cmd+shift+O
{ "keys": ["super+shift+o"], "command": "show_overlay", "args": {
"overlay": "goto",
"show_files": true
}},
// Rebind swap line up/down to cmd+shift+up/down
{ "keys": ["super+shift+down"], "command": "swap_line_down" },
{ "keys": ["super+shift+up"], "command": "swap_line_up" },
{
"auto_complete": false,
"caret_style": "solid",
"color_scheme": "Packages/Color Scheme - Default/Dawn.tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"*.pid",
#!/bin/bash
user=cornel
name=$(python setup.py sdist --format=zip | tail -n 1 | cut -d "'" -f 2)
echo "Uploading $name.zip to eggshop"
scp dist/"$name".zip $user@mojito.edw.ro:/var/local/eggshop
echo "Removing dist/"
rm -rf dist