pacman -S openssh
systemctl start sshd
systemctl enable sshd.socket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage notes | |
# =========== | |
# | |
# proxy_watermark.png needs to be in the same directory as the script | |
# download from here: http://whoismatt.com/images/2016/7-july/adobe_proxy_logo.png | |
# | |
# on OSX, both pv and ffmpeg will need to be installed via homebrew |
get self
then match
against PoweredDown
, PathBlocked
, etc.
Check if you have available space for something you'd normally never pick up
Compare Item
against blank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example.com | |
//To Use: | |
// URL.setURLStreamHandlerFactory(S3HandlerFactory) | |
// val s3repo: Repository = MavenRepository("s3://bucket/maven/release") | |
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider | |
import software.amazon.awssdk.core.sync.ResponseTransformer | |
import software.amazon.awssdk.regions.Region | |
import software.amazon.awssdk.services.s3.S3Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.{util => ju} | |
import com.github.jknack.handlebars.context.{JavaBeanValueResolver, MapValueResolver, MethodValueResolver} | |
import com.github.jknack.handlebars._ | |
import com.github.jknack.handlebars.helper.EachHelper | |
import com.github.jknack.handlebars.io.ClassPathTemplateLoader | |
import scala.reflect.runtime.{universe => ru} | |
import scala.util.Try | |
import scala.collection.JavaConverters._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo "format: git_cleanup <repo name> [-x/--expunge <directory 1> -l/--keeplatest <directory 2> ...]" | |
exit | |
fi | |
PROJ="$1" | |
shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#disable globbing of the * | |
set -f | |
INPUT=$1 | |
SUBBED=($( | |
sed \ | |
-e "s,multiply,*,g" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ansi-black-fg { color: rgb(0,0,0); } | |
.ansi-red-fg { color: rgb(205,0,0); } | |
.ansi-green-fg { color: rgb(0,205,0); } | |
.ansi-yellow-fg { color: rgb(205,205,0); } | |
.ansi-blue-fg { color: rgb(0,0,238); } | |
.ansi-magenta-fg { color: rgb(205,0,205); } | |
.ansi-cyan-fg { color: rgb(0,205,205); } | |
.ansi-white-fg { color: rgb(229,229,229); } | |
.ansi-bright-black-fg { color: rgb(127,127,127); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ConcurrentLinkedQueue | |
import java.util.concurrent.atomic.AtomicInteger | |
import scala.concurrent.ExecutionContext | |
import scala.util.control.NonFatal | |
import scala.annotation.tailrec | |
//inspired by https://gist.github.com/viktorklang/4552423 | |
object ThrottledExecutionContext { | |
def apply(maxConcurrents: Int)(implicit context: ExecutionContext): ExecutionContext = { |
NewerOlder