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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override |
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
swipe: | |
3: | |
left: | |
sendkey: "LEFTALT+RIGHT" # history back | |
right: | |
sendkey: "LEFTALT+LEFT" # history forward | |
down: | |
sendkey: "LEFTMETA+LEFTCTRL+DOWN" # close tab | |
up: | |
sendkey: "LEFTMETA+LEFTCTRL+UP" # close tab |
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 | |
xrandr --output eDP --scale 0.9999x0.9999 | |
xrandr --output HDMI-A-0 --scale 1.25x1.25 | |
# uncomment line bellow if KDE Plasma | |
# kquitapp5 plasmashell && kstart5 plasmashell |
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
#!/usr/bin/env bash | |
if [[ -z $1 || $1 == "0" || $1 == "1" ]]; then | |
mode=$([ -z $1 ] && echo "1" || echo $1) | |
modeMessage=$([ "$mode" == 1 ] && echo "on 🟢" || echo "off ⛔") | |
echo $mode >> /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode | |
if [[ $? == 0 ]]; then | |
echo "Conservation mode $modeMessage" | |
sudo -u asha DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -a "Lenovo S340" "Conservation mode $modeMessage " | |
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
# set app switcher to show only current workspace app | |
gsettings set org.gnome.shell.app-switcher current-workspace-only true | |
# set dock to show only current workspace ap | |
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true |
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
server { | |
listen 80; | |
server_name domainsaya.com www.domainsaya.com; | |
gzip on; | |
client_max_body_size 50M; | |
location / { | |
proxy_pass http://localhost:8002; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; |
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
version: '3' | |
services: | |
app: | |
image: budasuyasa/laravel-prod-demo-app:prod | |
container_name: app | |
restart: unless-stopped | |
tty: true | |
env_file: .env | |
depends_on: | |
- cache |
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
server { | |
listen 80; | |
index index.php index.html; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log; | |
root /var/www/public; | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
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
FROM nginx:alpine | |
COPY public /var/www/public | |
ADD Docker/nginx/default.conf /etc/nginx/conf.d/default.conf | |
WORKDIR /var/www/ |
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
[program:php-fpm] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php-fpm | |
autostart=true | |
autorestart=true | |
numprocs=8 | |
user=www-data | |
stdout_logfile=/var/log/supervisor/php-fpm-stdout.log | |
stderr_logfile=/var/log/supervisor/php-fpm-stderr.log | |
redirect_stderr=true |
NewerOlder