Skip to content

Instantly share code, notes, and snippets.

View otnansirk's full-sized avatar
:octocat:
Coding

Kris otnansirk

:octocat:
Coding
View GitHub Profile
@pixelbrackets
pixelbrackets / composer-git-auth.md
Last active February 2, 2024 08:08
Manage GitHub & GitLab Credentials in Composer
@samoshkin
samoshkin / postman_vs_insomnia_comparison.md
Created November 6, 2018 17:42
Comparison of API development environments: Postman vs Insomnia

Postman vs Insomnia comparison

Postman | API Development Environment https://www.getpostman.com
Insomnia REST Client - https://insomnia.rest/

Features                                        Insomnia Postman Notes
Create and send HTTP requests x x
Authorization header helpers x x Can create "Authorization" header for you for different authentication schemes: Basic, Digest, OAuth, Bearer Token, HAWK, AWS
@otnansirk
otnansirk / E: Sub-process returned an error code (1). when purge package
Last active May 26, 2018 02:25
Solve error . E: Sub-process /usr/bin/dpkg returned an error code (1). when purge package
sudo mv /var/lib/dpkg/info/{packagename}.* /tmp/
sudo dpkg --remove --force-remove-reinstreq {packagename}
sudo apt-get remove {packagename}
sudo apt-get autoremove && sudo apt-get autoclean
Clone this :
git clone https://github.com/Anomareh/PHP-Twig.tmbundle.git
Selanjutnya
* buka sulime-text
* tekan ctrl+shif+p (linux,windows)
* ketik browser package lalu enter
* buat folder dengan nama PHP-Twig
* lalu buka package yang sudah didownlad tadi. pindahkan file yang ada di dalam DIR PHP-Twig.tmbundle/Syntaxes
kedalam folder PHP-Twig.
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@mikimaine
mikimaine / Request.php
Last active March 2, 2022 07:38
Request class for Lumen
<?php
namespace App\Http\Requests;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Http\JsonResponse;
use Laravel\Lumen\Http\Redirector;
use Illuminate\Container\Container;
use Illuminate\Contracts\Validation\Validator;
@genekogan
genekogan / scrapeImages.py
Created February 22, 2017 11:49
scraping full size images from Google Images
from bs4 import BeautifulSoup
import requests
import re
import urllib2
import os
import argparse
import sys
import json
# adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search
@ivanvermeyen
ivanvermeyen / !NOTE.md
Last active March 15, 2023 05:25
Setup a Laravel Storage driver with Google Drive API
@askilondz
askilondz / gistlog.yml
Last active May 30, 2024 11:02
Adaptive Streaming with MPEG-DASH and HLS using AWS

Adaptive Streaming has become the neccessity for streaming video and audio. Unfortantely, as of this post, there isn't a whole lot of tutorials that accumulate all of the steps to get this working. Hopefully this post achieves that. This post focuses on using Amazon Web Services (AWS) to transcode for HLS and DASH and be the Content Delivery Network (CDN) that delivers the stream to your web page. We'll be using Video.js for the HTML5 player as well as javascript support libaries to make Video.js work with HLS and DASH.

So Here's what you need:

Set up three S3 buckets

@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active June 9, 2024 14:52 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3