Skip to content

Instantly share code, notes, and snippets.

View VladimirCores's full-sized avatar
💭
evolve

Vladimir Minkin VladimirCores

💭
evolve
View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / how-to-deal-with-unhandled-exceptions-and-unhandled-promise-rejections-in-javascript.md
Last active October 7, 2022 07:54
JavaScript: How to Deal with Unhandled Exceptions & Unhandled Promise Rejections in JavaScript
{
http_port 8080
https_port 8443
# debug
security {
authentication portal myportal {
crypto default token lifetime 3600
crypto key sign-verify {env.JWT_SHARED_KEY}
backend local {env.HOME}/.local/caddy/users.json local
@heytulsiprasad
heytulsiprasad / tailwind.js
Created September 4, 2020 17:55
Config tailwind to desktop first approach
module.exports = {
theme: {
extend: {},
screens: {
xl: { max: "1279px" },
// => @media (max-width: 1279px) { ... }
lg: { max: "1023px" },
// => @media (max-width: 1023px) { ... }
@abbaspour
abbaspour / nginx.conf
Last active August 28, 2024 02:52
Guide how to enable JWT validation on open source nginx server using ngx-http-auth-jwt-module
daemon off;
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
@nukadelic
nukadelic / EditorFontSize.cs
Last active October 20, 2024 14:58
Unity Editor Font Size Changer -- EditorStyles
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class EditorFontSize : EditorWindow
{
// enable resize on launch to set a default font size , using this option will disable the ability to have the window accassible
@matthiasg
matthiasg / android-set-ntp-server.md
Created February 28, 2020 14:23
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@madkoding
madkoding / install-docker-deepin.sh
Last active November 7, 2024 01:40
Install Docker-CE script for Deepin Linux
#!/bin/bash
echo "Starting Docker installation on Deepin Linux..."
# Define a mapping from Deepin version to Debian version
map_deepin_to_debian() {
if [ "$1" -lt 20 ]; then
echo "stretch"
elif [ "$1" -ge 20 ]; then
echo "buster"
@ponychen
ponychen / build_ffmpeg.sh
Last active December 4, 2020 07:11
Build ffmpeg extension for ExoPlayer on Mac
EXOPLAYER_ROOT="$(pwd)"
FFMPEG_EXT_PATH="${EXOPLAYER_ROOT}/extensions/ffmpeg/src/main"
HOST_PLATFORM="darwin-x86_64"
NDK_PATH="<PATH_TO_NDK>"
COMMON_OPTIONS="\
--target-os=android \
--disable-static \
--enable-shared \
--disable-doc \
--disable-programs \
@tunguskha
tunguskha / Gradient shadow in pure CSS.md
Last active October 12, 2024 17:02
Gradient shadow in pure CSS

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@nonbeing
nonbeing / git-deployment.md
Last active November 6, 2024 06:38 — forked from noelboss/git-deployment.md
Simple deployment using git's post-receive hook

Also see: https://gist.github.com/lemiorhan/8912188

Simple automated deployment using git hooks

Here are the simple steps needed to push your local git repository directly to a remote (e.g. prod) server over ssh. This is based on Digital Ocean's Tutorial.

Overview

You are developing in a working-directory on your local machine, let's say on the master branch. Usually people push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use GitHub's webhooks to send a POST request to a webserver to take appropriate actions such as cloning/checking out a branch on the remote (prod) server.