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 | |
# [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 |
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
(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'; |
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
@mixin foo() { | |
content: 'original'; | |
} | |
@mixin foo() { | |
content: 'overwritten'; | |
} | |
.foo { | |
@include foo(); | |
} |
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
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 |
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
declare global { | |
enum ChooseFileSystemEntriesType { | |
'open-file', | |
'save-file', | |
'open-directory' | |
} | |
interface ChooseFileSystemEntriesOptionsAccepts { | |
description?: string; | |
mimeTypes?: string; |
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
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 |
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
console.log('err'); |
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
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))); |
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
type Extensible<T> = T & { [P in keyof any]: any[P] }; | |
interface IFoo { | |
value: string; | |
} | |
declare const foo: IFoo; | |
foo.value; | |
foo.noError; |
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
var historyBackWithFallback = function(url){ | |
var originalHref = window.location.href; | |
var timeoutId = setTimeout(function(){ | |
if(window.location.href !== originalHref){ | |
return; | |
} | |
window.location = 'https://google.de'; | |
}, 1500); | |
NewerOlder