env\(('\w+')\)
env($1, $_ENV[$1])
env\(('\w+'), (['\w\.@]+)\)
env($1, $_ENV[$1] ?? $2)
| <?php | |
| namespace App\Http\Resources; | |
| use Illuminate\Http\Resources\Json\Resource; | |
| class Topic extends Resource | |
| { | |
| /** | |
| * Transform the resource into an array. |
| export class CurrentGeolocation { | |
| public static getGeolocation(options?: any) : Promise<Position> { | |
| if (window.navigator.geolocation) { | |
| /* https://gist.github.com/varmais/74586ec1854fe288d393 */ | |
| return new Promise(function (resolve, reject) { | |
| navigator.geolocation.getCurrentPosition(resolve, reject, options); | |
| }); | |
| } | |
| } | |
| } |
| import { Address } from 'ngx-google-places-autocomplete/objects/address'; | |
| export interface Price { | |
| value: number | |
| date: Date | |
| place?: Address | |
| url?: URL | |
| } | |
| export interface Measurement { |
| <?php | |
| # Include this file in your functions.php | |
| add_shortcode('human-name', 'human_name'); | |
| add_shortcode('human_name', 'human_name'); | |
| add_shortcode('name', 'human_name'); | |
| function human_name($atts, $content = null) { | |
| return HumanName::parse($content); |
| FROM composer | |
| RUN chown -Rf 1000:33 /tmp \ | |
| && composer global require hirak/prestissimo |
nautilus recent:///https://superuser.com/a/1733383/172232
gsettings set org.gnome.shell.window-switcher current-workspace-only false
gsettings set org.gnome.shell.app-switcher current-workspace-only falseCopy minecraft.service to /etc/systemd/system/
start.sh goes in your Minecraft server folder.
| { | |
| "yaml.schemas": { | |
| "file:///home/almino/.vscode/extensions/atlassian.atlascode-2.10.12/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml" | |
| }, | |
| "atlascode.jira.enabled": false, | |
| "redhat.telemetry.enabled": true, | |
| "terminal.external.linuxExec": "/usr/bin/fish", | |
| "terminal.integrated.defaultProfile.linux": "fish", | |
| "git.suggestSmartCommit": false, | |
| "workbench.iconTheme": "vscode-icons", |
| # Generated via dconf2nix: https://github.com/gvolpe/dconf2nix | |
| { lib, ... }: | |
| with lib.hm.gvariant; | |
| { | |
| dconf.settings = { | |
| "org/gnome/desktop/app-folders" = { | |
| folder-children = [ "Utilities" "YaST" ]; | |
| }; |