Skip to content

Instantly share code, notes, and snippets.

View russianryebread's full-sized avatar

Ryan Hoshor russianryebread

View GitHub Profile
@russianryebread
russianryebread / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@russianryebread
russianryebread / javascript_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@russianryebread
russianryebread / css_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@russianryebread
russianryebread / index.html
Last active May 13, 2019 22:01
Bare-Bones HTML 5 Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<!-- page content -->
</body>
</html>
@russianryebread
russianryebread / InsertDate.gs
Last active August 29, 2015 14:22 — forked from thomxc/InsertDate.gs
Inserts a date at the cursor location in Google Docs
/**
* @OnlyCurrentDoc Limits the script to only accessing the current document.
*/
var now_date = new Date();
// Menu Titles
var title = [
Utilities.formatDate(now_date, "GMT", "MM/dd/yyyy"),
Utilities.formatDate(now_date, "GMT", "yyyy-MM-dd"),
@russianryebread
russianryebread / tutorial.md
Last active August 29, 2015 14:22
Automatic zone replication with BIND9 in Plesk 11.5 + Debian Wheezy + PHP

Automatic zone replication with BIND9 in Plesk 11.5 + Debian Wheezy + PHP

Written by ilijamt - Original article

This tutorial is aimed at showing how to set up zone replication from a master to a slave server, without the help of the user input on Debian Wheezy with Plesk 11.5 and PHP

Nomenclature

master
Main server, that hosts Plesk and BIND9 DNS server in Master mode

@russianryebread
russianryebread / README.md
Last active August 29, 2015 14:25
John Resig's Simple Javascript Templating Function

Template

<script type="text/html" id="item_tmpl">
  <div id="<%=id%>" class="<%=(i % 2 == 1 ? " even" : "")%>">
    <div class="grid_1 alpha right">
      <img class="righted" src="<%=profile_image_url%>"/>
    </div>
    <div class="grid_6 omega contents">
      <p><b><a href="/<%=from_user%>"><%=from_user%></a>:</b> <%=text%></p>
 
@russianryebread
russianryebread / bible_books.json
Created November 4, 2015 15:28
Books of the Bible with the number of chapters in them
{
"OT": {
"Genesis" : 50,
"Exodus" : 40,
"Leviticus" : 27,
"Numbers" : 36,
"Deuteronomy" : 34,
"Joshua" : 24,
"Judges" : 21,
"Ruth" : 4,
@russianryebread
russianryebread / bible_reading.html
Last active November 5, 2015 14:30
Track your Bible Reading
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bible Reading Plan</title>
<style type="text/css">
html {
font-family: "Open Sans";
color: #666;
@russianryebread
russianryebread / default_iptables.sh
Last active July 28, 2016 14:54
Default Basic iptables ruleset.
# Set up the firewall rules / Policies
iptables -P OUTPUT ACCEPT
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
# Block common attacks
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP