Notes Commandes 20160901
Notes Commandes 20160901
Notes Commandes 20160901
***********************************************************************
**** ****
**** ****
**** ****
**** ****
**** SHELL & LANGAGES PROGRAMMATION ****
**** shell octave gnuplot tex ****
**** ****
**** ****
**** PROGRAMMES ****
**** ****
**** SYSTÈME ****
**** ****
**** DIVERS ****
**** ****
**** ****
**** ****
**** ****
***********************************************************************
***********************************************************************
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
SHELL & PROG
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONVERSIONS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ dos linus
iconv -f latin1 -t utf8 fichier.txt
# _____ images
for nom in *;
do
convert -resize 10\% $nom ../light/$nom ;
done
# ___ SON
for f in *.flac;
do flac -cd "$f" | lame -b 120 - "${f%.*}".120.mp3;
done
for i in *.ogg;
do
ogg123 -d wav -f - "$i" | lame -h - > ./"`echo "$i" | sed -e 's/.ogg$/.mp3/'`";
rm "$i";
done
$ bc
puis
scale=3
mv -n $name ${name%suffixe}suffixe2
mv -n $name prefixe2${name#prefixe}
echo -e "jkhkjsdh\c"
cf routine_chronometre.sh
# _____ SYSTÈME
# ___ config
/root/.bashrc
wget -r http://www.foo.org/
wget -r -l 1 -k http://foo.html
-r récursif
-l n niveau de récursion
-k récursive link
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OCTAVE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FILE=fopen("profil_courbure.res","w");
for i=1:rows(C)
fprintf(FILE,"%f\t%f\n",sC(i)/L,C(i)*L);
endfor;
fclose(FILE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LATEX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ CONVERTIR LES ANCIENNES FIGURES EPS EN PDF ~> UTILISER PDFLATEX
#shell
fic=$1
epstool --copy --bbox $fic --output foo.eps
epstopdf foo.eps -o ${fic%.eps}.pdf
rm foo.eps
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GNUPLOT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ TERMINAL
set term postscript eps enhanced color font "Helvetica,30" lw 1.5
# _____ AJUSTEMENT
f(x)=a+b*x
fit f(x) 'datafile' via a,b
set label GPFUN_f at graph .05,.95
set label sprintf("a = %g", a) at graph .05,.90
set label sprintf("b = %g", b) at graph .05,.85
# _____ AXES
set format y "%g"
set xtics <start>, <increment>, <end>
set mxtics 5
# _____ COMMANDES SUR PLUSIEURS LIGNES
plot ’superposition.dat’ index 4 w l,\
’superposition_1.dat’ index 9 w l,\
8*cos(5*x)**2 w p pt 5 # l’anti-slash indique que la
commande
pause -1 # continue `a la ligne suivante
# _____ POLICE
{/Symbol m}
# _____ COULEURS
This file is generated by Gnuplot 4.2
List of known color names:
white #ffffff = 255 255 255
black #000000 = 0 0 0
gray0 #000000 = 0 0 0
grey0 #000000 = 0 0 0
gray10 #1a1a1a = 26 26 26
grey10 #1a1a1a = 26 26 26
gray20 #333333 = 51 51 51
grey20 #333333 = 51 51 51
gray30 #4d4d4d = 77 77 77
grey30 #4d4d4d = 77 77 77
gray40 #666666 = 102 102 102
grey40 #666666 = 102 102 102
gray50 #7f7f7f = 127 127 127
grey50 #7f7f7f = 127 127 127
gray60 #999999 = 153 153 153
grey60 #999999 = 153 153 153
gray70 #b3b3b3 = 179 179 179
grey70 #b3b3b3 = 179 179 179
gray80 #cccccc = 204 204 204
grey80 #cccccc = 204 204 204
gray90 #e5e5e5 = 229 229 229
grey90 #e5e5e5 = 229 229 229
gray100 #ffffff = 255 255 255
grey100 #ffffff = 255 255 255
gray #bebebe = 190 190 190
grey #bebebe = 190 190 190
light-gray #d3d3d3 = 211 211 211
light-grey #d3d3d3 = 211 211 211
dark-gray #a9a9a9 = 169 169 169
dark-grey #a9a9a9 = 169 169 169
red #ff0000 = 255 0 0
light-red #f03232 = 240 50 50
dark-red #8b0000 = 139 0 0
yellow #ffff00 = 255 255 0
light-yellow #ffffe0 = 255 255 224
dark-yellow #c8c800 = 200 200 0
green #00ff00 = 0 255 0
light-green #90ee90 = 144 238 144
dark-green #006400 = 0 100 0
spring-green #00ff7f = 0 255 127
forest-green #228b22 = 34 139 34
sea-green #2e8b57 = 46 139 87
blue #0000ff = 0 0 255
light-blue #add8e6 = 173 216 230
dark-blue #00008b = 0 0 139
midnight-blue #191970 = 25 25 112
navy #000080 = 0 0 128
medium-blue #0000cd = 0 0 205
royalblue #4169e1 = 65 105 225
skyblue #87ceeb = 135 206 235
cyan #00ffff = 0 255 255
light-cyan #e0ffff = 224 255 255
dark-cyan #008b8b = 0 139 139
magenta #ff00ff = 255 0 255
light-magenta #f055f0 = 240 85 240
dark-magenta #8b008b = 139 0 139
turquoise #40e0d0 = 64 224 208
light-turquoise #afeeee = 175 238 238
dark-turquoise #00ced1 = 0 206 209
pink #ffc0cb = 255 192 203
light-pink #ffb6c1 = 255 182 193
dark-pink #ff1493 = 255 20 147
coral #ff7f50 = 255 127 80
light-coral #f08080 = 240 128 128
orange-red #ff4500 = 255 69 0
salmon #fa8072 = 250 128 114
light-salmon #ffa07a = 255 160 122
dark-salmon #e9967a = 233 150 122
aquamarine #7fffd4 = 127 255 212
khaki #f0e68c = 240 230 140
dark-khaki #bdb76b = 189 183 107
goldenrod #daa520 = 218 165 32
light-goldenrod #eedd82 = 238 221 130
dark-goldenrod #b8860b = 184 134 11
gold #ffd700 = 255 215 0
beige #f5f5dc = 245 245 220
brown #a52a2a = 165 42 42
orange #ffa500 = 255 165 0
dark-orange #ff8c00 = 255 140 0
violet #ee82ee = 238 130 238
dark-violet #9400d3 = 148 0 211
plum #dda0dd = 221 160 221
purple #a020f0 = 160 32 240
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
PROGRAMMES
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
XMGRACE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ faire reconnaître les accents par xmgrace
LANG=fr_FR xmgrace
# _____ ajuster la taille de la fenêtre
alias xm="LANG=fr_FR xmgrace -geometry 1150x900"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IMAGE J
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for (i=1;i<=2;i++){
open("fic/img"+i+".tif");
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GIMP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ RENDRE L'IMAGE TRANSPARENTE
Calque → Transparence → Ajouter un canal Alpha
Sélection → Par couleurs
Édition → Effacer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INKSCAPE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ COULEUR DES FLECHES
(1) transformer contours en chemins Ctl+Alt+C
(2) dégrouper Ctl+Maj+G
(3) Remplissage et
Contour > Fond > Remplissage de l'échantillon
(petite icône carrée en haut à droite)
(4) indiquer code RGV ou autre
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LIGHTNING
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ SUPPRIMER UN AGENDA
~> bidouiller ce fichier: .thunderbird/740cz019.default/prefs.js
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
SYSTÈME
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RACCOURCIS CLAVIER POUR CARTACTÈRES SPÉCIAUX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ctrl + Maj + u + 2192 + Entrée = flèche
RELATIONS
2190 ← Flèches
2191 ↑
2192 →
2193 ↓
2194 ↔
2195 ↕
2022 •
MATHS
00B1 ± plus ou moins
2260 ≠ différent
2248 ≈ approximativement égal
DIVERS
0123 ģ
263A ☺
263B ☻
20aa ₪
2180 ↀ
266A ♪
266B ♫
263C ☼
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTES CONFIGURATION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# _____ thunderbird
trier par date (plus récent en bas)
cliquer sur le plus récent
trier par étoile
# _____ DUAL SCREEN
~/.config/monitor.xml : primary ~> yes
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
MULTIMEDIA
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FRESCOBALDI & OKULAR
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lilypond est dans les dépots de 8.10 (ii)
frescobaldi --smart --line %l --column %c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SON
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jamin equalizer