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
/* Dark theme the for Stikked: https://github.com/claudehohl/Stikked - by https://github.com/GabrielWanzek - version 1.0 */ | |
html { | |
background: none; | |
} | |
body { | |
background-color: #161F30; | |
color: #fefefe; | |
font-family: "Lucida Grande", Tahoma, Verdana, sans-serif; |
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
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700); | |
html { | |
background: none; | |
} | |
body { | |
background-color: #161F30; | |
color: #fefefe; | |
font-family: Arial, Tahoma, Verdana, sans-serif; |
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
<!-- This img will be cached. --> | |
<img src="http://example.com/dynamic_image.png"> | |
<!-- This img will not be cached. --> | |
<img src="http://example.com/dynamic_image.png?x=<?php echo time(); ?>"> | |
Thats a small little hack to prevent caching images. |
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
/* | |
w7ddpatcher - enable Windows 7 DirectDraw palette compatibility fix for a given | |
program. | |
Certain games such as Starcraft 1, Warcraft 2 BNE, Age of Empires, Diablo 1, | |
and others suffer from a "rainbow glitch", when some other program modifies | |
global Windows color palette while the game is running, causing some objects to | |
be rendered with wrong colors. Most often this program is Explorer.exe, so | |
killing it before starting the game usually fixes the glitch, but it is | |
annoying to do. |
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
<?php | |
/* cart helper */ | |
function is_item_in_cart($id) { | |
return in_array($id, get_cart_item_ids()); | |
} | |
function get_cart_item_ids() { | |
$CI =& get_instance(); |
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
<?php | |
function get_cm_by_px($px, $dpi = 300, $precision = 2) { | |
$comma = ','; // if US use '.' | |
return number_format(2.54 * $pic->exif->size->height / $dpi , $precision, $comma,'') ; | |
} |
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
<?php | |
/** | |
* super simple gitlab api | |
*/ | |
class Gitlab | |
{ | |
const API_URL = 'http://gitlab.local/'; | |
const PRIVATE_TOKEN = 'XXXXXXXXXXXXXXXXXXX'; | |
public static function get($method, $param = '', $json_encode = true, $show_error = false) { |
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
<?php | |
function GMGetCoordinates($address) { | |
$address = urlencode($address); | |
$url = "http://maps.google.com/maps/api/geocode/json?address=$address&sensor=false"; | |
$ch = curl_init(); | |
$options = array( | |
CURLOPT_SSL_VERIFYPEER => false, |
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 | |
# installs bolt cms to the path and opens the browser. | |
# works currently only on Mac OS X | |
# v0.2 @CodeBrauer | |
cd "$( dirname "${BASH_SOURCE[0]}" )" | |
clear |
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 | |
cd /_backups | |
HOST="1.2.3.4" | |
USER="my_backup_user" | |
PASS="**************" | |
DATE_TODAY=$(date +"%Y-%m-%d") |
OlderNewer