- Chroot into your linux instalation
- The easiest way is with
mhwd-chroot
- Install it
yaourt -S mhwd-chroot
- Run it
sudo mhwd-chroot
- DONE, you have chrooted into your linux installation (open a root console of your installed linux OS, is like just open a console with root access)
- Install it
- The easiest way is with
- Restore your GRUB
- Install a new GRUB bootloader with
grub-install /dev/sda
- Install a new GRUB bootloader with
- Recheck to ensure the that installation has completed without any errors
grub-install --recheck /dev/sda
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="fb-container" style="width:100%;"> | |
<div class="fb-page" data-href="https://www.facebook.com/facebook" data-height="160" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div> | |
</div> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- | |
ToDo: HTML, CSS, JS -> concatenate and minify for production | |
- JavaScript: https://jscompress.com/ | |
- CSS: http://www.cleancss.com/css-minify/ | |
- HTML: http://www.willpeavy.com/minifier/ |
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 | |
# Extract subtitles from each MKV file in the given directory | |
path=$PWD | |
echo | |
echo -e "\033[33mWould you like to extract subtitles from each MKV file in the directory?\033[m" | |
echo -e "Folder: ${path}" | |
echo -e "(yes/no)" | |
read -p "" |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Scrolling URL Hash</title> | |
<meta name="description" content="Webpage for xxxx"> | |
<style> | |
body { | |
height: 2000px; | |
} |
Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav
Hello, brethren :-)
As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".
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
/* | |
* http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport/26039199#26039199 | |
*/ | |
function isElementPartiallyInViewport(el) | |
{ | |
//special bonus for those using jQuery | |
if (typeof jQuery !== 'undefined' && el instanceof jQuery) el = el[0]; | |
var rect = el.getBoundingClientRect(); | |
// DOMRect { x: 8, y: 8, width: 100, height: 100, top: 8, right: 108, bottom: 108, left: 8 } |
Just a little experiment. When hovering over the article with your mouse, some keywords from the text should be easy readable while the rest should be darker.
A Pen by Bas Groothedde on CodePen.
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
// redirect single posts to the archive page, scrolled to the current member. | |
// * this is for a post type of "board_member" | |
add_action( 'template_redirect', function() { | |
if ( is_singular('board_member') ) { | |
// I used the two variables to put the member's name as the ID of the article | |
// so the redirect would automatically scroll. This can be removed. | |
$title = get_the_title(); | |
$url_append = str_replace( ' ', '-', strtolower($title) ); | |
global $post; | |
$redirectLink = get_post_type_archive_link( 'board_member' ) . "#" . $url_append; |
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
/** | |
* jQuery iLightBox - Revolutionary Lightbox Plugin | |
* http://www.ilightbox.net/ | |
* | |
* @version: 2.2.3 - June 03, 2017 | |
* | |
* @author: Hemn Chawroka | |
* http://www.iprodev.com/ | |
* | |
*/ |
NewerOlder