Skip to content

Instantly share code, notes, and snippets.

@vaingmuny
vaingmuny / npm-registry-licenses.txt
Created November 15, 2023 17:31 — forked from robertkowalski/npm-registry-licenses.txt
The licenses in the npm-registry from their package.json, from the latest version of each module 23.11.2013
The licenses in the npm-registry from their package.json, from the latest version of each module
23.11.2013
[ { key: 'undefined', value: 27785 },
{ key: 'MIT', value: 20811 },
{ key: 'BSD', value: 5240 },
{ key: 'BSD-2-Clause', value: 621 },
{ key: 'Apache 2.0', value: 263 },
{ key: 'GPL', value: 233 },
@vaingmuny
vaingmuny / RB-precommit.php
Created October 6, 2022 17:34 — forked from mbaker3/RB-precommit.php
SVN pre-commit intergration with Review Board
#!/usr/bin/php
<?php
/**
* Pre-commit Subversion script.
*
* Forces the commit message to have a line like
* review: 42
* and checks that the review has received a Ship It! from
* a peer.
* @author Omni Adams <omni@digitaldarkness.com>
@vaingmuny
vaingmuny / RB-precommit.php
Created October 6, 2022 17:34 — forked from omnicolor/RB-precommit.php
SVN pre-commit intergration with Review Board
#!/usr/local/bin/php
<?php
/**
* Pre-commit Subversion script.
*
* Forces the commit message to have a line like
* review: 42
* and checks that the review has received a Ship It! from
* a peer.
* @author Omni Adams <omni@digitaldarkness.com>
SELECT
FIELD1
FROM TABLE1
WHERE FIELD1 <> REGEXP_REPLACE( FIELD1, E'[\\n\\r]+', ' ', 'g' )
@vaingmuny
vaingmuny / encryption.java
Created March 13, 2018 08:26 — forked from itarato/encryption.java
Java AES CBC encryption example
package com.company;
import javax.crypto.Cipher;
import javax.crypto.Mac;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.MessageDigest;
import java.security.SecureRandom;
public class Main {
@vaingmuny
vaingmuny / rsa_encryption.java
Created March 13, 2018 08:22
how to encrypt & decrypt with RSA in Java
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import javax.crypto.Cipher;
public class Sample {
@vaingmuny
vaingmuny / jquery-bootstrap-datepicker.css
Created June 25, 2017 06:57 — forked from miwahall/jquery-bootstrap-datepicker.css
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
}
@vaingmuny
vaingmuny / index.html
Created May 31, 2017 01:56 — forked from millermedeiros/index.html
Example of how to use a single JS file for multiple pages of an application
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<meta name="description" content="This is just an example">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
</head>
<body data-modules="foobar, lorem/ipsum">