gpg --keyserver pgp.mit.edu --recv-keys <keyid>
Selectionner le code
find . -name '*.mp3' -exec mv {} . \;
Selectionner le code
find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;
Selectionner le code
list($a, $b) = array($b, $a);
Selectionner le code
ffmpeg -i video_name -ss debut -t durée -async 1 video_out
Selectionner le code
UPDATE
table
SET active = active XOR 1
WHERE id = $id
Selectionner le code
Lister ensuite l'ensemble des noyaux installés grâce à :
dpkg -l | grep -Ei "linux-headers|linux-image"
Sur Ubuntu 12.10, en décembre 2012, le résultat de cette commande donne :
linux-headers-3.5.0-18 3.5.0-18.29
linux-headers-3.5.0-18-generic 3.5.0-18.29
linux-headers-3.5.0-19 3.5.0-19.30
linux-headers-3.5.0-19-generic 3.5.0-19.30
linux-headers-3.5.0-20 3.5.0-20.31
linux-headers-3.5.0-20-generic 3.5.0-20.31
linux-headers-3.5.0-21 3.5.0-21.32
linux-headers-3.5.0-21-generic 3.5.0-21.32
linux-headers-generic 3.5.0.21.27
linux-headers-generic-pae 3.5.0.21.27
linux-image-3.5.0-17-generic 3.5.0-17.28
linux-image-3.5.0-18-generic 3.5.0-18.29
linux-image-3.5.0-19-generic 3.5.0-19.30
linux-image-3.5.0-20-generic 3.5.0-20.31
linux-image-3.5.0-21-generic 3.5.0-21.32
linux-image-extra-3.5.0-17-generic 3.5.0-17.28
linux-image-extra-3.5.0-18-generic 3.5.0-18.29
linux-image-extra-3.5.0-19-generic 3.5.0-19.30
linux-image-extra-3.5.0-20-generic 3.5.0-20.31
linux-image-extra-3.5.0-21-generic 3.5.0-21.32
linux-image-generic
On pourrait donc dans cet exemple supprimer les noyaux 3.5.0-17, 3.5.0-18 et 3.5.0-19 (toujours garder les deux derniers noyaux 3.5.0-20 et 3.5.0-21 dans cet exemple).
Pour désinstaller un noyau Linux, il suffit de désinstaller les 3 ou 4 paquets correspondants à la version voulue :
linux-headers-<version>_<version>_all.deb
linux-headers-<version>-generic_<version>_<votre_architecture>.deb
linux-image-<version>-generic_<version>_<votre_architecture>.deb
linux-image-extra-<version>-generic_<version>_<votre_architecture>.deb
Par exemple pour désinstaller le noyau 3.5.0-17, la commande complète (à adapter) ressemble à quelque chose comme :
sudo apt-get remove linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic linux-image-3.5.0-17-generic linux-image-extra-3.5.0-17-generic --purge
Répéter l'opération autant de fois qu'il y'a de noyaux à supprimer.
Redémarrer le PC. Le menu GRUB ne proposera plus le ou les noyaux supprimés.
Selectionner le code
git svn show-ignore > .gitignore
Selectionner le code
#!/bin/sh
mkdir log
touch log/.gitkeep
git add log/.gitkeep
echo "log/*" >> .gitignore
git add .gitignore
git ci -m "Added empty log/ folder"
Selectionner le code
exiv2 -k -F rename *.jpg
Selectionner le code
function add_protocol($url,$protocol='http://'){
if (preg_match('#^([ftphs]+://)([^ ]+)#',$url,$results)){return $url;}else{return $protocol.$url;}
}
Selectionner le code
for f in *.wma;do ffmpeg -i "$f" -acodec libmp3lame -q:a 0 -ac 2 -ar 48000 "$(echo $f| head -c -5).mp3";done
Selectionner le code
# exemple
echo https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Articles_insolites | awk -F'/' '{ print $1 "//" $3 }'
# renvoie https://fr.wikipedia.org
Selectionner le code
du -kh --max-depth=1 répertoire/
Selectionner le code
fc-cache -vf
Selectionner le code
screen -d -S shutter -m shutter
Selectionner le code
function logm($message) {
$t = strval(date('Y/m/d_H:i:s')).' - '.$_SERVER["REMOTE_ADDR"].' - '.strval($message)."\n";
file_put_contents($_SERVER['DOCUMENT_ROOT'].'/log.txt',$t,FILE_APPEND);
}
if (!empty($_POST)) logm('POST: '.print_r($_POST, true));
if (!empty($_GET)) logm('GET: '.print_r($_GET, true));
Selectionner le code
make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/private/domain.com.pem
OU
openssl req -x509 -nodes -days 730 -newkey rsa:4096 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.pem
Pour Postfix
openssl req -new -outform PEM -out /etc/postfix/smtpd.cert -newkey rsa:4096 -nodes -keyout /etc/postfix/smtpd.key -keyform PEM -days 730 -x509
Pour Courier
openssl req -out /etc/courier/imapd.pem -newkey rsa:4096 -keyout /etc/courier/imapd.pem -nodes -days 730 -x509
Selectionner le code
httrack --mirror --path /rep/de/destination/ internet.com
Selectionner le code
git log --pretty=format:'%h' -n 1
Selectionner le code
git archive --format zip --output /full/path/to/zipfile.zip master
Selectionner le code
#!/usr/bin/env bash
# Author https://github.com/rsvp // orginal script at https://gist.github.com/rsvp/1171304
set -u
# ^ unbound (i.e. unassigned) variables shall be errors.
set -e
# ^ error checking :: Highly Recommended (caveat: you can't check $? later).
url=${1:-'http://www.google.com'}
timeout=${2:-'3'}
# ^in seconds
flag=${3:-'--status'}
# curl options, e.g. -L to follow redirects
arg4=${4:-''}
arg5=${5:-''}
arg6=${6:-''}
arg7=${7:-''}
curlops="$arg4 $arg5 $arg6 $arg7"
# __________ get the CODE which is numeric:
code=`echo $(curl --write-out %{http_code} --silent -S --connect-timeout $timeout \
--no-keepalive $curlops --output /dev/null $url)`
# though curl is --silent, -S will show its errors.
# __________ get the STATUS (from code) which is human interpretable:
case $code in
000) status="Not responding within $timeout seconds" ;;
100) status="Informational: Continue" ;;
101) status="Informational: Switching Protocols" ;;
200) status="Successful: OK within $timeout seconds" ;;
201) status="Successful: Created" ;;
202) status="Successful: Accepted" ;;
203) status="Successful: Non-Authoritative Information" ;;
204) status="Successful: No Content" ;;
205) status="Successful: Reset Content" ;;
206) status="Successful: Partial Content" ;;
300) status="Redirection: Multiple Choices" ;;
301) status="Redirection: Moved Permanently" ;;
302) status="Redirection: Found residing temporarily under different URI" ;;
303) status="Redirection: See Other" ;;
304) status="Redirection: Not Modified" ;;
305) status="Redirection: Use Proxy" ;;
306) status="Redirection: status not defined" ;;
307) status="Redirection: Temporary Redirect" ;;
400) status="Client Error: Bad Request" ;;
401) status="Client Error: Unauthorized" ;;
402) status="Client Error: Payment Required" ;;
403) status="Client Error: Forbidden" ;;
404) status="Client Error: Not Found" ;;
405) status="Client Error: Method Not Allowed" ;;
406) status="Client Error: Not Acceptable" ;;
407) status="Client Error: Proxy Authentication Required" ;;
408) status="Client Error: Request Timeout within $timeout seconds" ;;
409) status="Client Error: Conflict" ;;
410) status="Client Error: Gone" ;;
411) status="Client Error: Length Required" ;;
412) status="Client Error: Precondition Failed" ;;
413) status="Client Error: Request Entity Too Large" ;;
414) status="Client Error: Request-URI Too Long" ;;
415) status="Client Error: Unsupported Media Type" ;;
416) status="Client Error: Requested Range Not Satisfiable" ;;
417) status="Client Error: Expectation Failed" ;;
500) status="Server Error: Internal Server Error" ;;
501) status="Server Error: Not Implemented" ;;
502) status="Server Error: Bad Gateway" ;;
503) status="Server Error: Service Unavailable" ;;
504) status="Server Error: Gateway Timeout within $timeout seconds" ;;
505) status="Server Error: HTTP Version Not Supported" ;;
*) echo " !! httpstatus: status not defined." && exit 1 ;;
esac
case $flag in
--status) echo "$code $status" ;;
-s) echo "$code $status" ;;
--code) echo "$code" ;;
-c) echo "$code" ;;
*) echo " !! httpstatus: bad flag" && exit 1 ;;
esac
exit 0
Selectionner le code
<?php
/**
* Améliore la sortie print
*
* @author Tatane http://www.tatane.info/index.php/print_rn
* @author http://www.blog.cactuscrew.com/77-print_rn.html
* @param $data (array) tableau ou variable à examiner
* @param $name (string) nom a afficher
* @return false affiche les clef valeur du tableau $data
* @example n_print($array, 'Tableau de valeur');
*/
function n_print($data, $name = '') {
$aBackTrace = debug_backtrace();
echo '<h2>', $name, '</h2>';
echo '<fieldset style="border: 1px solid orange; padding: 5px;color: #333; background-color: #fff;">';
echo '<legend style="border:1px solid orange;padding: 1px;background-color:#eee;color:orange;">', basename($aBackTrace[0]['file']), ' ligne => ', $aBackTrace[0]['line'], '</legend>';
echo '<pre>', htmlentities(print_r($data, 1)), '</pre>';
echo '</fieldset><br />';
}
Selectionner le code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Bespin</string>
<key>uuid</key>
<string>4e454174-47f3-3b37-a135-2d47bf0c2bf8</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#baae9e</string>
<key>background</key>
<string>#28211c</string>
<key>caret</key>
<string>#a7a7a7</string>
<key>lineHighlight</key>
<string>#ffffff08</string>
<key>selection</key>
<string>#ddf0ff33</string>
<key>invisibles</key>
<string>#404040</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>-Common-</string>
<key>scope</key>
<string>dont.match</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>--Console--</string>
<key>scope</key>
<string>dont.match</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>console.error</string>
<key>scope</key>
<string>console.error</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ca0000ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>console.input</string>
<key>scope</key>
<string>console.input</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ea6eaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>console.prompt</string>
<key>scope</key>
<string>console.prompt</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cf6a4cff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>console.warning</string>
<key>scope</key>
<string>console.warning</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cccc33ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>console.debug</string>
<key>scope</key>
<string>console.debug</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffec8bff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>hyperlink</string>
<key>scope</key>
<string>hyperlink</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#548fa0ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>--Misc.--</string>
<key>scope</key>
<string>dont.match</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>Unstaged files</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#420e09ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Staged files</string>
<key>scope</key>
<string>markup.inserted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#253b22ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>markup.changed</string>
<key>scope</key>
<string>markup.changed</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#4a410dff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>markup.underline</string>
<key>scope</key>
<string>markup.underline</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>underline</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>markup.bold</string>
<key>scope</key>
<string>markup.bold</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>markup.italic</string>
<key>scope</key>
<string>markup.italic</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>meta.diff, meta.diff.header</string>
<key>scope</key>
<string>meta.diff, meta.diff.header</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#0e2231ff</string>
<key>fontStyle</key>
<string>italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>meta.separator.diff</string>
<key>scope</key>
<string>meta.separator.diff</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffffffff</string>
<key>background</key>
<string>#3467d1ff</string>
<key>fontStyle</key>
<string>italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>meta.separator</string>
<key>scope</key>
<string>meta.separator</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffffffff</string>
<key>background</key>
<string>#3467d1ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>property</string>
<key>scope</key>
<string>property</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#879ab5ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>-Theme Specific-</string>
<key>scope</key>
<string>dont.match</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>invisibles</string>
<key>scope</key>
<string>invisibles</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ffffff40</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comment</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#666666ff</string>
<key>fontStyle</key>
<string>italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Constant</string>
<key>scope</key>
<string>constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cf6a4cff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Entity</string>
<key>scope</key>
<string>entity</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#937121ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ea6eaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage</string>
<key>scope</key>
<string>storage</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f9ee98ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#54be0dff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Support</string>
<key>scope</key>
<string>support</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9b859dff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#7587a6ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid – Deprecated</string>
<key>scope</key>
<string>invalid.deprecated</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#d2a8a1ff</string>
<key>fontStyle</key>
<string>italic,underline</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid – Illegal</string>
<key>scope</key>
<string>invalid.illegal</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#562d56bf</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ Embedded Source</string>
<key>scope</key>
<string>text source</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#baae9eff</string>
<key>background</key>
<string>#b0b3ba14</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ Embedded Source (Bright)</string>
<key>scope</key>
<string>text.html.ruby source</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#baae9eff</string>
<key>background</key>
<string>#b1b3ba21</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ Entity inherited-class</string>
<key>scope</key>
<string>entity.other.inherited-class</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9b5c2eff</string>
<key>fontStyle</key>
<string>italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ String embedded-source</string>
<key>scope</key>
<string>string source</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#daefa3ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ String constant</string>
<key>scope</key>
<string>string constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ddf2a4ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ String.regexp</string>
<key>scope</key>
<string>string.regexp</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#e9c062ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ String.regexp.«special»</string>
<key>scope</key>
<string>string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cf7d34ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ String variable</string>
<key>scope</key>
<string>string variable</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8a9a95ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ Support.function</string>
<key>scope</key>
<string>support.function</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#dad085ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>♦ Support.constant</string>
<key>scope</key>
<string>support.constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cf6a4cff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>c C/C++ Preprocessor Line</string>
<key>scope</key>
<string>meta.preprocessor.c</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8996a8ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>c C/C++ Preprocessor Directive</string>
<key>scope</key>
<string>meta.preprocessor.c keyword</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#afc4dbff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>✘ Doctype/XML Processing</string>
<key>scope</key>
<string>meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ea6eaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>✘ Meta.tag.«all»</string>
<key>scope</key>
<string>declaration.tag, declaration.tag entity, meta.tag, meta.tag entity</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ac885bff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css tag-name</string>
<key>scope</key>
<string>meta.selector.css entity.name.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cda869ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css:pseudo-class</string>
<key>scope</key>
<string>meta.selector.css entity.other.attribute-name.tag.pseudo-class</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8f9d6aff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css#id</string>
<key>scope</key>
<string>meta.selector.css entity.other.attribute-name.id</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8b98abff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css.class</string>
<key>scope</key>
<string>meta.selector.css entity.other.attribute-name.class</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9b703fff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css property-name:</string>
<key>scope</key>
<string>support.type.property-name.css</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#c5af75ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css property-value;</string>
<key>scope</key>
<string>meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f9ee98ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css @at-rule</string>
<key>scope</key>
<string>meta.preprocessor.at-rule keyword.control.at-rule</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8693a5ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css additional-constants</string>
<key>scope</key>
<string>meta.property-value support.constant.named-color.css, meta.property-value constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ca7840ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css constructor.argument</string>
<key>scope</key>
<string>meta.constructor.argument.css</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#8f9d6aff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>⎇ diff.header</string>
<key>scope</key>
<string>meta.diff, meta.diff.header, meta.separator</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#0e2231ff</string>
<key>fontStyle</key>
<string>italic</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>⎇ diff.deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#420e09ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>⎇ diff.changed</string>
<key>scope</key>
<string>markup.changed</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#4a410dff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>⎇ diff.inserted</string>
<key>scope</key>
<string>markup.inserted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f8ff</string>
<key>background</key>
<string>#253b22ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup: List</string>
<key>scope</key>
<string>markup.list</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f9ee98ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Markup: Heading</string>
<key>scope</key>
<string>markup.heading</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cf6a4cff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>tag name</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#5ea6eaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Annotation Override - searchResultIndication</string>
<key>scope</key>
<string>override.searchResultIndication</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>Annotation Override - xmlTagPairOccurrenceIndication</string>
<key>scope</key>
<string>override.xmlTagPairOccurrenceIndication</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>Annotation Override - htmlTagPairOccurrenceIndication</string>
<key>scope</key>
<string>override.htmlTagPairOccurrenceIndication</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>Annotation Override - rubyBlockPairOccurrenceIndication</string>
<key>scope</key>
<string>override.rubyBlockPairOccurrenceIndication</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>Annotation Override - pydevOccurrenceIndication</string>
<key>scope</key>
<string>override.pydevOccurrenceIndication</string>
<key>settings</key>
<dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>text source</string>
<key>scope</key>
<string>text source</string>
<key>settings</key>
<dict>
</dict>
</dict>
</array>
</dict>
</plist>
Selectionner le code
mkdir -p myProject/{src,doc,tools,db}
Selectionner le code
# On liste les services fail2ban
iptables -L
.....
....
Chain fail2ban-ssh (1 references)
target prot opt source destination
DROP all -- xxx.xx.xxx.xx anywhere
RETURN all -- anywhere anywhere
....
# La règle qui a appliqué le ban "fail2ban-ssh" et la ligne 1
iptables -D fail2ban-ssh 1
Selectionner le code
sudo dmidecode -q
Selectionner le code
# pour afficher le calendrier d'une autre année ajouté l'année sous 4 chiffre ncal -wy 2000
ncal -wy
Selectionner le code
git remote set-url --push origin no_push
Selectionner le code
sudo !!
Selectionner le code