This file contains hidden or 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
SET hwDetect "0" | |
SET gxColorBits "24" | |
SET gxDepthBits "24" | |
SET gxResolution "3440x1440" | |
SET gxMultisampleQuality "0.000000" | |
SET fullAlpha "1" | |
SET lodDist "100.000000" | |
SET SmallCull "0.010000" | |
SET DistCull "500.000000" | |
SET trilinear "1" |
This file contains hidden or 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
############################################### | |
# Trinity Core Auth Server configuration file # | |
############################################### | |
[bnetserver] | |
################################################################################################### | |
# SECTION INDEX | |
# | |
# EXAMPLE CONFIG | |
# AUTH SERVER SETTINGS |
This file contains hidden or 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
################################################ | |
# Trinity Core World Server configuration file # | |
################################################ | |
[worldserver] | |
################################################################################################### | |
# SECTION INDEX | |
# | |
# EXAMPLE CONFIG | |
# CONNECTIONS AND DIRECTORIES |
This file contains hidden or 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 | |
# simple script to check if a port on a host is reachable | |
host=$1 | |
port=$2 | |
if [[ -z "$host" ]] || [[ -z "$port" ]];then | |
echo "Usage: check_port <host> <port>" | |
exit 1 | |
fi |
This file contains hidden or 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 | |
# add multiple values to an array | |
array=(value1 value2 value3 value4) | |
# add a value to a specified index | |
array[2]=value3 | |
# print an array element | |
echo ${array[2]} |
This file contains hidden or 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 | |
# do some operation | |
which make > /dev/null 2> /dev/null | |
# if $? is != 0 an error happened in the last command | |
if [ $? = 0 ]; then | |
echo "last operation was successful" | |
fi |
This file contains hidden or 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
// generate a diff between a branch and the master | |
git diff master..[branch] | |
// generate a diff between last commit and current directory | |
git diff | |
// if theres already staged data you can see a diff of only the cached files | |
git diff --cached | |
// shows the diff between the index and your last commit |
This file contains hidden or 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
# remove an remote name | |
git remote rm [remote name] | |
# now its possible to create the remote name again with | |
remote add [remote-address] |
This file contains hidden or 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
// delete a remote branch on github | |
git push origin :[branchname] |
This file contains hidden or 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
# unpack a tar.gz archive | |
# params: | |
# x = extract files from tar archive | |
# z = decompress the archive with gzip | |
# f = path to the file that should get unpacked | |
tar -xzf archiv.tar.gz |