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
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */ | |
#tabbar { border: 0; overflow-y: scroll !important; scrollbar-width: auto; } | |
/* Hide .twisty and adjust margins so favicons have 7px on left. */ | |
tab-item .twisty { | |
visibility: hidden; | |
margin-left: -8px; | |
} | |
/* Push tab labels slightly to the right so they're completely hidden in collapsed state. */ |
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
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { | |
opacity: 0; | |
pointer-events: none; | |
} | |
#main-window:not([tabsintitlebar="true"]) #TabsToolbar { | |
visibility: collapse !important; | |
} | |
:root { --thin-tab-width: 36px; } | |
:root { --wide-tab-width: 16vw; } |
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.9' | |
services: | |
ephemeral-db: | |
container_name: ephemeral-postgres | |
image: postgres:14-alpine | |
restart: always | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: app |
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
package main | |
import ( | |
"fmt" | |
"gorm.io/driver/postgres" | |
"gorm.io/gorm" | |
"log" | |
"time" | |
) |
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
extension ListRotate on List { | |
List rotateBy(int n) { | |
int i = n % length; | |
return this.sublist(i)..addAll(this.sublist(0, i)); | |
} | |
} | |
void main() { | |
final a = [5, 6, 7, 8, 9]; | |
final b = [5, 6, 7, 8, 9, 10]; |
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
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { | |
opacity: 0; | |
pointer-events: none; | |
} | |
#main-window:not([tabsintitlebar="true"]) #TabsToolbar { | |
visibility: collapse !important; | |
} | |
:root { --thin-tab-width: 36px; } | |
:root { --wide-tab-width: 16vw; } |
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
Make sure that: | |
- Your user is already in "wheel" group. | |
- ACL support is enabled in your root partition or the partition where you mount /opt. | |
$ cd /opt | |
$ su | |
# mkdir nvm | |
# chown root:wheel ./nvm | |
# chmod g+rwx ./nvm | |
# setfacl --test -dm "g:wheel:rwx" ./nvm |
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 os | |
import platform | |
from os.path import pathsep | |
from pathlib import Path | |
__platform = platform.system() | |
def list_executables(): | |
global __platform | |
paths = (Path(x) for x in os.environ["PATH"].split(pathsep) if Path(x).exists()) |
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
Section "ServerLayout" | |
Identifier "layout" | |
Option "AllowNVIDIAGPUScreens" | |
EndSection | |
Section "Device" | |
Identifier "AMDGPU" | |
Driver "amdgpu" | |
Option "TearFree" "true" | |
EndSection |
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
polkit.addRule(function(action, subject) { | |
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == '/opt/lampp/lampp') { | |
return polkit.Result.YES; | |
} | |
}); |
NewerOlder