This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace | |
# append to the history file, don't overwrite it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tailf -n0 bar.raw.log | while read line; do echo "$(date -R) $line" >> bar.log; done; | |
from : http://unix.stackexchange.com/questions/56189/appending-timestamp-stamp-along-with-log-file-lines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~LButton & RButton:: | |
Send {LButton Up} | |
FilePath:="" | |
FilePath:=GetFile() | |
IfExist, %FilePath% | |
Run "C:\...\Notepad++ 6.2\notepad++.exe" %FilePath% | |
return | |
GetFile() { | |
ClipSave:=ClipboardAll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
augroup ZIP | |
au BufReadPre *ZIP setlocal bin | |
au BufReadCmd *ZIP call zip#Browse(expand("<amatch>")) | |
au BufWriteCmd *ZIP call zip#Write(expand("<amatch>")) | |
au FileReadCmd *ZIP zip#Read(expand("<amatch>"), 0) | |
au FileReadPre *ZIP setlocal bin | |
au FileWriteCmd *ZIP call zip#Write(expand("<amatch>")) | |
augroup END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - hraadmin -c '/exploit/hra/script/appli/STD/lien/;cp /data/sas-echange/archidep/work/hr2dep2dctmdep/GLU/in/*'$(date "+%Y-%m-%d")'*.xls /tmp/' | |
sudo su - hraadmin -c '/exploit/hra/script/appli/STD/lien/;chmod 777 /tmp/*'$(date "+%Y-%m-%d")'*' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ------------------------------------------------------------------------------------------------------- | |
-- A SQL script for importing GFTS data from the State of Delaware into a MySQL database. | |
-- | |
-- Copyright 2010 Mark J. Headd | |
-- http://www.voiceingov.org | |
-- | |
-- This file is free software; you can redistribute it and/or modify it under the terms of the | |
-- GNU Library General Public License as published by the Free Software Foundation; either version 2 of the | |
-- License, or (at your option) any later version. | |
-- This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Créer un fichier /produit/hra/file/PSBBCLLI.CXX (XX IDJOB, tu renseignes ce que tu veux) | |
2) Dans le fichier écrire pour chaque commande SQL : | |
<PGMBCL> | |
DELETE FROM ZY00 WHERE NUDOSS = +000001299 | |
<PGMBCL> | |
Si besoin, faire un retour auto a la ligne avec "fold" : | |
fold foo > PSBBCLLI.CXX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub recup() | |
Range("A1").Select 'sélectionner la cellule de début | |
Chemin = "C:\Documents and Settings\ccharlier-adc\Mes documents\Téléchargements\" 'saisir le chemin complet du dossier où se trouvent les fichiers | |
Fichier = Dir(Chemin & "EC_*.csv") ' Premier fichier | |
Do While Fichier <> "" | |
'Pour des xls | |
'Workbooks.Open Filename:=Chemin & Fichier | |
'Pour des csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
put(){ txt=$(logname); scp "$1" ${txt}@serveradress:/home/path/; }; |
NewerOlder