Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
from rest_framework import status | |
from rest_framework.response import Response | |
from rest_framework_simplejwt.authentication import JWTAuthentication | |
# parametre olarak verilen methodlara sadece admin user erişebilir demek | |
# db ile iletişim kuruluyor, admin kullanıcısı olduğu için db ile iletişimini önemsemedim | |
def only_admin(methods=[], err_message="Admin authorization required."): | |
def decorator(view_function): | |
def decorated_function(request, *args, **kwargs): |
Download ffmpeg
from here, download *-win64-gpl.zip
for Windows.
Install ffmpeg
for Ubuntu
sudo apt install ffmpeg
Below command will give you a log file. If no error found, the log file will be empty.
Version: OS X Big Sur 11.3.1
Build Version: 20E241
Provider: VirtualBox
Created with https://github.com/myspaghetti/macos-virtualbox, with the following changes:
;= @echo off | |
;= rem Call DOSKEY and use this file as the macrofile | |
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0% | |
;= rem In batch mode, jump to the end of the file | |
;= goto:eof | |
;= Common directories | |
desktop=cd /d "%HOME%"\Desktop" | |
home=cd /d "%HOME%" |
# create an example ubuntu box
vagrant init bento/ubuntu-18.04
# deploy it
vagrant up
# connect to the box over ssh
vagrant ssh
import { exec } from 'child_process';
/**
* Execute simple shell command (async wrapper).
* @param {String} cmd
* @return {Object} { stdout: String, stderr: String }
*/
async function sh(cmd) {
return new Promise(function (resolve, reject) {