Skip to content

Instantly share code, notes, and snippets.

View melastmohican's full-sized avatar

Mariusz Jurgielewicz melastmohican

  • Bellevue, WA
  • 12:26 (UTC -08:00)
View GitHub Profile
@melastmohican
melastmohican / kotlin-snippets.ipynb
Last active May 23, 2022 04:46
Learning Kotlin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@melastmohican
melastmohican / maven_archetype_list.txt
Created March 6, 2020 04:13
mvn archetype:generate
1: remote -> am.ik.archetype:elm-spring-boot-blank-archetype (Blank multi project for Spring Boot + Elm)
2: remote -> am.ik.archetype:graalvm-blank-archetype (Blank project for GraalVM)
3: remote -> am.ik.archetype:graalvm-springmvc-blank-archetype (Blank project for GraalVM + Spring MVC)
4: remote -> am.ik.archetype:graalvm-springwebflux-blank-archetype (Blank project for GraalVM + Spring MVC)
5: remote -> am.ik.archetype:maven-reactjs-blank-archetype (Blank Project for React.js)
6: remote -> am.ik.archetype:msgpack-rpc-jersey-blank-archetype (Blank Project for Spring Boot + Jersey)
7: remote -> am.ik.archetype:mvc-1.0-blank-archetype (MVC 1.0 Blank Project)
8: remote -> am.ik.archetype:spring-boot-blank-archetype (Blank Project for Spring Boot)
9: remote -> am.ik.archetype:spring-boot-docker-blank-archetype (Docker Blank Project for Spring Boot)
10: remote -> am.ik.archetype:spring-boot-gae-blank-archetype (GAE Blank Project for Spring Boot)
@melastmohican
melastmohican / git_credentials.md
Created March 6, 2020 01:13
Global git username/email configuration.

Open the command line.
Set your username:
git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config --global user.email "[email protected]"

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=io.netty:netty:3.7.0.Final
@melastmohican
melastmohican / java_home.ps1
Created February 1, 2019 23:44
Select Java folder and set JAVA_HOME environment variable
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
$paths = (Get-ChildItem "C:\Program Files\Java" -Directory | Select-Object FullName | ForEach-Object { $_.FullName })
$fileChoices = @()
for ($i=0; $i -lt $paths.Count; $i++) {
$fileChoices += [System.Management.Automation.Host.ChoiceDescription]("$($paths[$i]) &$($i)")
}
$userChoice = $host.UI.PromptForChoice('Select File', 'Choose a file', $fileChoices, 0)
$path = $paths[$userChoice]
Write-Host "$path"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src='https://cdnjs.cloudflare.com/ajax/libs/sjcl/1.0.7/sjcl.js'></script>
</head>
<body>
grep -lr '<<<<<<<' .
grep -lr '<<<<<<<' . | xargs git checkout --theirs
@melastmohican
melastmohican / brew_ffmpeg.sh
Created November 12, 2017 04:45
Install FFMPEG with all libs
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libvorbis --with-libvpx --with-opus --with-x265
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools