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 / 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 / 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 / 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 / invert_darken_page_colors.css
Created March 30, 2016 17:57
Invert a bright website to be a dark one.
/* CSS Document */
html {
-webkit-filter: invert(100%) hue-rotate(270deg) brightness(100%) contrast(100%);
background: #222;
}
@Hexodus
Hexodus / Terminate Linux command with CTRL + C
Created June 22, 2014 13:38
How to terminate a started process? Maybe you accidentally started something that is obviously wrong an may take a long time to process - this hint will save you skin.
Just use:
CTRL + C