Skip to content

Instantly share code, notes, and snippets.

View daslicht's full-sized avatar

Marc Wensauer daslicht

View GitHub Profile

Keybase proof

I hereby claim:

  • I am daslicht on github.
  • I am ansolas (https://keybase.io/ansolas) on keybase.
  • I have a public key ASAa4ABtKjme9CRIUke5vJki_KTz75vVGXDGWEqON6N1xQo

To claim this, I am signing this object:

@daslicht
daslicht / VideoStream.php
Created July 14, 2021 09:02 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@daslicht
daslicht / ToggleDock.command
Last active May 21, 2021 13:03
Toggle macOS dock behaviour, (increase hidden autohide show delay)
if [[ "$(defaults read com.apple.dock autohide)" -eq "1" ]]; then
# Restore Dock
defaults write com.apple.dock autohide -bool false && killall Dock
defaults delete com.apple.dock autohide-delay && killall Dock
defaults write com.apple.dock no-bouncing -bool FALSE && killall Dock
exit
fi
# Hide Dock
defaults write com.apple.dock autohide -bool true && killall Dock
defaults write com.apple.dock autohide-delay -float 1000 && killall Dock
$(document).ready(function ($) {
var client = new WebTorrent();
var timer = null;
window.client = client;
$('.message').removeClass('show');
function addVideo(uri) {
client.add(uri, function (torrent) {
var file = torrent.files.find(function (file) {
@daslicht
daslicht / aml
Last active April 9, 2020 17:05
SSDT-PLUG forr Asus Gryphon z87
/*
* XCPM power management compatibility table.
*
* Please note that this table is only a sample and may need to be
* adapted to fit your board's ACPI stack. For instance, both scope
* and device name may vary (e.g. _SB_.PR00 instead of _PR_.CPU0).
*
* While the table contains several examples of CPU paths, you should
* remove all the ones irrelevant for your board.
*/
source ~/.bash_profile
echo $PATH
for file in "$@"
do
cd "$(dirname "$file")"
spleeter separate -i "$file" -p spleeter:2stems -o output
done
<?php
$api = "https://api.steemit.com";
function GetData( $api, $pdata )
{
$ch = curl_init($api); // steemit api
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $pdata); //post data
@daslicht
daslicht / gist:ce55553917251bd6891aa46a2176d276
Created December 7, 2018 18:24
Eiosis Air EQ is unreliable
Process: Maschine 2 [2772]
Path: /Applications/Native Instruments/*/Maschine 2.app/Contents/MacOS/Maschine 2
Identifier: com.native-instruments.Maschine 2
Version: 2.7.10 [R605] (2.7.10 [R605], Copyright © 2018 Native Instruments GmbH)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Maschine 2 [2772]
User ID: 501
Date/Time: 2018-12-07 19:23:22.123 +0100
Process: Maschine 2 [5177]
Path: /Applications/Native Instruments/*/Maschine 2.app/Contents/MacOS/Maschine 2
Identifier: com.native-instruments.Maschine 2
Version: 2.7.10 [R605] (2.7.10 [R605], Copyright © 2018 Native Instruments GmbH)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Maschine 2 [5177]
User ID: 501
Date/Time: 2018-12-05 19:20:11.128 +0100
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/Users/daslicht/.node_modules/bin/npm',
1 verbose cli 'install' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree