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
FROM debian:12.9-slim | |
RUN apt update -y && apt install --no-install-recommends --yes gpg sudo wget curl ca-certificates build-essential git libssl-dev libncurses-dev | |
RUN install -dm 755 /etc/apt/keyrings && \ | |
curl -k https://mise.jdx.dev/gpg-key.pub | gpg --dearmor > /etc/apt/keyrings/mise-archive-keyring.gpg && \ | |
echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg] https://mise.jdx.dev/deb stable main" > /etc/apt/sources.list.d/mise.list | |
ENV MISE_DATA_DIR="/mise" | |
ENV MISE_CONFIG_DIR="/mise" | |
ENV MISE_CACHE_DIR="/mise/cache" |
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
// Prints: (anker) C <- B <- A <- C <- B <- A | |
using System; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
Ring ring = new Ring(); | |
ring.prepend("B"); |
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
#!/usr/bin/osascript | |
# Place this Script in any of this `echo -e ${PATH//:/'\n'}` directories and make sure to `chmox +x notification` | |
# Usage: | |
# notification "Hello World" | |
# or | |
# notification Hello World | |
on run argv | |
set AppleScript's text item delimiters to space |
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 | |
FIFO_FILE=factorio.fifo | |
PID_FILE=factorio.pid | |
if [ ! -p $FIFO_FILE ]; then | |
mkfifo $FIFO_FILE | |
fi | |
echo $$ > $PID_FILE |
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
#use Rack::Static, root: '' | |
feed = lambda { |env| | |
server = [env['SERVER_NAME'], env['SERVER_PORT']].compact.join(':') | |
# file = File.join(Dir.pwd,env['PATH_INFO']) | |
# if File.exist? file | |
# return [200, {'Content-Type'=>'video/quicktime', 'Content-Length'=>File.size(file).to_s}, [File.read(file)]] | |
# end |
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
%% aufruf um exemplarisch über "zahlen.dat" zu laufen | |
runSelectionSortExample() -> | |
StartTime = time(), | |
selectionSortOverFileLines("zahlen.dat"). | |
%% Öffne Datei, und iteriere über die Tuple | |
selectionSortOverFileLines(Filename) | |
Tuples = file:consult(FileName), | |
selectionSortOverTuples(Tuples). |
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
alert('gnarf'); |
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
class Person { | |
private String name; | |
public Person(String name) { | |
this.name = name; | |
} | |
public Person() { | |
this("Keks"); | |
} |
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
input_size = 12 | |
input_bandwith = 100 | |
print "upload ",input_size," TB with ",input_bandwith,"mbit/s \n\n" | |
scale=1 | |
kilo = 1024 | |
mega = 1024 * kilo | |
giga = 1024 * mega | |
tera = 1024 * giga |
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
# gcc -v | |
Using built-in specs. | |
COLLECT_GCC=gcc | |
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper | |
Target: i686-linux-gnu | |
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu | |
Thread model: posix | |
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) |
NewerOlder