Skip to content

Instantly share code, notes, and snippets.

@asksven
asksven / BatteryHistoryChart 2.3.4
Created September 28, 2011 18:17
Battery Chart 2.3.4 / 4.01
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@asksven
asksven / NetworkQueryService
Created November 24, 2011 16:05
Network scan
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@asksven
asksven / ExecResult
Created August 18, 2012 12:22
su exec code
/*
* Copyright (C) 2011 asksven
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

Keybase proof

I hereby claim:

  • I am asksven on github.
  • I am asksven (https://keybase.io/asksven) on keybase.
  • I have a public key whose fingerprint is E930 5C88 A41C 5FA8 34A2 4F88 2242 3546 2BC3 DA2B

To claim this, I am signing this object:

@asksven
asksven / BitDescription
Last active August 29, 2015 14:06
Print History Item
885 public static final BitDescription[] HISTORY_STATE_DESCRIPTIONS
886 = new BitDescription[] {
887 new BitDescription(HistoryItem.STATE_BATTERY_PLUGGED_FLAG, "plugged"),
888 new BitDescription(HistoryItem.STATE_SCREEN_ON_FLAG, "screen"),
889 new BitDescription(HistoryItem.STATE_GPS_ON_FLAG, "gps"),
890 new BitDescription(HistoryItem.STATE_PHONE_IN_CALL_FLAG, "phone_in_call"),
891 new BitDescription(HistoryItem.STATE_PHONE_SCANNING_FLAG, "phone_scanning"),
892 new BitDescription(HistoryItem.STATE_WIFI_ON_FLAG, "wifi"),
893 new BitDescription(HistoryItem.STATE_WIFI_RUNNING_FLAG, "wifi_running"),
@asksven
asksven / Install tools
Last active April 11, 2016 22:07
Chocolatey install and setup
#choco install google-chrome-x64
#choco install googlechrome.canary
choco install notepadplusplus
choco install git
#choco install firefox
choco install fiddler4
#choco install visualstudio2013ultimate
#choco install velocity
choco install calibre
#choco install popcorntime
@asksven
asksven / gist:71dc563dbf1a3e2cc147
Created February 1, 2015 18:20
Mount Azure File Storage account
see also http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx
net use z: \\<storage-account-name>.file.core.windows.net\<share-name> /u:<storage-account-name> <storage-account-key>
@asksven
asksven / setup.md
Last active April 2, 2016 21:18
ionic-dev-va

// based on linux mint 17.3

/////////////////////////////////////////

// JAVASCRIPT & NODE DEV

/////////////////////////////////////////

// install nodejs, npm, cordova, ionic

If 2fa is enabled on github switch to ssh instead of https on linux
1. generate an ssh keypair on your linux box
ssh-keygen -t {rsa|dsa}
2. add the public key to github: profile - settings - ssh keys
3. switch from https to ssh
Check your repo remote:
#
# to run
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/asksven/755df33e405910c0440e509e47241b49/raw/0bde7e3ea7e810365ed199280d36bfb0d9704327/BoxStarter%2520Workstation
#
#
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst atom
#cinst google-chrome-x64
cinst googlechrome.canary