Skip to content

Instantly share code, notes, and snippets.

View sabonis's full-sized avatar

sabonis sabonis

View GitHub Profile
@sabonis
sabonis / blog00.md
Last active October 13, 2021 09:12
#blog
@sabonis
sabonis / nodeWithOpenjdk.dockerfile
Created May 28, 2018 10:00
dockerfile node with openjdk8
FROM node:10.2.1
# Install Java.
RUN \
echo "deb http://http.debian.net/debian 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
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 http://www.kb.cert.org/vuls/id/800113
// 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
html {
height: 100%;

Vim Cheat Sheet

Movement

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
sabonis / gist:6606764
Last active December 23, 2015 08:19
How to remove "day" column from DatePickerDialog
try {
Field[] datePickerDialogFields = mDateDialog.getClass().getDeclaredFields();
for(Field datePickerDialogField : datePickerDialogFields) {
if(datePickerDialogField.getName().equals("mDatePicker")) {
datePickerDialogField.setAccessible(true);
DatePicker datePicker = (DatePicker) datePickerDialogField.get(mDateDialog);
Field datePickerFields[] = datePickerDialogField.getType().getDeclaredFields();
for (Field datePickerField : datePickerFields) {
if ("mDayPicker".equals(datePickerField.getName()) || "mDaySpinner".equals(datePickerField.getName())) {
datePickerField.setAccessible(true);
@sabonis
sabonis / AndroidManifest.xml
Created August 6, 2013 06:08
ZXing's 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
http://www.apache.org/licenses/LICENSE-2.0