Skip to content

Instantly share code, notes, and snippets.

View crbyxwpzfl's full-sized avatar
🖖
lower decks

f, crbyxwpzfl

🖖
lower decks
View GitHub Profile
@crbyxwpzfl
crbyxwpzfl / bookmark.md
Last active February 21, 2022 11:33
js orientation-lock-ios-safari

js alert vids

javascript:( function(){
	var arr = [], l = document.getElementsByTagName('source');
	for(var i=0; i<l.length; i) { arr.push(l[i].src); }
	alert(arr);
} )();

js alert links

@crbyxwpzfl
crbyxwpzfl / powershell.md
Last active February 21, 2022 11:35
powershell switch windows theme

powershell one liner toggle windows theme.ps1

reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"  /v SystemUsesLightTheme | 
Select-Object -first 3 | 
Select-Object -last 1 | 
%{
   if($_ -match "0x1"){
       New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force;
       New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
 }
@crbyxwpzfl
crbyxwpzfl / init.vim
Last active February 21, 2022 11:36
nvim init with cursor synchronisation across windows
"for cursor syncing to work set MASTERTXT + ALTTXT in sys env var
"COLOR THEME
"source path\to\file
"put theme.vim file in \nvim\share\nvim\runtime\colors
:set termguicolors
:colorscheme github
:set background=light
"SET DIR
@crbyxwpzfl
crbyxwpzfl / virtualbox.md
Last active October 24, 2022 16:22
virtualbox compact-bigsur-vdi android-custom-resolution

COMPACT BIGSUR VDI

  1. run this in terminal of virtual bigSur but change bs (blocksize in bits) and count (anzahl der zu schreibenden blöcke) to specify the amount of free space you want to Release dd if=/dev/zero of=file.of.zeros bs=67108864 count=1250
  2. shutdown the vm
  3. run this in comand promt VBoxManage modifymedium --compact "path\to\bigSur.vdi"
    (4. optional leave files.of.zero to prevent bigsur to reclaim the space)

This comment was very helpful for me.

ADD CUSTOM RESOLUTION (for android 9 only 32bit depth works)

@crbyxwpzfl
crbyxwpzfl / userChrome.css
Last active February 21, 2022 11:32
user chrome for firefox
/*
# Tabs expand when leaved
*/
/*uncomment to expand tabs when leaved
:root {
--Tabs-transition-time: 0.1s;
--Tabs-transition-delay: 0s;
}
@crbyxwpzfl
crbyxwpzfl / ahk.md
Last active February 21, 2022 11:37
auto hot key stuff

AHK WINSET STYLE to hide windows title bar

	!^f::
	#strg+alt+f
	
	WinSet, Style, ^0Cx40000, A
	#replace ^ with - to set permanantly
	#replace 4 with 0 to leave window border
	#A specivies Active Window replace with name shown in title bar to specify a window directly
	
@crbyxwpzfl
crbyxwpzfl / adb.md
Last active February 21, 2022 11:38
android debug bridge

ON WINDOWS

downlad android sdk
runn cmd/powershell in extracted location via shift right click

ON TV

android settings
info
click build 7 times
back to android settings
entwikler optionen

@crbyxwpzfl
crbyxwpzfl / curls.md
Last active February 21, 2022 11:40
pshilips tv api

use pylips to get authentiaction credentials

hue api

ACHTUNG escape json for win and linux is diferent

PLATZHALTER:

LAMPE 4 für dazwischen; 5 für vorn; 6 für hint; 7 für anlage
GRUPPE 0 für lampen&anlage; 3 für lampen
BRIDGE-INTERNAL_IP 192.168.xxx.xx über hue seite/ router/ googel halt

@crbyxwpzfl
crbyxwpzfl / git.py
Last active April 13, 2023 14:42
python script for git
import subprocess
#import privates variable
import sys
import os
sys.path.append(os.path.join(os.getenv('privates')))
import privates
def test():
global branch
@crbyxwpzfl
crbyxwpzfl / windows.md
Last active February 21, 2022 11:54
algemeine windows tips tricks etc

for global use

add path/to/ffmpeg to PATH env variable

ffplay web embeded video

youtube-dl -g url | Tee-Object -Variable Var | ffplay $Var

ffplay smal