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
adb root | |
adb reverse tcp:8081 tcp:8081 | |
adb shell setprop metro.host "localhost" |
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
export const CssTextField = styled(TextField, { | |
shouldForwardProp: (prop) => prop !== "resize", | |
})<{ resize?: boolean }>(({ theme, resize }) => { | |
console.log({ resize }); | |
return { | |
root: { | |
"& label.Mui-focused": { | |
color: theme.palette.primary.light, | |
}, |
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
URL="https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash" | |
PROFILE="$HOME/.profile" | |
echo "Downloading git-completion..." | |
if ! curl "$URL" -Ls -o "$HOME/.git-completion.bash"; then | |
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
fi |
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
<!-- pass scoped slots --> | |
<!-- bind props as a Object for reactively binding props which contains getter and setter --> | |
<template v-for="(_, name) in $scopedSlots" v-slot:[name]="slotData"> | |
<slot :name="name" v-bind="{props: slotData}" /> | |
</template> | |
<!-- pass slots --> | |
<template v-for="(_, name) in $slots" :slot="name"> | |
<slot :name="name"/> | |
</template> | |
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 | |
acme.sh --issue -d domain.ru -d '*.domain.ru' --dns dns_cloudns --staging --debug 2 |
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
{"repository":{"url":"https://packagist.org/packages/YOUR PACKAGE URL"}} |
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 | |
find . ! -name 'thumbnails' -type d -maxdepth 1 -exec rm -rf {} + |
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 | |
# local | |
git branch | grep -v "master" | xargs git branch -D | |
# remote | |
git branch -a --merged remotes/origin/master | grep -v master | grep "remotes/origin/" | cut -d "/" -f 3- | xargs -n 1 git push --delete origin |
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
For anyone having this problem, try this to install it in RAM: | |
/bin/ipkg -d /tmp/root -force-depends install tcpdump | |
It still won't work from command prompt as usual, but you can run it like this if you have libpcap installed in jffs still: |
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
mount --bind /tmp/smbshare /jffs | |
nvram set sys_enable_jffs2=1 | |
ipkg update failed for me, so I did a work-around: | |
mkdir -p /jffs/tmp/ipkg | |
ipkg update | |
ipkg list |
NewerOlder