In your SilverStripe project (the original module can be found here):
$ composer require pstaender/silverstripe-serve
Just start now the server with:
import { faker } from '@faker-js/faker/locale/de'; | |
import {readFile} from 'node:fs/promises'; | |
// https://fakerjs.dev/api/ | |
let fields = [ | |
[ | |
/email/i, faker.internet.email, | |
], | |
[ | |
/nachname/i, faker.name.lastName, |
#!/bin/bash | |
wallpaper=`ruby get_wallpaper_url.rb` | |
# https://stackoverflow.com/questions/10374520/gsettings-with-cron#19666729 | |
PID=$(pgrep -fo cinnamon-session) | |
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
gsettings set org.cinnamon.desktop.background picture-uri "file://${wallpaper}" |
#!/bin/bash | |
# For Macs: | |
# brew install tesseract --with-all-languages | |
echo "Hint: Prepare all png images as valid OCR input before starting convert process" | |
if [[ "$1" != "" ]]; then | |
files="$1" | |
else |
In your SilverStripe project (the original module can be found here):
$ composer require pstaender/silverstripe-serve
Just start now the server with:
#! /usr/bin/env python | |
""" | |
scholar.py -c 1 --txt --phrase "Upper Echelons - The Organization as a Reflection of Its Top Managers" | |
""" | |
import os | |
import re | |
import subprocess | |
directory = os.path.dirname(os.path.abspath(__file__)) |
require 'json' | |
require 'httparty' | |
class HetznerDNS | |
include HTTParty | |
base_uri 'https://dns.hetzner.com' | |
def initialize | |
@options = { | |
headers: { |
__BEGIN__ | |
*vimtips.txt* For Vim version 7.3. | |
------------------------------------------------------------------------------ | |
" new items marked [N] , corrected items marked [C] | |
" *best-searching* | |
/joe/e : cursor set to End of match | |
3/joe/e+1 : find 3rd joe cursor set to End of match plus 1 [C] | |
/joe/s-2 : cursor set to Start of match minus 2 | |
/joe/+3 : find joe move cursor 3 lines down | |
/^joe.*fred.*bill/ : find joe AND fred AND Bill (Joe at start of line) |
require 'digest' | |
require 'json' | |
require 'shellwords' | |
def command?(name) | |
`which #{name}` | |
$?.success? | |
end | |
unless command?('sips') |
# alias cd to modern cd with auto ls | |
alias ls='exa -l --git --header' | |
function cd_and_ls { | |
cd $1 && ls | |
} | |
alias cd=cd_and_ls |
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf |