Skip to content

Instantly share code, notes, and snippets.

View andhikamaheva's full-sized avatar
👨‍💻
Wired In

Andhika Maheva Wicaksono andhikamaheva

👨‍💻
Wired In
View GitHub Profile
@agrueneberg
agrueneberg / client.html
Last active March 19, 2023 06:48
HMAC-SHA256 example for verifying both the data integrity and the authentication of a request in Node.js and web browsers.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HMAC-SHA256 Example</title>
</head>
<body>
<script src="http://crypto.stanford.edu/sjcl/sjcl.js"></script>
<script>
var sharedSecret, query, signature, hmac, xhr;
@vivekfe
vivekfe / Wordpress Ping Services
Created January 24, 2014 10:37
List of All Popular Wordpress Ping Services
http://rpc.pingomatic.com/
http://services.newsgator.com/ngws/xmlrpcping.aspx
http://rpc.weblogs.com/RPC2
http://rpc.twingly.com
http://rpc.pingomatic.com
http://ping.syndic8.com/xmlrpc.php
http://ping.feedburner.com
http://blogsearch.google.us/ping/RPC2
http://blogsearch.google.tw/ping/RPC2
http://blogsearch.google.sk/ping/RPC2
@jamesrr39
jamesrr39 / Golang program stdin stdout interaction.md
Last active July 12, 2023 18:21
Using stdout and stdin from other programs in Golang

Go program interaction

Example of how to use stdout and stdin from other programs in golang

Requires go

Run

go run parentprocess.go
@lalkmim
lalkmim / codility_solutions.txt
Last active April 25, 2024 21:47
Codility Solutions in JavaScript
Lesson 1 - Iterations
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/
@kookxiang
kookxiang / cnmp.sh
Last active April 28, 2020 15:34
CNMP (Centos 7 + Nginx + MariaDB + PHP7) Install Script
#!env bash
installCNMP(){
if [[ -e /etc/redhat-release ]]; then
RELEASE_RPM=$(rpm -qf /etc/centos-release)
RELEASE=$(rpm -q --qf '%{VERSION}' ${RELEASE_RPM})
if [ ${RELEASE} != "7" ]; then
echo "Not CentOS release 7."
exit 1
fi
else
@andhikamaheva
andhikamaheva / auto_installer.sh
Created October 8, 2016 16:20
Script to Install Nginx, PHP 7, MariaDB Centos 7
#!env bash
doInstallServer(){
if [[ -e /etc/redhat-release ]]; then
RELEASE_RPM=$(rpm -qf /etc/centos-release)
RELEASE=$(rpm -q --qf '%{VERSION}' ${RELEASE_RPM})
if [ ${RELEASE} != "7" ]; then
echo "Bukan CentOS Release 7."
exit 1
fi
else
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 10, 2024 18:39
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@sergibondarenko
sergibondarenko / A list of Node.js crypto lib algorithms
Created July 27, 2017 09:42
A list of Node.js crypto lib algorithms
Script to list all algorithms.
```
var crypto = require('crypto');
var ciphers = crypto.getCiphers();
for(var i = 0; i < ciphers.length; i++) {
console.log(ciphers[i]);
}
```
Result.
```
@etspaceman
etspaceman / create_kinesis_stream.sh
Last active February 16, 2023 14:58
Local Kinesis Setup w/ LocalStack
#!/usr/bin/env bash
export $(cat .env | xargs)
KINESIS_STREAM_SHARDS=${KINESIS_STREAM_SHARDS:-1}
export USE_SSL=true
awslocal kinesis create-stream --shard-count ${KINESIS_STREAM_SHARDS} \
--stream-name ${KINESIS_STREAM_NAME}
@andhikamaheva
andhikamaheva / solution_codility_demo_test.js
Created July 2, 2018 06:12
Codility Demo Test Exercise Solution (JavaScript/NodeJS)
// you can write to stdout for debugging purposes, e.g.
// console.log('this is a debug message');
function solution(A) {
// write your code in JavaScript (Node.js 8.9.4)
let tmp = []
for (let i = 0; i < A.length; i++) {
if (0 <= A[i]) {
tmp[A[i]] = true