Skip to content

Instantly share code, notes, and snippets.

View screeny05's full-sized avatar

Sebastian Langer screeny05

View GitHub Profile
@screeny05
screeny05 / lndw-2024.json
Created June 1, 2024 21:14
Lange Nacht der Wissenschaften Berlin 2024
This file has been truncated, but you can view the full file.
[
{
"id": 213,
"title": "Auf zu einer Reise durch das Zuse-Institut Berlin (ZIB)",
"description": "Das ZIB hat viel zu bieten. Hier wird ein breites Spektrum an wissenschaftlichen Aufgaben und Services fächerübergreifend bearbeitet. Kommen Sie mit auf eine virtuelle Tour durch unser Haus und stöbern Sie in ausgewählten Projekten, lassen Sie sich von den Wissenschaftler:innen ihre Arbeit erklären und schauen Sie auch am Supercomputer vorbei. Ein Blick ins Computermuseum zeigt die Entwicklung der Superrechner von den Anfängen Konrad Zuses vor 80 Jahren bis heute.",
"organisation": "Zuse-Institut Berlin (ZIB)",
"formats": ["Sciencetainment"],
"isOnline": true,
"isAccessible": true,
@screeny05
screeny05 / 00-winetricks.sh
Last active January 30, 2024 09:07
Box64 Tricks
#!/bin/bash
# [Starting Winetricks]
export GLIBC_BIN=$PREFIX/glibc/bin
pkg install cabextract unzip p7zip which
wget https://github.com/ptitSeb/box64/raw/main/tests/bash
mv bash $GLIBC_BIN/bash86
chmod +x $GLIBC_BIN/bash86
(function bemLinter(){
const namespaces = ['o', 'c', 'u', 's', 't', 'is', 'has'];
const suffixes = ['xs', 's', 'ms', 'sm', 'md', 'lg', 'l', 'xl', 'print'];
const SEVERITY_ERROR = 'error';
const SEVERITY_WARNING = 'warn';
const SEVERITY_INFO = 'info';
const ERR_TYPE_STRAY_ELEMENT = 'stray-element';
const ERR_TYPE_MISSING_NAMESPACE = 'missing-namespace';
@screeny05
screeny05 / input.scss
Created June 28, 2021 12:13
Generated by SassMeister.com.
@mixin foo() {
content: 'original';
}
@mixin foo() {
content: 'overwritten';
}
.foo {
@include foo();
}
@screeny05
screeny05 / ms-teams-dev.sh
Last active March 23, 2020 13:30
MS Teams activate development mode (macOS)
rm -rf /tmp/msteams
mkdir /tmp/msteams
pushd /tmp/msteams
npx asar extract /Applications/Microsoft\ Teams.app/Contents/Resources/app.asar /tmp/msteams
npx fx /tmp/msteams/env_config.json "{...this, name: 'development', environment: 'Development'}" save .
npx asar pack . ../app.asar
popd
sudo mv /Applications/Microsoft\ Teams.app/Contents/Resources/app.asar /Applications/Microsoft\ Teams.app/Contents/Resources/app_org.asar
sudo mv /tmp/app.asar /Applications/Microsoft\ Teams.app/Contents/Resources/app.asar
@screeny05
screeny05 / index.ts
Last active October 21, 2021 19:16
Native File System Typescript Typings – https://wicg.github.io/native-file-system/
declare global {
enum ChooseFileSystemEntriesType {
'open-file',
'save-file',
'open-directory'
}
interface ChooseFileSystemEntriesOptionsAccepts {
description?: string;
mimeTypes?: string;
@screeny05
screeny05 / el_to_dnsmasq.sh
Created May 10, 2019 21:54
Easylist to Dnsmasq
wget -q -nv https://easylist-downloads.adblockplus.org/easylist.txt -O list
egrep '^\|\|([a-Z\.]+)\^$' list | cut -d '^' -f1 | sed 's#||#address=/# ; s#$#/127.0.0.1#' | sort | uniq > list.dnsmasq
rm list
console.log('err');
@screeny05
screeny05 / ffxml-mv.js
Created August 6, 2018 11:24
Rename webfonts from fontforge according to their ps-name
const xml2js = require('xml2js');
const fs = require('fs');
const path = require('path');
const fontsXmlPath = process.argv[2];
const fontsFolderPath = path.resolve(fontsXmlPath, '..', 'Fonts');
const tryRename = (filename, psName) => {
try {
fs.renameSync(path.resolve(fontsFolderPath, filename), path.resolve(fontsFolderPath, psName + path.extname(filename)));
type Extensible<T> = T & { [P in keyof any]: any[P] };
interface IFoo {
value: string;
}
declare const foo: IFoo;
foo.value;
foo.noError;