Skip to content

Instantly share code, notes, and snippets.

View nitpum's full-sized avatar

nitpum nitpum

View GitHub Profile
@nitpum
nitpum / style.css
Last active August 7, 2021 10:10
My Quick Tabs Custom CSS
body {
background-color: #333;
padding-top: 30px;
}
.qs_input {
background-color: #444;
color: white;
top: 0px;
position: fixed;
@nitpum
nitpum / Dockerfile
Last active April 10, 2020 13:33
Docker image for Laravel
FROM php:7.2-fpm
# Copy composer.lock and composer.json
COPY composer.lock composer.json /var/www/
# Set working directory
WORKDIR /var/www
# Install dependencies
RUN apt-get update && apt-get install -y \
{
"formatVersion": 1,
"version": 1,
"libraries": [
{
"name": "Minecraft",
"items": [
{
"name": "Minecraft v1.3.2",
"version": "v1.3.2"
@nitpum
nitpum / .gitignore
Last active November 21, 2018 15:00
.gitginore for Unity project
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
[Lo]gs/
[Lo]g/
Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
@nitpum
nitpum / C vs JAVA.md
Last active March 29, 2018 06:17
C vs Java

1

Java

public class Car {

  public double speed;
  
  public void Drive () {
    // Do something
@nitpum
nitpum / Construct 2 .gitignore
Created September 20, 2017 16:57
Git-ignore for construct 2
*.uistate.xml
*.capx.backup
*.capx.backup1
@nitpum
nitpum / Download streaming video .js
Last active June 21, 2021 10:24
Download streaming video all .ts from .m3u8
/*
Requirement:
ffmpeg: https://ffmpeg.org/
Command line:
ffmpeg -i <URL> -vcodec copy -acodec copy -f mpegts "<OUTPUT>.mp4"
Example:
ffmpeg -i 'http://www.github.com' -vcodec copy -acodec copy -f mpegts "output.mp4"
<div class="panel">
<h1>Hello Netlify | nitpum</h1>
<a href="https://nitpum.com">← Back to main site</a>
</div>
<!DOCTYPE html>
<html>
<head>
<title>Hello Netlify !</title>
<style>
*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}body,html{height:100%}body{background:#f4f6f6;font-family:Roboto,sans-serif;color:#414546;display:flex;align-items:center;justify-content:center}p{margin:20px 0}.panel{background:#eee;padding:40px 60px;border-radius:6px;width:40em;margin:50px auto;max-width:100%}a,a:active,a:link,a:visited{color:#35a65e;text-decoration:none}a:hover{text-decoration:underline}
</style>
</head>
<body>
<div class="panel">