Skip to content

Instantly share code, notes, and snippets.

@chaosbytes
chaosbytes / duplicate-line-regex
Created May 5, 2015 13:36
Regex to find duplicate lines
^(.*)(\r?\n\1)+$
@chaosbytes
chaosbytes / laravel-storage-fix.sh
Created July 20, 2015 19:49
Laravel app/storage not writable by web server fix
cd app
chown -R www-data:www-data storage
cd storage
find . -type d -exec chmod 775 {} \; && find . -type f -exec chmod 664 {} \;
chown root:root .gitignore cache/.gitignore logs/.gitignore meta/.gitignore sessions/.gitignore views/.gitignore
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@chaosbytes
chaosbytes / tizen.sh
Created March 28, 2022 21:15 — forked from laat/tizen.sh
Notes on Tizen commands that might work
sdb connect <ip>:<port> # connect to TV
sdb -s <deviceName> capability # get <installationPath>
# build
tizen cli-config "default.profiles.path=<profile_path>"
tizen build-web -out .buildResult -- <source-dir>
tizen package --type wgt --sign profileName -- <source-dir>/.buildResult # extract <package-file>
mv <package-file> .
rm -rf <source-dir>/.buildResult