Skip to content

Instantly share code, notes, and snippets.

View alwyn's full-sized avatar
💭
Crunching

Alwyn Schoeman alwyn

💭
Crunching
View GitHub Profile
@pabl0rg
pabl0rg / Generate Squash Classes.groovy
Last active February 15, 2023 12:11
Generate Squash classes from existing DB table
import com.intellij.database.model.DasTable
import com.intellij.database.model.ObjectKind
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper
@Arham4
Arham4 / data.yaml
Last active September 20, 2023 01:26
Easy Jackson YAML Parsing with Kotlin
username: "Test"
password: "123456"
@TYsewyn
TYsewyn / index.html
Created January 27, 2018 15:46
Visualizing your Spring Integration Components & Flows
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Visualizing your Spring Integration Components &amp; Flows</title>
<script type="text/javascript" src="http://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="http://d3js.org/d3-selection-multi.v1.min.js"></script>
<style>
@Khoulaiz
Khoulaiz / gist:41b387883a208d6e914b
Last active May 3, 2024 15:57
Checking ports without telnet

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories { jcenter() }
dependencies { compile 'org.slf4j:slf4j-api:1.7.12' }
publishing {
repositories {
maven {
url "http://127.0.0.1:8081/artifactory/libs-release-local/"
class Net::HTTP::BufferedIO < Net::BufferedIO
@@patch = false
def self.patch= v; @@patch = v; end
def rbuf_fill
return super unless @@patch
begin
@rbuf << @io.read_nonblock(BUFSIZE)
rescue Errno::EWOULDBLOCK, Errno::EAGAIN
retry unless @read_timeout