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 | |
CURRBRIGHT=$(xrandr --current --verbose | grep -m 1 'Brightness:' | cut -f2- -d:) | |
if [ "$1" = "+" ] && [ $(echo "$CURRBRIGHT < 1" | bc) -eq 1 ] | |
then | |
xrandr --output $2 --brightness $(echo "$CURRBRIGHT + 0.1" | bc) | |
elif [ "$1" = "-" ] && [ $(echo "$CURRBRIGHT > 0" | bc) -eq 1 ] | |
then | |
xrandr --output $2 --brightness $(echo "$CURRBRIGHT - 0.1" | bc) | |
fi |
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
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |
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
#AND | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:if cond='data:blog.searchQuery'> | |
<!--search_page AND index_page--> | |
</b:if> | |
</b:if> | |
#OR |
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
<script language='javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
$(document).ready(function() { | |
$.fn.resizeImage = function() { | |
$('.post-body').table_to_div(); | |
var postWidth = $('.post-body').width(); | |
var sAttribut = /\/s\B\d{2,4}/; | |
$('.post-body').find('img').each(function(n, image){ |
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 | |
### BEGIN INIT INFO | |
# Provides: lampp | |
# Required-Start: $local_fs $syslog $remote_fs dbus | |
# Required-Stop: $local_fs $syslog $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start lampp | |
### END INIT INFO | |
/opt/lampp/xampp start |
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
<!-- [ Social Media Meta Tag ] --> | |
<b:if cond='data:blog.pageType == "item"'> | |
<meta expr:content='data:blog.pageName' property='og:title'/> | |
<meta expr:content='data:blog.canonicalUrl' property='og:url'/> | |
<meta content='article' property='og:type'/> | |
</b:if> | |
<meta expr:content='data:blog.title' property='og:site_name'/> | |
<b:if cond='data:blog.url == data:blog.homepageUrl'> | |
<meta expr:content='data:blog.metaDescription' name='description'/> | |
<meta expr:content='data:blog.title' property='og:title'/> |
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 | |
// yo can follow this guide to http://www.benrlodge.com/blog/post/how-to-generate-an-instagram-access-token# | |
#1 first you need to create a Client in Instgram Developer Dashboard | |
// https://www.instagram.com/developer/clients/manage/ | |
#2 after you need to retrive a oAuth code for after get access_token | |
// https://www.instagram.com/developer/authentication/ | |
// change the params with your one and open link in browser |
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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Home extends CI_Controller { | |
public function index() | |
{ | |
$this->db = $this->load->database('default', TRUE); | |
$sql = "select ITM_CD,ITM_NAME,PRICE from dbo.RETAIL_ITEM "; |
OlderNewer