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
#!/bin/sh | |
BRANCH=$(git symbolic-ref --short HEAD) | |
COMMIT_MSG=$(cat $1) | |
if [[ $BRANCH == CPP-* ]] ; | |
then | |
echo "$BRANCH $COMMIT_MSG" > $1 | |
exit 0 | |
else | |
echo "$COMMIT_MSG" > $1 |
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
#!/bin/bash | |
mem=0 | |
echo '' > '1.lg' | |
i=0 | |
while true; do | |
mem=$(free -m | grep Mem | awk {'print $3'}) | |
if [ $i -eq 50 ]; then | |
date >> '1.lg' | |
echo $mem >> '1.lg' |
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
Section "Monitor" | |
Identifier "VGA-1" | |
Modeline "1920x1080R" 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync | |
Option "PreferredMode" "1920x1080R" | |
Option "RightOf" "eDP-1" | |
Option "DPMS" "true" | |
EndSection | |
Section "Monitor" | |
Identifier "eDP-1" |
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
Section "InputClass" | |
Identifier "SynPS/2 Synaptics TouchPad" | |
MatchProduct "SynPS/2 Synaptics TouchPad" | |
MatchIsTouchpad "on" | |
MatchOS "Linux" | |
MatchDevicePath "/dev/input/event*" | |
#Option "Ignore" "on" | |
EndSection |
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
filetype plugin on | |
syntax on | |
set number | |
set autoindent | |
" bindings for copy paste and cut | |
vmap <C-C> "+y | |
vmap <C-X> "+c | |
vmap <C-V> c<ESC>"+p |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options | |
HISTCONTROL=ignoreboth | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=10000 |
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
# vim /etc/sysconfig/network-scripts/ifcfg-eth0 | |
# For static IP | |
DEVICE=eth0 | |
BOOTPROTO=static | |
IPADDR=192.168.0.2 | |
NETMASK=255.255.255.0 | |
GATEWAY=192.168.0.1 | |
HWADDR=XX:XX:XX:XX:XX:XX | |
# For DHCP |
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
create table source | |
( | |
id int not null primary key identity (1,1), | |
a varchar, | |
b varchar | |
); | |
select * from source | |
create table target |