Skip to content

Instantly share code, notes, and snippets.

Dheeraj Bhaskar dheerajbhaskar

Block or report user

Report or block dheerajbhaskar

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
@akashrajguru
akashrajguru / ubuntu-cli-install-android-sdk.sh
Created Jan 24, 2018 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
View ubuntu-cli-install-android-sdk.sh
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
@peterhellberg
peterhellberg / ffserver.conf
Last active Jul 14, 2019
MJPEG stream from Webcam using FFServer and FFMpeg
View ffserver.conf
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 200
MaxClients 100
MaxBandWidth 500000
CustomLog -
<Feed camera.ffm>
File /tmp/camera.ffm
FileMaxSize 200M
@zhy0
zhy0 / ubuntu-cli-install-android-sdk.sh
Last active Nov 19, 2019
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
View ubuntu-cli-install-android-sdk.sh
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
anonymous
anonymous / Sublime Text 3 Licenses.md
Created May 17, 2016
Sublime Text 3 Licenses
View Sublime Text 3 Licenses.md

from @AlexanderPilipenko

—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@cecilemuller
cecilemuller / letsencrypt_2019.md
Last active Nov 19, 2019
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)
View letsencrypt_2019.md

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@maksii
maksii / linkedin auto-inviter
Last active Nov 10, 2019
Script to automatically add connections from "People You May Know" page
View linkedin auto-inviter
var inviter = {} || inviter;
inviter.userList = [];
inviter.className = 'button-secondary-small';
inviter.refresh = function () {
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(document.body.scrollHeight, 0);
window.scrollTo(0, document.body.scrollHeight);
};
@rauchg
rauchg / README.md
Last active Oct 2, 2019
require-from-twitter
View README.md
@NickClark
NickClark / thoughts.markdown
Last active Sep 11, 2018
Elm vs TypeScript Thoughts
View thoughts.markdown

Elm and TypeScript

  • Elm Task - An Elm specific implementation of Observables (more limited?)
  • TS and Elm - Once it compiles it usually runs (Provided you're following the warnings provided in either the compiler output (better) or editor (best) )
  • Editor and tooling support?
  • TS and Elm - Typed Langs
  • Most suitable for complete apps, not just a JS compiler
  • Enforces Reactive programming - Angular 2 (Observables) provides the same thing, just not forced.
  • Know TS, know JS. Able to contribute back to the community easier.
  • Object assignment kinda weird: { point | x = 42 } Reason? (overall weird sytnax)
@TTTIPS
TTTIPS / Accelerated_Scrolling.ahk
Last active Jun 14, 2018
Taran's Premiere Mods!
View Accelerated_Scrolling.ahk
; Accelerated Scrolling
; V1.3
; By BoffinbraiN
; His .exe was SKETCHY so here is just the bare .ahk code.
; This is by far the most useful script of them all. It works PERFECTLY, 100% of the time, and is useful in ALL applications.
; https://www.youtube.com/watch?v=OobKVPojFmg
; ORIGINAL: https://autohotkey.com/board/topic/48426-accelerated-scrolling-script/
#NoEnv
;#NoTrayIcon
@dheerajbhaskar
dheerajbhaskar / enableHTML5AppCache.java
Created Oct 31, 2015 — forked from jaydeepw/enableHTML5AppCache.java
Enabling HTML5 AppCache in Android Webview programatically.
View enableHTML5AppCache.java
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
// Set cache size to 8 mb by default. should be more than enough
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
// This next one is crazy. It's the DEFAULT location for your app's cache
// But it didn't work for me without this line
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache");
You can’t perform that action at this time.