Skip to content

Instantly share code, notes, and snippets.

View chrisenytc's full-sized avatar
👨‍💻

Christopher Enytc chrisenytc

👨‍💻
View GitHub Profile
@chrisenytc
chrisenytc / popcorn.desktop
Created May 14, 2014 04:21
Desktop entry for Popcorn Time
[Desktop Entry]
Name=PopCorn Time
GenericName=Streaming Player
Comment=Watching to movies and tv shows using Popcorn Time
Icon=popcorn-time
Exec=/opt/Popcorn-Time/Popcorn-Time %U
TryExec=/opt/Popcorn-Time/Popcorn-Time
Terminal=false
Type=Application
Categories=Player;AudioVideo;
@chrisenytc
chrisenytc / renamer.js
Created May 7, 2014 17:42
Rename files
'use strict';
/*
* Module Dependencies
*/
var fs = require('fs'),
join = require('path').join,
DIR_PATH = 'images',
NAME_MODEL = 'img';
@chrisenytc
chrisenytc / .gitconfig
Last active August 29, 2015 13:56
My Git config
[user]
name = Christopher EnyTC
email = chris.enytc@gmail.com
[color]
ui = true
[alias]
a = add .
c = clone
cm = commit -m
p = push origin master
<!doctype html>
<html ng-app="myApp">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script type="text/javascript">
var myApp = angular.module('myApp', [], function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
@chrisenytc
chrisenytc / index.html
Created December 12, 2013 09:02
Bella Tumblr Theme
<html>
<head>
<meta charset="utf-8">
<title>{Title}{block:PostSummary} - {PostSummary}{/block:PostSummary}</title>
<link rel="icon" href="{Favicon}"/>
{block:Description}<meta name="description" content="{MetaDescription}">{/block:Description}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}"/>
<!-- Appearance option -->
@chrisenytc
chrisenytc / 0_reuse_code.js
Created December 12, 2013 00:52
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
@chrisenytc
chrisenytc / vhosts
Created September 14, 2013 16:13
Script to Create Nginx vHost
#!/bin/bash
echo "What the domain? (e.g: project.dev) :"
read server
echo "What the DocumentRoot? (e.g: /home/chris/DevCenter/Projects/PHP) :"
read path
echo "Creating Configuration server."
@chrisenytc
chrisenytc / vhosts
Created August 23, 2013 00:34
Script to Create Apache vHosts
#!/bin/bash
echo "Informe o nome do server (Ex.: project.dev) :"
read server
echo "Informe o caminho do site (Ex.: /var/www/project-directory) :"
read path
echo "Criando configuração de VHost para o server"