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
@andhikamaheva
andhikamaheva / Wordpress Ping Services
Created September 4, 2018 08:33 — forked from vivekfe/Wordpress Ping Services
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
@andhikamaheva
andhikamaheva / solution_codility_cyclicrotation.js
Created July 2, 2018 06:42
Codility CyclicRotation Exercise Solution (JavaScript/NodeJS)
// you can write to stdout for debugging purposes, e.g.
// console.log('this is a debug message');
function solution(A, K) {
// write your code in JavaScript (Node.js 8.9.4)
if (A.length === K || K === 0) {
return A
} else if (A.length === 0) {
return []
@andhikamaheva
andhikamaheva / solution_codility_binarygap.js
Created July 2, 2018 06:23
Codility BinaryGap Exercise Solution (JavaScript/NodeJS)
// you can write to stdout for debugging purposes, e.g.
// console.log('this is a debug message');
function solution(N) {
// write your code in JavaScript (Node.js 8.9.4)
let binary = (N >>> 0).toString(2);
let totalGaps = []
let tmp = 0
for (let i = 0; i < binary.length; i++) {
@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
@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}
@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.
```
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 6, 2024 07:52
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

@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
@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
@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/