Skip to content

Instantly share code, notes, and snippets.

View tchalvak's full-sized avatar
🐙
making another SPA

Coco R tchalvak

🐙
making another SPA
View GitHub Profile
@tchalvak
tchalvak / bluejeans_rpm_via_alien.md
Last active January 19, 2018 16:45 — forked from johnduarte/bluejeans_rpm_via_alien.md
BlueJeans rpm install on Debian

FYI, for those of us not running Debian based systems rather than RedHat, the BlueJeans RPM can be successfully installed via alien

Steps to install BlueJeans on Debian

  • Download BlueJeans RPM
  • Install alien package sudo apt-get install alien
  • Convert BlueJeans RPM to a DEB package sudo alien --to-deb --scripts bluejeans-*.rpm
  • Install resulting DEB sudo dpkg -i bluejeans_*.deb
  • Run BlueJeans with /opt/bluejeans/bluejeans-bin

You may get an error loading the expected udev library

@tchalvak
tchalvak / bling.js
Created December 22, 2017 23:02 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
var myTeam = this.team;
var eSoldiers = [];
var itemUpdateDelay = 0.5;
var itemTimer = 0;
var soldiersCount = 0;
var goldStormCD = 0;
var firstBlast = true;
var initiate = false;
var atkType = 2;
var manaBlastCD = this.now();
@tchalvak
tchalvak / nw.sql
Created July 12, 2013 19:33 — forked from toopay/nw.sql
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
@tchalvak
tchalvak / Bcrypt.php
Created August 17, 2011 16:17
Simple PHP 5.3+ Bcrypt functions
<?php
// ================================================================================================================
// Bcrypt hashing and hash checking wrapper functions for simplified, secure password encryption
// ================================================================================================================
// Create a bcrypt_hash.
function bcrypt_hash($password, $work_factor = 8)
{
@tchalvak
tchalvak / Bcrypt.php
Created August 5, 2011 17:26
Simple PHP 5.3+ Bcrypt class and functions
<?php
/*
By Marco Arment <[email protected]>.
This code is released in the public domain.
THERE IS ABSOLUTELY NO WARRANTY.
Usage example:
// In a registration or password-change form:
#!/bin/sh
cd ~/bin
curl -O http://github.com/technomancy/leiningen/raw/stable/bin/lein
chmod 755 lein
lein self-install
cd /tmp
mkdir garden
cd garden/
cat >project.clj <<EOF