45 liens privés
Pour choisir le commit le plus ancien à garder...
git log --pretty="%h - %s" --before=2.weeks -1
!/bin/bash
git checkout --orphan temp $1
git commit -m "Truncated history"
git rebase --onto temp $1 master
git branch -D temp
The following 2 commands are optional - they keep your git repo in good shape.
git prune --progress # delete all the objects w/o references
git gc --aggressive # aggressively collect garbage; may take a lot of time on large repos
Invocation: cd to your repository, then git-truncate refspec, where refspec is either a commit’s SHA1 hash-id, or a tag.
CREATE PLUGGABLE DATABASE devpdb2 ADMIN USER pdb2dba identified by "oracle"
DEFAULT TABLESPACE USERS
DATAFILE '/u01/app/oracle/oradata/devcdb/devpdb2/users01.dbf'
SIZE 250M AUTOEXTEND ON
FILE_NAME_CONVERT=(
'/u01/app/oracle/oradata/devcdb/pdbseed/',
'/u01/app/oracle/oradata/devcdb/devpdb2/');
define gname=idle
column global_name new_value gname
set heading off
set termout off
col global_name noprint
select upper(sys_context ('userenv', 'con_name') || '@' || sys_context('userenv', 'db_name')) global_name from dual;
set sqlprompt '&gname> '
set heading on
set termout on
Magasin où on peut trouver les pièces détachées pour réparer soi même sa TV, son petit ou grand électroménager, ...
Oracle Linux 5
- Obtain public-yum-el5.repo file:
su -
cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-el5.repo
So the equivalent of "git gc --aggressive" - but done properly - is to
do (overnight) something like
git repack -a -d --depth=250 --window=250
where that depth thing is just about how deep the delta chains can be
(make them longer for old history - it's worth the space overhead), and
the window thing is about how big an object window we want each delta
candidate to scan.
And here, you might well want to add the "-f" flag (which is the "drop all
old deltas", since you now are actually trying to make sure that this one
actually finds good candidates.
Clef privée
openssl genrsa -out ~/domain.com.ssl/domain.com.key 2048
Certificat de demande
openssl req -new -key ~/domain.com.ssl/domain.com.key -out ~/domain.com.ssl/domain.com.csr
Pour vérifier l’inscription DNS pour les contrôleurs de domaine à l’aide de la commande nslookup
Ouvrez une invite de commandes. Pour ouvrir une fenêtre d'invite de commandes, cliquez sur Démarrer, pointez sur Tous les programmes, cliquez sur Accessoires, puis sur Invite de commandes.
À l’invite de commandes, tapez la commande suivante, puis appuyez sur Entrée :
nslookup
À l’invite nslookup (">"), tapez ce qui suit et appuyez sur Entrée :
set q=SRV
Une fois la commande précédente exécutée, tapez la commande suivante, puis appuyez sur Entrée :
_ldap._tcp.dc._msdcs.<AD_DS_domain_name>
Où _ldap._tcp.dc_msdcs.<AD_DS_domain_name> est le nom DNS configuré pour être utilisé avec votre domaine Active Directory et l’un de ses contrôleurs de domaine associé.
VirtualBox 3.2.1 supports multiple guest monitors. The documentation was not clear on how to enable this.
Basic Setup:
Power off your virtual machine if it's on.
From the main VirtualBox window, select your VM and choose Settings.
Choose display.
Below "Video Memory" is Monitor Count. Slide it to 2, and adjust your video memory if VirtualBox complains.
Start your guest and perform the standard "Extend the desktop onto this display" method based on the Guest OS. (Guest Additions need to be installed.)
A second "Oracle VM VirtualBox" window will appear with the second display. You can resize it however you want.
Seamless/Fullscreen
Enter Seamless or Fullscreen. I'll assume your HostKey is the default RightCtrl.
If the screens are on the wrong displays, hit RightCtrl+Home.
From the View Menu, choose Virtual Display 1 and set it to the Host display you want. The other displays will shuffle around to accommodate this. If you have more than 2 virtual displays, repeat with Virtual Display 2 and so on.
Headless
Set the number of monitors with VBoxManage modifyvm "vm name" --monitorcount X
Enable multiple vrdp connections with VBoxManage modifyvm "VM name" --vrdpmulticon on
Use VBoxHeadless to launch as normal.
connect to monitor 1 with rdesktop -d \@1 ip-address-of-host and monitor 2 with rdesktop -d \@2 ip-address-of-host. This is explained in lomaxx's answer. (You might be able to use @ instead of \@, depending on your shell)
You can quickly "hint" the window to a specific size with the following command:
VBoxManage controlvm <uuid>|<name> setvideomodehint <xres> <yres> <bpp>
For example, if you have a guest called "Windows XP Pro", and you wish to set the resolution to 1024x600 at 32 bits per pixel (aka 32 bit) you would use the following command:
VBoxManage controlvm "Windows XP Pro" setvideomodehint 1024 600 32
There are some prerequisites for this however:
This only works if you've launched the Guest OS from a windowed environment on the Host OS (ie. Windows / X Windows / Mac OS Desktop).
Guest Additions must be installed in the Guest OS.
Rendre la machine Guest accessible depuis la machine Hôte :
VBoxManage setextradata {nom guest} "VBoxInternal/Devices/pcnet/0/LUN#0/Config/{nom mapping}/HostPort" {port hôte}
VBoxManage setextradata {nom guest "VBoxInternal/Devices/pcnet/0/LUN#0/Config/{nom mapping}/GuestPort" {port guest}
VBoxManage setextradata {nom guest} "VBoxInternal/Devices/pcnet/0/LUN#0/Config/{nom mapping}/TCP" 0