Skip to content

Instantly share code, notes, and snippets.

View nurrony's full-sized avatar

Nur Rony nurrony

View GitHub Profile
@nurrony
nurrony / doc2jpeg
Last active March 18, 2016 06:44
Convert MS office doc[x], xls[x], ppt[x] and Openoffice Files to JPEG image using GhostScript and Headless Libreoffice
#!/usr/bin/env bash
read -p 'Document filename (with path): ' DOC_NAME_AND_PATH
read -p 'Image Destination Path (directory): ' DOC_DESTINATION
#Variables
DOC_NAME_AND_EXT=$(basename $DOC_NAME_AND_PATH)
DOC_EXT=${DOC_NAME_AND_EXT##*.}
DOC_NAME=${DOC_NAME_AND_EXT%.*}
PDF_FILENAME="$DOC_NAME.pdf"
PDF_FILENAME_AND_PATH="$DOC_DESTINATION/$DOC_NAME"
@nurrony
nurrony / sublime_text3_crack.md
Created April 9, 2016 06:37 — forked from sublime-crack4/sublime_text3_crack.md
Sublime Text crack 3109 3103 Win64 Win32 Linux64 Linux32 OSX Mac MacOS latest

cat

To pupils: all binaries can be downloaded http://pan.baidu.com/s/1ntCChyp

After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.

For programmers:

@nurrony
nurrony / package-list.md
Last active November 11, 2016 12:18
My Sublime Text Settings and Plugins List
@nurrony
nurrony / compile-nginx-from-source.sh
Last active September 27, 2019 11:00
All configuration files needed to install nginx on Ubuntu 16.04 Compile Nginx from source with nginx-rtmp-module, pagespeed and cache-purge module.
#change it to latest version
NPS_VERSION=1.11.33.0;
echo "Changing Directory to $HOME..."
cd $HOME;
echo "Nginx version to install: " && \
read NGINX_VERSION && \
echo "Downloading nginx-$NGINX_VERSION..." && \
wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \
echo "Installing Nginx Dependencies..." && \
<html>
<head>
<style>
.item {width:300px; display: inline-block; }
.item .itemtitle {font-weight:bold; font-size:2em;}
.hidden {display:none;}
</style>
</head>
<body>
<h1>Amalgam Comics Characters</h1>
@nurrony
nurrony / couchdb-nginx-proxy-ssl.conf
Last active July 5, 2016 18:34 — forked from Overbryd/nginx.conf
Nginx configuration for a CouchDB reverse proxy, also very useful for hosting CouchApps
worker_processes 4;
events {
worker_connections 1024;
}
http {
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '

Keybase proof

I hereby claim:

  • I am nmrony on github.
  • I am nmrony (https://keybase.io/nmrony) on keybase.
  • I have a public key ASCLsR0NxokpdoMSn4GGd7qNwSAhMWgipiz5qLUbbGtrqAo

To claim this, I am signing this object:

@nurrony
nurrony / index.html
Last active July 19, 2016 07:06
React vs JQuery
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>JS Bin</title>
<style>
#jquery-component .alert {
display: none;
}
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')