mardi 19 septembre 2017

SeaTools | Seagate

L'outils de vérification des disques Seagate :
SeaTools

disque dur,hard drive,dd,Seagate,SeaTools,logiciel,software,outil,tool

mercredi 8 mars 2017

Excel to CSV with UTF8 encoding

Convert Excel CVS to utf8 encoding

Excel's default encoding seems to be CP858 when saving as CSV or MS-DOS CSV, and Windows 1252 when saving as Windows CSV (as tested on Excel for Mac 2011).

iconv -f cp1252 -t utf-8 file.csv > file.utf8.csv

jeudi 19 janvier 2017

MacPorts - Tunneling rsync through SSH to permit self update from behind a firewall

#26530 (Tunneling rsync through SSH to permit selfupdate from behind a firewall) %u2013 MacPorts

There is an issue on the method describe. When you test if ssh connexion using RSA key work. Ticket 26530 has been closed, then I put the correction here. "ssh -i" use RSA private key not the public key.

Description

I work in a large academic medical center whose IT has been outsourced to the lowest bidder. All ports except SSH, HTTP, and HTTPS are closed. This makes life inconvenient, but not impossible. This is my workaround for getting MacPorts to selfupdate.

First, you must have a host outside the firewall to which you have access:

$ssh myhost.example.net

It must be able to reach rsync.macports.org (or a mirror), and have netcat. Confirm this with:

$ssh myhost.example.net "nc rsync.macports.org 873"
@RSYNCD: 30.0

Having established this works, we will create a keypair to secure and simplify the process:

$ssh-keygen -f myrsynckey     (add any options you'd like)

Now prepend the connection command to the public key:

$echo -n 'command="nc rsync.macports.org 873",no-port-forwarding,no-X11-forwarding,no-agent-forwarding '|cat - myrsynckey.pub > /tmp/out && mv /tmp/out myrsynckey.pub

(Note that this is a single line)

Transfer the file myrsynckey.pub to myhost.example.net and append it to authorized_keys2

Confirm that this works with:

$ssh -i ~/.ssh/myrsynckey myhost.example.net
@RSYNCD: 30.0

Having gotten this working, we now need to modify macports.conf to use the tunnel. Append the following to the rsync_options:

"ssh myhost.example.net -i FullPathToMyHomeDirectory/.ssh/myrsynckey -l myUserName"

Note that selfupdate is run with sudo, and thus you must specify the username and path to the user directory (which otherwise would be root). It would be more secure to use an account on myhost.example.net that has --disabled-password.

MacPorts,MacOS X,rsync,ssh

MacPorts - Tunneling rsync through SSH to permit selfupdate from behind a firewall

#26530 (Tunneling rsync through SSH to permit selfupdate from behind a firewall) %u2013 MacPorts There is an issue on the method describe. When you test if ssh connexion using RSA key work. Ticket 26530 has been closed, then I put the correction here. "ssh -i" use RSA private key not the public key.

Description

I work in a large academic medical center whose IT has been outsourced to the lowest bidder. All ports except SSH, HTTP, and HTTPS are closed. This makes life inconvenient, but not impossible. This is my workaround for getting MacPorts to selfupdate.

First, you must have a host outside the firewall to which you have access:

$ssh myhost.example.net

It must be able to reach rsync.macports.org (or a mirror), and have netcat. Confirm this with:

$ssh myhost.example.net "nc rsync.macports.org 873"
@RSYNCD: 30.0

Having established this works, we will create a keypair to secure and simplify the process:

$ssh-keygen -f myrsynckey     (add any options you'd like)

Now prepend the connection command to the public key:

$echo -n 'command="nc rsync.macports.org 873",no-port-forwarding,no-X11-forwarding,no-agent-forwarding '|cat - myrsynckey.pub > /tmp/out && mv /tmp/out myrsynckey.pub

(Note that this is a single line)

Transfer the file myrsynckey.pub to myhost.example.net and append it to authorized_keys2

Confirm that this works with:

$ssh -i ~/.ssh/myrsynckey myhost.example.net
@RSYNCD: 30.0

Having gotten this working, we now need to modify macports.conf to use the tunnel. Append the following to the rsync_options:

"ssh myhost.example.net -i FullPathToMyHomeDirectory/.ssh/myrsynckey -l myUserName"

Note that selfupdate is run with sudo, and thus you must specify the username and path to the user directory (which otherwise would be root). It would be more secure to use an account on myhost.example.net that has --disabled-password.

mardi 20 décembre 2016

Coralbits: C++ Cron Class Implementation

Coralbits: C++ Cron Class Implementation

dougbinks/enkiTS: C++ and C multithreading task scheduler

dougbinks/enkiTS: C and C multithreading task scheduler

lundi 19 décembre 2016

Enregistrer directement le son de l'ordinateur sous Mac OS X | Le journal du lapin

Enregistrer directement le son de l'ordinateur sous Mac OS X | Le journal du lapin

Google Code Archive - Long-term storage for Google Code Project Hosting.

Google Code Archive - Long-term storage for Google Code Project Hosting.

Pomodoro Timer

Pomodoro Timer

jeudi 15 décembre 2016

symfony dev remote access

En cas de remote ajouter les IPs qui peuvent accéder à la partie dev dans web/app_dev.cfg et web/config.php

if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || php_sapi_name() === 'cli-server')


add your IPs in the array : ['127.0.0.1', '::1']

Symfony create app

get symfony

@@
wget -O symfony.phar http://symfony.com/installer
@@

create the environment

@@
php symfony.phar new Symfony
@@

clean old file

@@
cd var
rm -rf var/*
@@

give some right

  1. find the user
@@
HTTPDUSER=`ps aux|grep -E 'apache|httpd|_www|www-data|nginx'|grep -v root|head -1|cut -d\  -f1`
@@
  1. apply the right


* with chmod +a if your OS support

@@
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
@@

  • else use ACL with
@@
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var
@@
  • in other case simply use
@@
chmod -R 777 var
@@


Lazarus Homepage

Lazarus Homepage

mardi 13 décembre 2016

Creating Rich, Interactive Web Projects With Symfony Framework - 1&1 Community

Creating Rich, Interactive Web Projects With Symfony Framework - 1&1 Community

1&1 Blog

lundi 12 décembre 2016

iOS 7 SDK: Core Bluetooth - Practical Lesson

iOS 7 SDK: Core Bluetooth - Practical Lesson

vendredi 9 décembre 2016

c# - How to extend class with an extra property - Stack Overflow

c# - How to extend class with an extra property - Stack Overflow

Design Patterns & Refactoring

Design Patterns & Refactoring

jeudi 8 décembre 2016

Dynamic in C# 4.0: Introducing the ExpandoObject | C# Frequently Asked Questions

Dynamic in C# 4.0: Introducing the ExpandoObject

Les lambda expression et delegate

Les lambda expression et delegate

mercredi 23 novembre 2016

Guacamole 0.9.10 install script on a fresh Ubuntu 16.10 server

I made a bash script to automaticaly install guacamole on a fresh Ubuntu 16.10 server find the script shell on GitHut Guacamole install GitHub repository

commande formatage vFat et exFat

Commandes de formatage en vfat/exfat en root sous linux :

@@
mkfs.vfat -n 'NIKON D800E' /dev/mmcblk0p1
mkfs.exfat -n 'NIKON D800E' /dev/mmcblk0p1
@@

- page 2 de 218 -