This file contains 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 this line into .bashrc | |
export PS1="[\u@\h \W]\[$(tput bold)\]\[$(tput setaf 1)\]\\$ \[$(tput sgr0)\]" |
This file contains 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
[Desktop Entry] | |
Version=2.0.2 | |
Name=Sublime Text 2 | |
Exec=sublime | |
Terminal=false | |
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png | |
Type=Application | |
Categories=TextEditor;IDE;Development |
This file contains 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
<frame_geometry name="max" has_title="false" title_scale="medium" parent="normal" rounded_top_left="false" rounded_top_right="false"> | |
<distance name="left_width" value="0" /> | |
<distance name="right_width" value="0" /> | |
<distance name="left_titlebar_edge" value="0"/> | |
<distance name="right_titlebar_edge" value="0"/> | |
<distance name="title_vertical_pad" value="0"/> | |
<border name="title_border" left="0" right="0" top="0" bottom="0"/> | |
<border name="button_border" left="0" right="0" top="0" bottom="0"/> | |
<distance name="bottom_height" value="0" /> | |
</frame_geometry> |
This file contains 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 -i | |
# mkdir /mnt/sysimage | |
# cryptsetup luksOpen /dev/XXXX luks-fedora | |
# mount /dev/mapper/fedora-root /mnt/sysimage | |
# mount /dev/YYYY /mnt/sysimage/boot | |
# mount --bind /dev /mnt/sysimage/dev | |
# mount --bind /proc /mnt/sysimage/proc | |
# mount --bind /sys /mnt/sysimage/sys | |
# chroot /mnt/sysimage | |
# grub2-install --target i386-pc --force /dev/YYYY |
This file contains 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
# chown all files and directories in the current directory | |
find . -exec chown -hv user:group '{}' \; | |
# chmod all files to "rw-------" in the current directory | |
find . -type f -exec chmod 600 '{}' \; | |
# chmod all directories to "rwx------" in the current directory | |
find . -type d -exec chmod 700 '{}' \; |
This file contains 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
$ rpm2cpio ./some_package.rpm | cpio -idmv |
This file contains 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
# issue | |
$ cat /etc/issue | |
# through rpm | |
$ rpm -E %fedora | |
# fedora/redhat/system/os release | |
$ cat /etc/redhat-release | |
$ cat /etc/fedora-release | |
$ cat /etc/system-release |
This file contains 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
# yum install tracker-preferences | |
^D | |
$ mkdir ~/.config/autostart | |
$ cp /etc/xdg/autostart/tracker* ~/.config/autostart | |
$ cd ~/.config/autostart | |
$ sed -i 's/X-GNOME-Autostart-enabled=true/X-GNOME-Autostart-enabled=false/' tracker* |
This file contains 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
REM etc/hosts | |
REM 127.0.0.1 vortex-win.data.microsoft.com | |
REM 127.0.0.1 settings-win.data.microsoft.com | |
wusa /uninstall /kb:3068708 /norestart | |
wusa /uninstall /kb:3022345 /norestart | |
wusa /uninstall /kb:3075249 /norestart | |
wusa /uninstall /kb:3080149 /norestart |
This file contains 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
netsh interface ipv4 show subinterfaces | |
netsh interface ipv4 set subinterface "vpn" mtu=1300 store=persistent |
OlderNewer