Skip to content

Instantly share code, notes, and snippets.

View setiawanjemy88's full-sized avatar
:octocat:
I may be slow to respond.

JEMY SETIAWAN setiawanjemy88

:octocat:
I may be slow to respond.
View GitHub Profile
bundle exec ruby bot.rb
bot created
(JSON::ParserError)bies/ruby-2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse': 784: unexpected token at '<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.9.1</center>
</body>
</html>
'
@danieltott
danieltott / matrix-collection.twig
Last active August 11, 2021 01:03
Matrix in Matrix Workaround
{% macro outputTiles(tileList) %}
{# use macro to keep it DRY #}
<div class="tiles">
{% for tile in tileList %}
<div class="tile">{{ tile.tileTitle }}</div>
{% endfor %}
</div>
{% endmacro %}
@gpchelkin
gpchelkin / termux-pinger.md
Last active November 18, 2022 10:28
Termux Bash script for checking internet connection by periodically pinging some host and showing notifications with LED and vibration when connection is lost or established

termux-pinger.sh

Termux Bash script for monitoring internet connection by periodically checking (pinging some host) and showing notifications with LED and vibration when connection is lost or established using termux-notification API

Requirements

  • Termux
  • Termux:API add-on
  • Execute the following commands to place script termux-pinger.sh into the home directory with the proper permissions (get the link to the raw termux-pinger.sh below):
curl -o ~/termux-pinger.sh https://gist.githubusercontent.com/gpchelkin/b18916c56ff7c759860725a28a747242/raw/b8aa96bb2c7e1dac84f854980eaeb6cd194dde4f/termux-pinger.sh
chmod +x ~/termux-pinger.sh
@txoof
txoof / Setup.md
Last active May 23, 2024 21:17
Setup Termux on Android

Termux & Macrodroid Setup on Android

Setup termux for ssh, scripts, tasker/macrodroid integration

Install:

Note If secure Google accounts are active on the device, it is not possible to install apps from Fdroid Store

Install The following from the Fdroid Store:

  • Termux
  • Termux:API
  • Termux:Widget
@setiawanjemy88
setiawanjemy88 / MatrixEvaluator.java
Created August 11, 2021 01:02 — forked from niusounds/MatrixEvaluator.java
Matrix to Matrix implementation
import android.animation.TypeEvaluator;
import android.graphics.Matrix;
public class MatrixEvaluator implements TypeEvaluator<Matrix> {
private Matrix evaluated = new Matrix();
private float[] values = new float[9];
private float[] startValues = new float[9];
private float[] endValues = new float[9];
@Override
Script started on 2021-08-21 22:12:23+09:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="93" LINES="17"]
[?2004h~ $ pkg update
[?2004l Testing the available mirrors:
[*] https://packages.termux.org/apt/termux-main: ok
[*] https://deb.kcubeterm.me/termux-main: ok
[*] https://termux.mentality.rip/termux-main: ok
[*] https://grimler.se/termux-packages-24: ok
[*] https://termux.librehat.com/apt/termux-main: ok
Picking mirror: https://grimler.se/termux-packages-24
 0% [Working] 0% [Connected to grimler.se (185.224.83.107)] [Connected to packages.termux.org (147.75.35.2 0% [Waiting for headers] [Waiting for headers] Get:1 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]