Skip to content

Instantly share code, notes, and snippets.

View maks's full-sized avatar

Maksim Lin maks

View GitHub Profile
@maks
maks / sbs.diff
Created April 7, 2012 11:41 — forked from vadmium/sbs.diff
SBS for Python-Iview
SBS for Python-Iview
* Overrides all the ABC Iview function, you only get SBS instead
* I hacked the internal interface for the list items in order to get the
front end to display multiple tree branches for the one SBS XML file, but
it should be done in a nicer way.
* Only works with the GTK version; probably breaks the CLI version
* I don’t think I ever finished the “Copy URL” button idea. But it would be
nice to be able to quickly pipe a URL into a video player and stream it
without worrying about downloading it.
@maks
maks / gistBespin.user.js
Created April 19, 2012 03:19 — forked from erikvold/gistBespin.user.js
Using this user script, you can replace any textarea you encounter on gist.github.com with a Bespin editor – making editing much more pleasant.
// ==UserScript==
// @name Bespin For Gist.Github
// @namespace gistBespin
// @include http://www.ngv.vic.gov.au/*
// @include https://www.ngv.vic.gov.au/*
// @datecreated 2010-07-03
// @lastupdated 2010-07-03
// @version 0.1
// @author Erik Vergobbi Vold
// @license MPL 1.1/GPL 2.0/LGPL 2.1
@maks
maks / head.html
Created August 2, 2013 06:50 — forked from juliangruber/head.html
requirebin sketch
<style type='text/css'> html, body { margin: 0; padding: 0; border: 0; } </style>
@maks
maks / gist:ebb9bd84150978e065b6
Last active August 29, 2015 14:14 — forked from msmuenchen/gist:9318327
Keepass file format description
Convention: Byte array notation as it would appear in a hexeditor.
= Layout=
KDBX files, the keepass database files, are layout as follows:
1) Bytes 0-3: Primary identifier, common across all kdbx versions:
private static $sigByte1=[0x03,0xD9,0xA2,0x9A];
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1)
@maks
maks / README.md
Created February 24, 2016 02:31 — forked from rikels/README.md
chromium os plugins

this scripts installs: Flash, PDF, for some Chromium OS builds. (confirmed on Vanilla build 3389 Built on 12th December 2012!) Carputers confirmed that it also works on ArnoldTheBat's Cx86OS-20130423010101 build!

Sadly enough the Hangouts stopped working! i don't know about Netflix, since i can't test it. and since ~4-08-2013 MP3/Mp4 stopped working?

if you want to use this script on ArnoldTheBat's Chromium OS build, keep in mind that he uses the password: "password" instead of "facepunch". (without the quotes ;))

@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 / pre-push
Last active October 22, 2020 10:41 — forked from miquelbeltran/pre-push
Flutter pre-push hook that runs analyze and test
#!/bin/sh
# To use add to `.git/hooks/`
# Should be named `pre-push`
# Make executable with `chmod +x`
# ref: https://gist.github.com/maks/edb25da8706cb04f45ebfdd278d91791
# run Flutter analyze + test
flutter analyze
if [ $? -ne 0 ]; then
echo 'cannot push: Flutter analyze failed'
@maks
maks / submit.md
Created September 6, 2020 07:43 — forked from tanaikech/submit.md
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"
@maks
maks / armasm.dart
Created October 18, 2022 08:59 — forked from pingbird/armasm.dart
Little ARM assembler in dart
// By PixelToast
var src =
"mov r0, #69\n"
"bx lr\n"
"ldmedeq ip!, {a3-sp}\n"
"strbhi r13, [v2, lr, asr #3]!\n"
"ldrls a3, [sb], sp, asr #0x14\n";
main() {
@maks
maks / adaptive_scaffold.dart
Last active November 8, 2022 06:16 — forked from rodydavis/adaptive_scaffold.dart
Flutter Adaptive Scaffold
import 'package:flutter/material.dart';
// Updated to Flutter 3 by @maks
// original from: https://gist.github.com/rodydavis/5c7b3365ba9c4b010cace84ca20c2bcc
const kTabletBreakpoint = 720.0;
const kDesktopBreakpoint = 1200.0;
const kSideMenuWidth = 250.0;
class AdaptiveScaffold extends StatelessWidget {