Skip to content

Instantly share code, notes, and snippets.

@paul-at
paul-at / es6.rb
Created Oct 24, 2018
Check for Uglifier-incompatible ES6 files
View es6.rb
require 'uglifier'
JS_PATH = ".../app/assets/javascripts/**/*.js";
Dir[JS_PATH].each do |file_name|
puts "\n#{file_name}"
puts Uglifier.compile(File.read(file_name))
end
@paul-at
paul-at / test.c
Created Oct 21, 2016
IoT Quiz Test Case
View test.c
#include <stdio.h>
void main() {
int value=100;
if(value > 100)
{
printf("1");
}
else if(value>100)
{
@paul-at
paul-at / logstash RPM spec
Created Feb 2, 2012 — forked from rtd/logstash.sh
logstash monolithic init script and spec file for CentOS / RedHat
View logstash RPM spec
Name: logstash
Version: 1.1.0
Release: 1%{?dist}
Summary: logstash is a tool for managing events and logs
Group: System/Logging
License: ASL 2.0
URL: http://logstash.net/
Source0: http://semicomplete.com/files/logstash/logstash-%{version}-monolithic.jar
Source1: logstash