Skip to content

Instantly share code, notes, and snippets.

View hendisantika's full-sized avatar
💻
Coding... coding.. coding.... and coding..!

Hendi Santika hendisantika

💻
Coding... coding.. coding.... and coding..!
View GitHub Profile
@hendisantika
hendisantika / kafka-cheat-sheet.md
Created December 10, 2021 03:26 — forked from filipefigcorreia/kafka-cheat-sheet.md
Apache Kafka Cheat Sheet

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Purge a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --delete-config retention.ms

@hendisantika
hendisantika / postgres-brew.md
Created November 25, 2021 01:42 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@hendisantika
hendisantika / recipe: cherry-pick tags
Created August 9, 2021 22:32 — forked from nickfloyd/recipe: cherry-pick tags
To cherry pick from head and commit back into a tag
-from master in working branch
>> git branch [new branch] [tag]
>> git checkout [branch]
-pull commit out and add it to the commit at the top of the tag
>> git cherry-pick [commit] or git cherry-pick [firstcommit]^..[lastcommit] if you have a range
-resolve conflicts
-delete the local tag
>> git git tag -d [tag]
-add a new tag at the head of the old one
>> git tag [tag]
@hendisantika
hendisantika / README.md
Created March 1, 2021 15:56 — forked from denji/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
@hendisantika
hendisantika / sentry-install-ubuntu-20.sh
Created March 1, 2021 11:59 — forked from midweste/sentry-install-ubuntu-20.sh
Install sentry on Ubuntu 20 with Snap
#!/bin/sh
# need to have at least 2.5GB of memory of this install may fail - see docs
# todo 13:52:28 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
SENTRYDB='sentry'
SENTRYUSER='sentry'
SENTRYPW='sentrypw'
# sudo apt-get install -y postgresql postgresql-contrib redis
sudo apt-get install -y postgresql redis
@hendisantika
hendisantika / deployment_guide.md
Created October 28, 2020 23:47 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@hendisantika
hendisantika / Rupiah.as
Created October 21, 2020 09:24 — forked from faisalman/Rupiah.as
Konversi Angka ke format Rupiah & vice versa (C#, PHP, JavaScript, ActionScript 3.0)
package
{
/**
* ActionScript 3.0 Code Snippet
* Convert Number to Rupiah & vice versa
* https://gist.github.com/845309
*
* Copyright 2011-2012, Faisalman
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
@hendisantika
hendisantika / README.md
Created September 6, 2020 03:29 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@hendisantika
hendisantika / laravellocal.md
Created April 17, 2020 12:45 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@hendisantika
hendisantika / .gitlab-ci.yml
Created April 7, 2020 06:27 — forked from daicham/.gitlab-ci.yml
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug