Skip to content

Instantly share code, notes, and snippets.

@Dollyn
Dollyn / wget-jdk-oracle-install-example.txt
Created August 7, 2019 09:42 — forked from sr75/wget-jdk-oracle-install-example.txt
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
@Dollyn
Dollyn / Main.kt
Created August 21, 2017 04:19
Kotlin JavaFx example
package dollyn.sak
import javafx.application.Application
import javafx.event.ActionEvent
import javafx.event.EventHandler
import javafx.stage.Stage
import javafx.scene.Scene
import javafx.scene.control.Button
import javafx.scene.layout.StackPane
@Dollyn
Dollyn / Clock.java
Created August 14, 2014 14:09
Swt non-ui thread example. A clock app.
package test;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
@Dollyn
Dollyn / toutf8.py
Created August 12, 2014 15:31
Convert files to utf-8 encoding
import argparse
import logging
import os
def convert():
parser = argparse.ArgumentParser(description='Convert files in folders charset to utf-8')
parser.add_argument('path', help='folder path')
parser.add_argument('-s', nargs='?', default='GBK', help='source encoding')