Skip to content

Instantly share code, notes, and snippets.

View garza's full-sized avatar
🤠

John David garza

🤠
View GitHub Profile
/usr/lib/python-exec/python3.6 # ./emerge --info
Portage 2.3.99 (python 3.6.12-final-0, default/linux/x86/17.0, gcc-9.3.0, glibc-2.30-r8, 4.4.26-gentoo i686)
=================================================================
System uname: Linux-4.4.26-gentoo-i686-Intel-R-_Xeon-R-_CPU_E5410_@_2.33GHz-with-gentoo-2.7
KiB Mem: 8306688 total, 3108088 free
KiB Swap: 4192928 total, 4174236 free
Timestamp of repository gentoo: Sun, 07 Feb 2021 00:00:01 +0000
Head commit of repository gentoo: 2d6765e58fc94e13dbc937d0c7dc59e49fe3f49f
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
@garza
garza / gist:7ac1ae11f960b2964416d6ab6003bfb3
Created February 7, 2021 03:13
emerge-system-with-bdeps
/usr/lib/python-exec/python3.6 # ./emerge -UD --verbose-conflicts --with-bdeps y --keep-going @system
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
[ebuild U ] sys-devel/gcc-config-2.3.2-r1 [2.2.1] USE="(cc-wrappers%*) (native-symlinks%*)"
[ebuild U ] sys-devel/binutils-config-5.3.2 [5.2] USE="(native-symlinks%*)"
[ebuild U ] sys-apps/file-5.39-r3 [5.37-r1] USE="bzip2%* seccomp%* -lzma%" PYTHON_TARGETS="python3_8* -python3_9%"
[ebuild U ] virtual/pkgconfig-2 [1]
@garza
garza / setup.md
Created January 12, 2016 23:13 — forked from xrstf/setup.md
Nutch 2.3 + ElasticSearch 1.4 + HBase 0.94 Setup

Info

This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.

Terms

  • Nutch - the crawler (fetches and parses websites)
  • HBase - filesystem storage for Nutch (Hadoop component, basically)
@garza
garza / ibeacon.js
Last active August 29, 2015 14:07 — forked from johnnyman727/ibeacon.js
var tessel = require('tessel');
var blePort = tessel.port['A'];
var bleLib = require('ble-ble113a');
var data = new Buffer('0201061aff4c000215e2c56db5dffb48d2b060d0f5a71096e000000000c6','hex');
var ble = bleLib.use(blePort, function(err) {
if (err) return console.log("Error connecting to slave", err);
ble.setAdvertisingData(data, function (e2){
if (e2) console.log("Error set adv", e2);
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@garza
garza / jquery
Created August 8, 2012 15:10 — forked from rodi01/jquery
Animated Page Scroll with jQuery
$('.goToTop').click(function() {
$("html:not(:animated),body:not(:animated)").animate({ scrollTop: 0}, 500 );
return false;
});