Skip to content

Instantly share code, notes, and snippets.

View reatlat's full-sized avatar
🖖
Live long and prosper!

Alex Zappa reatlat

🖖
Live long and prosper!
View GitHub Profile
#!/bin/bash
## Fan control for hp620
on=/sys/class/thermal/cooling_device
cur=/cur_state
while (( 1 )) ; do
# set the sleep between each measurement and adjustment
# this options is very important to decrease the use of cpu, a value between 1s and 3s is good.
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
# /etc/systemd/logind.conf
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=suspend
<!-- fancyBox -->
<script type='text/javascript'>
/*<![CDATA[*/
jQuery(document).ready(function() {
jQuery('.fancybox').fancybox();
jQuery('a[href$=".png"], a[href$=".PNG"], a[href$=".jpg"], a[href$=".JPG"], a[href$=".gif"], a[href$=".GIF"]').each(function(){
jQuery(this).addClass('fancybox');
});
});
/*]]>*/
<script>
document.addEventListener(&#39;DOMContentLoaded&#39;, function(event) {
cookieChoices.showCookieConsentBar(&#39;Please note this website uses cookies enabling us to give you the best user experience&#39;,
&#39;Got it&#39;, &#39;Learn more&#39;, &#39;http://www.example.net/p/cookies.html&#39;);
});
</script>
@reatlat
reatlat / fonts.js
Created November 29, 2015 10:37
Loading webfonts with high performance on responsive websites
(function(){
function addFont() {
var style = document.createElement('style');
style.rel = 'stylesheet';
document.head.appendChild(style);
style.textContent = localStorage.sourceSansPro;
}
try {
if (localStorage.sourceSansPro) {
!function(){if(!window.hasCookieConsent){window.hasCookieConsent=!0;var a="update_cookieconsent_options",b="cookieconsent_dismissed";if(!(document.cookie.indexOf(b)>-1||window.navigator&&window.navigator.CookiesOK)){"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var c,d={isArray:function(a){var b=Object.prototype.toString.call(a);return"[object Array]"==b},isObject:function(a){return"[object Object]"==Object.prototype.toString.call(a)},each:function(a,b,c,e){if(d.isObject(a)&&!e)for(var f in a)a.hasOwnProperty(f)&&b.call(c,a[f],f,a);else for(var g=0,h=a.length;h>g;g++)b.call(c,a[g],g,a)},merge:function(a,b){a&&d.each(b,function(b,c){d.isObject(b)&&d.isObject(a[c])?d.merge(a[c],b):a[c]=b})},bind:function(a,b){return function(){return a.apply(b,arguments)}},queryObject:function(a,b){var c,d=0,e=a;for(b=b.split(".");(c=b[d++])&&e.hasOwnProperty(c)&&(e=e[c]);)if(d===b.length)return e;return null},setCookie:function(a,b,c,d,e){c=c||365;var f=new D
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
#Storage drive 1TB /dev/sdb2 ntfs
UUID="1234567890" /media/hdd ntfs defaults,uid=reatlat,gid=users 0 0
@reatlat
reatlat / README.md
Created January 6, 2016 11:40 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);