Skip to content

Instantly share code, notes, and snippets.

View ff6347's full-sized avatar
🤖
updating status…

Fabian Morón Zirfas ff6347

🤖
updating status…
View GitHub Profile
@dongyuwei
dongyuwei / node-tail-f.js
Created April 13, 2012 04:31
nodejs stream tail -f to web browser
var express = require('express'), spawn = require('child_process').spawn;
var app = express.createServer();
app.use(app.router);
var tail;
app.get('/tail', function(req, res) {
res.header('Content-Type','text/html;charset=utf-8');
tail = spawn('tail', ['-f', './test.log']);
@dfred23
dfred23 / creating obj files from adobe illustrator for Trapcode Form (FIXED)
Created May 8, 2012 04:50 — forked from ff6347/objfromai.jsx
creating obj files from adobe illustrator for Trapcode Form (FIXED)
main();
function main(){
var list = new Array();
var doc = app.activeDocument;
var str = "";
var coords = new Array();
var ab = doc.artboards[0];
// ab.rulerOrigin = [0 , 0];
@ff6347
ff6347 / rd_MasksToMultipleShapes_doIt.jsx
Created May 16, 2012 19:17
excerpt from rd_MasksToShapes.jsx
// rd_MasksToShapes.jsx
// Copyright (c) 2007 redefinery (Jeffrey R. Almasol). All rights reserved.
// check it: www.redefinery.com
//
// Name: rd_MasksToShapes
// Version: 0.7
//
// Description:
// This script creates a shape layer with paths for each mask on the
// selected layer.
@ttscoff
ttscoff / brettquix.txt
Created May 23, 2012 02:32
Brett's Quix File
@Brett's searches
@Brett's custom searches
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo)
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo)
grep https://www.cueup.com/?q=%s&fq=1 Greplin
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo)
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo)
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything)
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software)
@roxlu
roxlu / testApp.cpp
Created May 24, 2012 07:36
Basic bare bones openGL with openFrameworks (VBO, VAO, SHADER and texture(s))
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofEnableNormalizedTexCoords();
ofDisableArbTex();
ofSetFrameRate(60);
ofBackground(22,33,44);
// Shader + VAO/VBO
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 20, 2025 07:18
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@schmurfy
schmurfy / gist:3199254
Created July 29, 2012 14:33
Install pandoc Mac OS X 10.8
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
@chrismeyersfsu
chrismeyersfsu / gist:3270358
Created August 6, 2012 04:22
Arduino Poor man's oscilloscope
#define ANALOG_IN 0
void setup() {
Serial.begin(9600);
//Serial.begin(115200);
}
void loop() {
int val = analogRead(ANALOG_IN);
Serial.write( 0xff );
@chrismeyersfsu
chrismeyersfsu / oscilloscope.c
Last active January 7, 2024 14:15
Arduino Poor man's oscilloscope processing code
/*
* Oscilloscope
* Gives a visual rendering of analog pin 0 in realtime.
*
* This project is part of Accrochages
* See http://accrochages.drone.ws
*
* (c) 2008 Sofian Audry ([email protected])
*
* This program is free software: you can redistribute it and/or modify
@Adirael
Adirael / fix-wordpress-permissions.sh
Created August 17, 2012 23:16
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory