Skip to content

Instantly share code, notes, and snippets.

Coder of Salvation / Leon van Kammen coderofsalvation

Block or report user

Report or block coderofsalvation

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View _installing home-assistant server on (rooted) android.md

installing home-assistant server on (rooted) android

$ wget
https://gist.githubusercontent.com/coderofsalvation/be4377a1ab28a18e8f9133ab75a569bf/raw/27b579e31ed0b190318a41fc1d480e3220a568c6/installhass.sh
$ chmod 755 installhass.sh
$ ./installhass.sh
@coderofsalvation
coderofsalvation / _installing ALPINE LINUX on any (old) android device using ssh-droid.md
Last active May 22, 2020
installing ALPINE LINUX on any (old) android device using ssh-droid
View _installing ALPINE LINUX on any (old) android device using ssh-droid.md

installing ALPINE LINUX on any (old) android device using ssh-droid (tested: NEO G4 MINIX)

note: bit of unix-skills (vi e.g.) is needed (a very good investment for your future)

  1. install ssh-droid thru playstore, or download/open its .apk file after googling
  2. open ssh-droid
  3. on another laptop/computer ssh into your android device
  4. type mkdir alpine in your homefolder
  5. download the following shellscript below by typing:
@coderofsalvation
coderofsalvation / gist:bb8a041cad0fe202d897f5f6baa493b2
Created Apr 1, 2020
simple standalone scheduled jobrunner for parse
View gist:bb8a041cad0fe202d897f5f6baa493b2
import cron from 'cron'
import moment from 'moment'
import Parse from 'parse/node'
import rp from 'request-promise'
const CronJob = cron.CronJob
const PARSE_TIMEZONE = 'UTC'
let cronJobs = {}
View gist:83663350824948eb8e17af812cb00b4a
toefile: https://github.com/wuestenarchitekten/scener
touchdesigner version: https://tinyurl.com/TDinno
w0ifi: boompje (pw: je moeder)
@coderofsalvation
coderofsalvation / getFormItems.gs
Last active Feb 13, 2020
serialize google forms response-object with getFormItems()
View getFormItems.gs
function onFormSubmit(e) {
emailResponse( getFormItems(e.response) )
}
/**
* Sends out respondent notification emails.
*
* @param {FormResponse} response FormResponse
*/
function updateTriggers() {
@coderofsalvation
coderofsalvation / wave.md
Last active Jan 8, 2020
wave trigger drip engine (forward statemachine in 1 function) #javascript
View wave.md

Waves & triggers

database-row(s) to save state in database

var wavestate = {'#':123,cta:1,wave:0,delay_next:3,data:{foo:123}}

database-row(s) to save wave-rules / configuration of a wave:

var waverules = [
  {'#':'a', active:1, description:'do foo',     cta:1, wave:0, delay_next:3 },
@coderofsalvation
coderofsalvation / README.md
Last active Oct 27, 2019
easiest autohotkey text-expansion using textfiles for windows
View README.md

Install

  • install autohotkey
  • put this script in a folder with a bunch of textfiles
  • add a shortcut to the .ahk-file to the startup-folder

profit!

@coderofsalvation
coderofsalvation / skeleton.bat
Last active Oct 9, 2019
mshta hta example skeleton jscript windows 10
View skeleton.bat
mshta.exe %cd%/skeleton.hta
@coderofsalvation
coderofsalvation / README.md
Last active Jan 31, 2020
256 bytes mixins-alternative to underscore- & lodash 💪
View README.md

bless()

256 bytes mixin-alternative for ALL js frameworks in the world FOREVER: function bless(💪)

Chainable, eventful, rewindable, typesafe, curryable mixins = bless()
After being blessed Before
@coderofsalvation
coderofsalvation / LICENSE.txt
Last active Jun 29, 2019 — forked from 140bytes/LICENSE.txt
140byt.es -- jsonschema-like (nested) typechecking in few lines of js
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
You can’t perform that action at this time.