This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uninstall all npm module inside node_modules | |
# credit goes to http://stackoverflow.com/a/24396148/6265296 | |
npm uninstall `ls -1 node_modules | tr '/\n' ' '` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.5 | |
ENV OPENLAYERS_VERSION=3.20.1 | |
RUN apk update --no-cache \ | |
&& apk add --no-cache \ | |
nodejs \ | |
openjdk8 \ | |
&& mkdir -p /openlayers \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Rakitan.com Sorter & Filter | |
// @namespace zackad's script | |
// @description Sorting and filter entry on rakitan.com | |
// @include http://rakitan.com/kategori.php?* | |
// @version 0.1.0 | |
// @grant none | |
// ==/UserScript== | |
$(document).ready(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of using python to call external command | |
# In this case a php command to run php script | |
from subprocess import call | |
# First argument is command, second & third argument is parameters | |
call(["php", "./index.php", "Hello Dunia"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: page | |
title: Archives | |
permalink: /archives/ | |
--- | |
<ul class="archive-list"> | |
{% assign year = "" %} | |
{% assign month = "" %} | |
{% for post in site.posts %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="primitive palette" style="overflow-y: scroll; height: 654px;"> | |
<span style="background-color: rgb(0, 0, 0); width: 119px;"></span> | |
<span style="background-color: rgb(28, 28, 28); width: 119px;"></span> | |
<span style="background-color: rgb(150, 0, 80); width: 119px;"></span> | |
<span style="background-color: rgb(249, 38, 114); width: 119px;"></span> | |
<span style="background-color: rgb(0, 136, 119); width: 119px;"></span> | |
<span style="background-color: rgb(166, 226, 46); width: 119px;"></span> | |
<span style="background-color: rgb(253, 151, 31); width: 119px;"></span> | |
<span style="background-color: rgb(230, 219, 116); width: 119px;"></span> | |
<span style="background-color: rgb(119, 17, 221); width: 119px;"></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/inputrc - global inputrc for libreadline | |
# See readline(3readline) and `info rluserman' for more information. | |
# Be 8 bit clean. | |
set input-meta on | |
set output-meta on | |
# To allow the use of 8bit-characters like the german umlauts, uncomment | |
# the line below. However this makes the meta key not work as a meta key, | |
# which is annoying to those which don't need to type in 8-bit characters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
location ~ /.+ { | |
try_files $uri $uri.html $uri =404; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Usage: ffmpeg-concat your-output-prefix output-directory | |
# | |
# Note: make sure that output directory is exists and writeable | |
# | |
# TODO: add output directory option | |
# TODO: add filename prefix | |
prefix=$1 | |
output_directory=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
let | |
myPhp = php81.buildEnv { | |
extensions = { all, ... }: with all; [ | |
curl | |
dom | |
fileinfo | |
filter | |
iconv |