Skip to content

Instantly share code, notes, and snippets.

View barlog-m's full-sized avatar
😕
Have seen some bugs...

Barlog M. barlog-m

😕
Have seen some bugs...
View GitHub Profile
@barlog-m
barlog-m / index.html
Last active January 21, 2020 10:10
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Title</title>
<link rel="stylesheet" href="css/main.css" />
<script src="js/main.js"></script>
</head>
<body>
@barlog-m
barlog-m / foo-bar
Created August 27, 2014 09:05
Foo, bar, ...
foo, bar, baz, qux, quux, garply, waldo, fred, plugh, xyzzy, thud
@barlog-m
barlog-m / vagrant-ubuntu-docker
Created October 20, 2014 15:09
Vagrant config to create ubuntu with docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "parallels/ubuntu-14.04"
@barlog-m
barlog-m / .gitignore
Last active August 23, 2018 10:20
.gitignore
# macOS
.DS_Store
# IDEA
.idea/
out/
*.iml
@barlog-m
barlog-m / .hgignore
Created February 15, 2015 22:31
.hgignore
glob:.idea/
glob:*.iml
glob:target/
#osx
glob:.DS_Store
@barlog-m
barlog-m / commit message
Created April 15, 2015 08:53
Random commit message
curl -s http://whatthecommit.com/index.txt
@barlog-m
barlog-m / log message
Last active December 8, 2015 09:28
log messages
¯\_(ツ)_/¯
@barlog-m
barlog-m / ignore-self-signed-ssl-certificates.java
Last active December 8, 2015 09:27
Ignore self-signed SSL certificates
private void trustAllCertificates() {
try {
TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
}
public void checkClientTrusted(X509Certificate[] certs, String authType) {
}
@barlog-m
barlog-m / proxy.java
Last active December 8, 2015 09:27
Enable Proxy for all connections
private void enableProxy() {
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxy", "localhost"); // JavaFX WebView
System.setProperty("http.proxyHost", "localhost");
System.setProperty("http.proxyPort", "8080");
System.setProperty("https.proxySet", "true");
System.setProperty("https.proxy", "localhost"); // JavaFX WebView
System.setProperty("https.proxyHost", "localhost");
System.setProperty("https.proxyPort", "8080");
@barlog-m
barlog-m / project.clj
Last active August 29, 2015 14:26
gorilla-repl
; lein gorilla :port 9000
(defproject gorilla-repl "0.1-SNAPSHOT"
:plugins [[lein-gorilla "0.3.4"]]
:main ^:skip-aot gorilla-repl.core
:profiles {:user {:gorilla-options {:keymap {"command:evaluator:evaluate" "command+enter"}}}})