Skip to content

Instantly share code, notes, and snippets.

View linuxgemini's full-sized avatar

İlteriş Eroğlu linuxgemini

View GitHub Profile
06-17 15:00:38.822 2000 3324 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3324 (bt_hci_thread), pid 2000 (droid.bluetooth)
06-17 15:00:39.464 19019 19019 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-17 15:00:39.465 19019 19019 F DEBUG : LineageOS Version: '17.1-20200608-UNOFFICIAL-angler'
06-17 15:00:39.465 19019 19019 F DEBUG : Build fingerprint: 'google/angler/angler:8.1.0/OPM3.171019.014/4503998:user/release-keys'
06-17 15:00:39.465 19019 19019 F DEBUG : Revision: '0'
06-17 15:00:39.465 19019 19019 F DEBUG : ABI: 'arm64'
06-17 15:00:39.465 19019 19019 F DEBUG : Timestamp: 2020-06-17 15:00:39+0300
06-17 15:00:39.466 19019 19019 F DEBUG : pid: 2000, tid: 3324, name: bt_hci_thread >>> com.android.bluetooth <<<
06-17 15:00:39.466 19019 19019 F DEBUG : uid: 1002
06-17 15:00:39.466 19019 19019 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
#!/usr/bin/env bash
IP4s=`curl -s https://www.cloudflare.com/ips-v4`
IP6s=`curl -s https://www.cloudflare.com/ips-v6`
start="["
main=""
end="]"
while read -r line; do
main="$main\"$line\", "
@linuxgemini
linuxgemini / megalovania.rsc
Created February 11, 2019 18:03
RouterOS script to play megalovania
# megalovania first part
# for mikrotik routerboard
# by linuxgemini
#
# challenge started by ave
# bar 1
/beep frequency=293 length=0.14
/delay delay-time=0.14
/beep frequency=293 length=0.122
@linuxgemini
linuxgemini / blkExtractorAPI.js
Created May 14, 2018 17:31
Export files from the proprietary BLK format.
/*--------------------------------------------------------------
* Copyright (c) linuxgemini. All rights reserved.
* Licensed under the MIT License.
*
* Original ActionScript code written by JrMasterModelBuilder (c) 2011
*-------------------------------------------------------------*/
"use strict";
/*
@linuxgemini
linuxgemini / Mikrotik_DuckDNS-HurricaneElectric_DDNS_updater.rsc
Last active March 12, 2018 19:04
Update your DuckDNS and Tunnelbroker IPs at the same time. Tested on Mikrotik RB750Gr3.
:local WANinterface "wan-interface-name"
:local HEtunnelinterface "6to4-interface-name"
:local DuckDNSDomains "duckdns-domain,or-domains-seperated-with-commas"
:local DuckDNSToken "duckdns-token"
:local HEtunnelid "tunnelbroker-tunnel-id"
:local HEuserid "tunnelbroker-username"
:local HEmd5pass "tunnelbroker-tunnel-update-passkey"
/*--------------------------------------------------------------
* Copyright (c) linuxgemini. All rights reserved.
* Licensed under the Apache License 2.0.
*-------------------------------------------------------------*/
"use strict";
const tebesir = require("chalk");
const an = require("moment");
@linuxgemini
linuxgemini / .eslintrc.json
Last active February 11, 2018 12:01
Example eslint config
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"impliedStrict": true,
@echo off
set /a minval=0
set /a maxval=1
:loop
set /a myrandom=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom2=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom3=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom4=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom5=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom6=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
{
"kr": null,
"any": null,
"us": null,
"eu": {
"heroes": {
"playtime": {
"quickplay": {
"widowmaker": 0.06666666666666667,
"torbjorn": 0,
@linuxgemini
linuxgemini / randomcolor.js
Last active July 17, 2017 23:38
make your color random (discord.js 11.1)
/*
Warning:
The command core is written on the format of CommunityBot.
You can find my rendition here:
https://github.com/mertturunc/Bane/tree/test-dev
*/
exports.commands = {
"randomcolor": {
process: function(bot, message) {