Skip to content

Instantly share code, notes, and snippets.

View rayantony's full-sized avatar

ray anthony rayantony

  • Mexico
View GitHub Profile
@rayantony
rayantony / README.md
Created March 18, 2017 08:28
README.md Template

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@rayantony
rayantony / chrub.pod
Last active September 30, 2017 07:44
NewChrubuntu work links and notes
@rayantony
rayantony / README.md
Created February 23, 2017 07:31
simple servers
@rayantony
rayantony / dark-theme.js
Last active November 15, 2018 09:22
dark theme
(function(){
var themeUrl = 'https://gist.githubusercontent.com/rayantony/d7bb45f37db72b43e1dfcf40b5469569/raw/1dc6bebaa578e9aa024d1e0f3b9d000dbc8a30bf/styles.css';
/* https://gist.githubusercontent.com/mauricecruz/f53c932961a04c01a096/raw/26b8d584411764cceec91716973df142955230a7/style.css'; */
function getDevTheme(url){
var identifier = getDomainIdentifier(),
css;
function contains(source, findString){
return source.indexOf(findString) !== -1;
}
function getDomainIdentifier(){
@rayantony
rayantony / README.md
Last active February 22, 2017 22:16
3D hovertable demo
#!/usr/bin/env bash
ROOTDIR=$PWD
echo "Setting up"
mkdir -p $ROOTDIR/shared
sudo mount --bind $ROOTDIR/shared $ROOTDIR/shared
sudo mount --make-unbindable $ROOTDIR/shared
sudo mount --make-shared $ROOTDIR/shared
@rayantony
rayantony / chromebook-nix.sh
Created February 2, 2017 11:46 — forked from puffnfresh/chromebook-nix.sh
Installation script for Nix on ChromeOS
#!/bin/sh
sudo mount -o remount,exec /tmp
if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then
echo "Launching shell with nix-* tools!"
exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh
fi
set -e
@rayantony
rayantony / index.html
Last active September 30, 2017 08:51
rss via jquery
<!DOCTYPE html>
<html> <head>
<title>jquery.rss example</title>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
<script src="http://d39dlwgeopmdw0.cloudfront.net/assets/web/rss/js/jquery.ray.rss.js" crossorigin="anonymous"></script>
<script>window.jQuery(function($) {$("#rss-feeds").rss}) || document.write('<script src="jquery-rss.js"><\/script>')</script>
<script>
jQuery(function($) {
$("#rss-feeds").rss("https://github.com/rayantony.atom", {
@rayantony
rayantony / README.md
Created November 26, 2016 03:16
Disk Mounting Cheatsheet

#Disk Mounting

Disk Mounting cheatsheet

method 1: assign available loop device to image then mount

sudo losetup /dev/loop1
sudo losetup /dev/loop1 /media/KINGSTON/2GBMEXSD.img
sudo mount -t vfat /dev/loop1 /mnt/tmp/
<!DOCTYPE html>
<html>
<head>
<base href="http://dimplejs.org/" />
</head>
<div id="chartContainer">
<script src="/lib/d3.v3.4.8.js"></script>
<script src="http://dimplejs.org/dist/dimple.v2.2.0.min.js"></script>
<script type="text/javascript">
var svg = dimple.newSvg("#chartContainer", 590, 400);