Skip to content

Instantly share code, notes, and snippets.

sabonis sabonis

Block or report user

Report or block sabonis

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
sabonis / nodeWithOpenjdk.dockerfile
Created May 28, 2018
dockerfile node with openjdk8
View nodeWithOpenjdk.dockerfile
FROM node:10.2.1
# Install Java.
echo "deb jessie-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y -t jessie-backports openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /app
View bind9
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
View test.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
html {
height: 100%;

Vim Cheat Sheet


By "Word"

  • w forward to beginning of the next word
  • W forward to beginning of the next word (whitespace separates)
  • e forward to end of next word
  • E forward to end of next word (whitespace separates)
  • b back to beginning of the previous word
sabonis / gist:6606764
Last active Dec 23, 2015
How to remove "day" column from DatePickerDialog
View gist:6606764
try {
Field[] datePickerDialogFields = mDateDialog.getClass().getDeclaredFields();
for(Field datePickerDialogField : datePickerDialogFields) {
if(datePickerDialogField.getName().equals("mDatePicker")) {
DatePicker datePicker = (DatePicker) datePickerDialogField.get(mDateDialog);
Field datePickerFields[] = datePickerDialogField.getType().getDeclaredFields();
for (Field datePickerField : datePickerFields) {
if ("mDayPicker".equals(datePickerField.getName()) || "mDaySpinner".equals(datePickerField.getName())) {
sabonis / AndroidManifest.xml
Created Aug 6, 2013
ZXing's AndroidManifest.xml
View AndroidManifest.xml
<?xml version="1.0" encoding="UTF-8"?>
Copyright (C) 2008 ZXing authors
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
You can’t perform that action at this time.