This file contains hidden or 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/sh | |
podman compose ps -f '{{.Names}}' | cat -n | |
echo -n 'Select container (number) or press ENTER for full logs: ' | |
read selection | |
if [ -n "$selection" ] | |
then | |
podman compose logs -tn 2>&1 | grep --color=never $(podman compose ps -f '{{.Names}}' | head -n $selection | tail -n 1) | less +G | |
else | |
podman compose logs -tn 2>&1 | less +G | |
fi |
This file contains hidden or 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.nio.charset.StandardCharsets; | |
import java.security.MessageDigest; | |
import java.sql.*; | |
public class Main { | |
public static void main(String[] args) throws Exception { | |
final MessageDigest md5 = MessageDigest.getInstance("md5"); | |
final int recordCount = 10_000_000; |
This file contains hidden or 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.io.Closeable; | |
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.Socket; | |
import java.net.UnknownHostException; | |
public class WaitForPort { | |
@SuppressWarnings("BusyWait") | |
public static boolean waitForPort(InetAddress target, int port) { | |
while (true) { |
This file contains hidden or 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 | |
set -e | |
API_TOKEN=$1 | |
VOLUME_NAME=$2 | |
VOLUME_SIZE_GB=$3 |
This file contains hidden or 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 org.example; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import okhttp3.*; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; |
This file contains hidden or 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 org.example; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.UUID; | |
public class Main { | |
final static String UUID_REGEX = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; | |
public static void main(String[] args) { |
This file contains hidden or 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 { useState } from "react"; | |
import { useMediaPlayer } from "../hooks/useMediaPlayer"; | |
export interface YTVideoPlayerProps { | |
videoId: string; | |
privacyMode: boolean; | |
} | |
export function YTVideoPlayer({ videoId, privacyMode }: YTVideoPlayerProps) { | |
const url = `https://www.youtube${privacyMode ? "-nocookie" : ""}.com/embed/${videoId}?autoplay=1&rel=0`; |
This file contains hidden or 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.io.InputStream; | |
import java.util.*; | |
public class CSVParser { | |
/** | |
* Delimiter for columns. | |
* Default: ',' | |
*/ | |
private final char delimiter; |
This file contains hidden or 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
// ==UserScript== | |
// @name Lichess Analysis | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Analyze running games. | |
// @author bitfexl | |
// @match https://lichess.org/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=lichess.org | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
@echo off | |
set /p email= < last_email.txt >nul | |
set /p version= < last_version.txt >nul | |
echo Ignore above errors if any. | |
echo ----------------------------- | |
echo Press enter to use existing values. | |
set /p email=Enter account email (or cracked name) [%email%]: |
NewerOlder