Skip to content

Instantly share code, notes, and snippets.

View IwonGunawan's full-sized avatar
:octocat:
Focusing

Iwon IwonGunawan

:octocat:
Focusing
View GitHub Profile
@dorfo-dev
dorfo-dev / .eslintrc.js
Created April 8, 2021 12:02
Nestjs config eslint and prettier
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
<?php
// 01 - 31
function daily()
{
$tday = "01";
$tmonth = date("m");
$tyear = date("Y");
$date_from = "01";
$date_to = date("d", strtotime('-1 second',strtotime('+1 month',strtotime($tmonth.'/'.$tday.'/'.$tyear.' 00:00:00'))));
@craSH
craSH / Password.java
Last active January 19, 2024 14:26
A simple example Java class to safely generate and verify bcrypt password hashes for use in authentication systems.
/**
* Author: Ian Gallagher <igallagher@securityinnovation.com>
*
* This code utilizes jBCrypt, which you need installed to use.
* jBCrypt: http://www.mindrot.org/projects/jBCrypt/
*/
public class Password {
// Define the BCrypt workload to use when generating password hashes. 10-31 is a valid value.
private static int workload = 12;