Skip to content

Instantly share code, notes, and snippets.

View danechitoaie's full-sized avatar
🏠
Working from home

Daniel Anechitoaie danechitoaie

🏠
Working from home
View GitHub Profile
@danechitoaie
danechitoaie / rollup-typescript.md
Created August 13, 2021 09:27 — forked from aleclarson/rollup-typescript.md
The best Rollup config for TypeScript libraries

Features

🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs bundle
.d.ts bundle + type-checking
🧐 Source maps

Install

@danechitoaie
danechitoaie / EvaluateStock.java
Created March 30, 2021 22:07 — forked from ianwalter/EvaluateStock.java
An example of how to use Mozilla Rhino to execute JavaScript within Java.
package com.iankwalter.rhinostockexample;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
/**
* An example of how to use Mozilla Rhino to execute JavaScript within Java
*
* @author Ian Kennington Walter
777 Brockton Avenue, Abington MA 2351
30 Memorial Drive, Avon MA 2322
250 Hartford Avenue, Bellingham MA 2019
700 Oak Street, Brockton MA 2301
66-4 Parkhurst Rd, Chelmsford MA 1824
591 Memorial Dr, Chicopee MA 1020
55 Brooksby Village Way, Danvers MA 1923
137 Teaticket Hwy, East Falmouth MA 2536
42 Fairhaven Commons Way, Fairhaven MA 2719
374 William S Canning Blvd, Fall River MA 2721
@danechitoaie
danechitoaie / cleanupJenkinsWorkspaces.groovy
Created July 2, 2019 07:21 — forked from EvilBeaver/cleanupJenkinsWorkspaces.groovy
A jenkins script to clean up workspaces on slaves
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
'use strict';
const path = require('path');
const glob = require('glob');
const webpack = require('webpack');
const WebpackExtractTextPlugin = require('extract-text-webpack-plugin');
const WebpackCleanPlugin = require('clean-webpack-plugin');
const WebpackStyleLintPlugin = require('stylelint-webpack-plugin');
const nodeModulesPath = path.resolve(__dirname, 'node_modules');
const cartridgesPath = path.resolve(__dirname, 'cartridges');
@danechitoaie
danechitoaie / openssl_commands.md
Created January 30, 2018 21:25 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@danechitoaie
danechitoaie / gulpfile.js
Created May 19, 2017 09:52 — forked from michalochman/gulpfile.js
gulp.js: babelify + browserify + sourcemaps
/* jshint strict: false */
/* globals require, console */
var gulp = require('gulp');
var exit = require('gulp-exit');
var browserify = require('browserify');
var watchify = require('watchify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
@danechitoaie
danechitoaie / gulpfile.js
Created May 19, 2017 09:52 — forked from michalochman/gulpfile.js
gulp.js: babelify + browserify + sourcemaps
/* jshint strict: false */
/* globals require, console */
var gulp = require('gulp');
var exit = require('gulp-exit');
var browserify = require('browserify');
var watchify = require('watchify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
@danechitoaie
danechitoaie / nginx.conf
Created February 9, 2017 09:29 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@danechitoaie
danechitoaie / IPB4_Centminmod.conf
Created April 2, 2016 18:11
Invision Power Board v4 Nginx configuration file for use with Centminmod.
# IPB4 Working NGINX site conf file
# Tested on IPB 4.1.8.1+ and Centminmod 123.09beta01
# This file is for a FORCED SSL site. Non-SSL requests will be directed to SSL.
# Replace 10.0.0.121 with your IP address or domain name.
# Information gathered from
# Centminmod.com / Information pulled from multiple guides. Thx eva2000!
# Makoto on IPB Forum via https://community.invisionpower.com/topic/384522-how-to-set-up-a-secure-ipboard-installation-with-nginx-and-php-fpm/ version 3.4.8 guide.
# Base building forum thread: https://community.centminmod.com/threads/ipb-v4-1-x-files.4922/
# Anyone else not mentioned who helped modify and create this file: Thanks!