Skip to content

Instantly share code, notes, and snippets.

View maks's full-sized avatar

Maksim Lin maks

  • Manichord
  • Australia
View GitHub Profile
/*
* XCSoar Glide Computer - http://www.xcsoar.org/
* Copyright (C) 2000-2012 The XCSoar Project
* A detailed list of copyright holders can be found in the file "AUTHORS".
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
@maks
maks / snippets.txt
Created July 30, 2017 00:31
jasonette map example
actions:
=========
"fetch" : {
"type" : "$require",
"options" : {
"stops" : "http://10.0.2.2:8080/fake_stops.json"
},
"success" : {
"type" : "$global.set",
{
"$jason": {
"head": {
"title": "Laggy Scrolling",
"description": "",
"icon": "",
"actions": {
"$load": {
"trigger": "fetch_data"
},
@maks
maks / .a_Dev_on_OSX
Last active October 8, 2018 04:09
Linux Users guide to setting up OSX for comfortable Android development
a
@maks
maks / lab-book.md
Last active October 5, 2018 09:05
Dev setup on Crostini

Apps and Tools

App downloads zip's & deb's

  • Visual Studio Code
  • Android SDK - sdk-tools-linux-4333796.zip (not needed it installing Android Studio)
  • Android Studio
  • Flutter SDK

If installing only android sdk without studio:

@maks
maks / schedule.ical
Last active October 28, 2018 21:41
Melbourne Devfest Schedule 2018
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Mks//Schedule 0.3//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALDESC;VALUE=TEXT:iCal
X-WR-CALNAME;VALUE=TEXT:iCal
X-WR-TIMEZONE;VALUE=TEXT:Australia/Melbourne
BEGIN:VEVENT
METHOD:PUBLISH
@maks
maks / tig-cheatsheet.md
Last active March 14, 2019 23:01
Tig Stuff

Tig CheatSheet

  • tig
  • tig status Status
  • tig blame FILE Blame
  • tig master Show a branch
  • tig test..master Show difference between two branches
  • tig FILE Show history of file
  • tig v0.0.3:README Show contents of file in a specific revision
@maks
maks / keybindings.json
Created January 6, 2019 01:30
minimal vscode keybinding customisation to make it bit more like Android Studio
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+alt+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+alt+-",
"command": "-workbench.action.navigateBack"
},
@maks
maks / AndroidManifest.xml
Created April 4, 2019 07:38 — forked from erkattak/AndroidManifest.xml
Android Application Setup for use with Charles Proxy
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
@maks
maks / mkgif.sh
Last active May 3, 2019 01:50
make GIFs out of videos
#!/bin/sh
# args: start-time length video-file
# ref: https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
ffmpeg -ss $1 -t $2 -i $3 -filter_complex "[0:v] palettegen" /tmp/palette.png
ffmpeg -ss $1 -t $2 -i $3 -i /tmp/palette.png -filter_complex "[0:v][1:v] paletteuse" $3.gif