Skip to content

Instantly share code, notes, and snippets.

View Hexodus's full-sized avatar

Adrian Maleska Hexodus

  • Wiesbaden - Germany
View GitHub Profile
@Hexodus
Hexodus / round_corner.css
Created June 26, 2013 07:08
Rounded corners all edges cross browser
.round_border {
-webkit-border-radius: 5px; /* Webkit */
-moz-border-radius: 5px; /* Firefox */
border-radius: 5px; /* Standard */
}
@Hexodus
Hexodus / box_shadow.css
Created June 26, 2013 07:16
Soft CSS3 box shadow cross browser
/* x-pos, y-pos*, blur, spread, #color */
.box_shadow {
-webkit-box-shadow: 5px 5px 3px 1px #595959;/* WebKit */
-moz-box-shadow: 5px 5px 3px 1px #595959; /* Firefox */
box-shadow: 5px 5px 3px 1px #595959; /* Standard */
}
@Hexodus
Hexodus / inner_shadow.css
Created June 26, 2013 07:20
Inner shadow produces nice soft darkened edges not unlike photoshop inner shadow layer style
/* x-pos, y-pos*, blur, spread, #color */
.box_shadow {
-webkit-box-shadow: inset 0px 0px 10px 0px #222; /* WebKit */
-moz-box-shadow: inset 0px 0px 10px 0px #222; /* Firefox */
box-shadow: inset 0px 0px 10px 0px #222; /* Standard */
}
@Hexodus
Hexodus / count_total_project_code_lines_in_sublime
Created September 8, 2013 17:06
Count total code lines in project using Sublime texteditor
// Go to menue:
// find->find in files
// Switch on reg_ex button
// Find:
^(.*)$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
// Then click on the find button
// Be careful to not click on Replace!!!
@Hexodus
Hexodus / Clone a Git Repo
Created September 17, 2013 13:06
How to Clone a Repo with Git
git clone https://github.com/username/repo.git
@Hexodus
Hexodus / gzip folder on webserver
Created March 4, 2014 15:31
This is how to compress a folder via shell on the webpage running linux.
In two steps:
1) tar -c -f archive_name.tar some_file_or_dir
2) gzip archive_name.tar
Found here:
http://superuser.com/questions/264952/how-to-compress-a-file-in-unix?rq=1
In one step:
tar cvpzf archive_name.tgz some_file_or_dir
@Hexodus
Hexodus / Directory Size via Shell
Created April 11, 2014 17:59
Determine directorys sizes on your webserver via shell
du -h
@Hexodus
Hexodus / Unzip tar.gz
Created May 14, 2014 14:32
How to unzip tar.gz files
tar -zxvf my_file.tar.gz
Found here:
http://www.computing.vt.edu/kb/entry/233
@Hexodus
Hexodus / Linux move files one directory down
Created June 10, 2014 20:16
Move files one directory down in the hierarchy on linux
mv myfolder/.* .
So for example if the data was in /home/myuser/myfolder then from /home/myuser/ run the command.
Found here:
http://unix.stackexchange.com/questions/19344/move-folder-content-up-one-level/19345#19345
@Hexodus
Hexodus / Tar current directory except subdirectory
Created June 22, 2014 13:24
This shows how to tar the current directory except the unwanted subdirectory files.
tar cvpzf backup.tgz --exclude='dir_to_exculde/*' *
tar cvpzf backup.tgz --exclude='dir_to_exculde/*'
--exclude='dir_to_exculde' *
//The last asteric means that the current dir is used. Keep in mind that files with a dot aren't included.
//The secound example excludes also the directory from being included otherwise it would be included as empty one...