Skip to content

Instantly share code, notes, and snippets.

View CerealKiller97's full-sized avatar
:electron:
Mixing

Stefan Bogdanović CerealKiller97

:electron:
Mixing
View GitHub Profile
@milosb793
milosb793 / DatabaseCreateCommand.php
Last active December 21, 2019 08:16
Laravel Command used for creating database.
<?php
namespace App\Console\Commands;
use PDO;
use PDOException;
use Illuminate\Console\Command;
@sd031
sd031 / DevOps related courses with links
Created September 12, 2019 04:14
GCP, AWS Certification, DevOps / DevSecOps courses link that I did go through
@0xced
0xced / netcore single exe.md
Last active November 16, 2022 15:14
Building a .NET Core single exe for Linux on macOS or Windows

Building a .NET Core single exe for Linux on macOS or Windows

Run the .NET Core SDK docker image and share your working directory containing your .csproj file at /home in the container.

On Linux/macOS:

docker run --interactive --tty --rm --volume "$(pwd):/home" mcr.microsoft.com/dotnet/core/sdk:2.2 /bin/bash

On Windows:

@sam-ngu
sam-ngu / laravel-mail-components.blade.php
Created May 21, 2019 00:59
list of laravel mail markdown components
@component('mail::message')
# Introduction
The body of your message.
@component('mail::button', ['url' => ''])
Button Text
@endcomponent
@component('mail::panel')
@lizthegrey
lizthegrey / attributes.rb
Last active July 17, 2025 01:43
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'

Angular Universal setup for firebase hosting

1) Install firebase-tools globally

npm i -g firebase-tools

2) Install @angular/platform-server

{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Typescript React PureComponent": {
"prefix": "rpc",
"body": [
"import * as React from 'react'",
@antonmi
antonmi / read-access.sql
Last active January 3, 2020 17:33 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
@Oyelowo
Oyelowo / webdev_online_resources.md
Created July 17, 2018 05:38 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active August 24, 2025 15:27
Online Resources For Web Developers (No Downloading)