This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import random | |
import time | |
# The target hash to compare against | |
TARGET_HASH = "ee2b34b775d70cd1e23ff42a7ed39731419a443c4f08b062e96015e6e951588d" | |
fake_file= 'confession_fake.txt' | |
forged_file= 'confession_forged.txt' | |
hashDigits=5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script async type="text/javascript" | |
src="https://js.durianpay.id/0.1.39/durianpay.min.js"> | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
let hmac = crypto | |
.createHmac( | |
"sha256", | |
process.env.NODE_ENV === "production" | |
? process.env.LIVE_DPAY_KEY | |
: process.env.STAGING_DPAY_KEY | |
) | |
.update(`${data.id}|${data.amount_str}`) | |
.digest("hex"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
data: { access_token, id }, | |
} = await createDurianPayOrder(); | |
console.log(access_token, id); | |
// @ts-ignore | |
let dpay = await window.Durianpay.init({ | |
locale: "id", | |
environment: "production", // Value should be 'production' for both sandbox and live mode | |
access_key: access_token, | |
// access_key:'dp_test_XXXXXXXXX', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post("/create-order", (req, res) => { | |
// const { order_ref_id, customer_ref_id, email, amount } = req.body; | |
console.log(req.body); | |
const { | |
order_ref_id, | |
customer_ref_id, | |
email, | |
amount, | |
lobbyImage, | |
lineItemText, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CONFIGURATION STARTS HERE */ | |
/* Step 1: enter your domain name like fruitionsite.com */ | |
const MY_DOMAIN = 'surfskate.io'; | |
/* | |
* Step 2: enter your URL slug to page ID mapping | |
* The key on the left is the slug (without the slash) | |
* The value on the right is the Notion page ID | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: For proper working of this Script Good and Uninterepted Internet Connection is Required | |
# Keep all contacts unique | |
# Can save contact with their phone Number | |
# Import required packages | |
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" __ _(_)_ __ ___ _ __ _ | |
" \ \ / / | '_ ` _ \| '__/ __| | |
" \ V /| | | | | | | | | (__ | |
" \_/ |_|_| |_| |_|_| \___| | |
let mapleader = " " | |
call plug#begin('~/.config/nvim/bundle') | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'sheerun/vim-polyglot' | |
Plug 'prettier/vim-prettier', { 'do': 'npm install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from instapy import InstaPy | |
from instapy import smart_run | |
import random | |
import requests | |
import json | |
import schedule | |
import time | |
# get a session! | |
def gen_comment(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* See LICENSE file for copyright and license details. */ | |
/* | |
* appearance | |
* | |
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html | |
*/ | |
static char *font = "mono:pixelsize=16:antialias=true:autohint=true"; | |
static int borderpx = 0; | |
/* |