Skip to content

Instantly share code, notes, and snippets.

View faisal-w's full-sized avatar

Faisal Wirakusuma faisal-w

  • Jakarta East Customs Software
  • Jakarta, Indonesia
View GitHub Profile
@endymuhardin
endymuhardin / LaporanTagihan.txt
Created September 30, 2011 02:04
Contoh Direct Print dengan Java
LAPORAN DAFTAR PELUNASAN KOLETKOR
AGEN PT. ARTIVISI INTERMEDIA
=====================================================================================================================
KODE KOLEKTOR : 0001
NAMA KOLEKTOR : JOJO
+------+--------------+---------------------------+---------+-------------+-------------+-------------+-------------+
@sarva
sarva / multipart_uploads_test.py
Created January 21, 2012 03:32
Streaming multiple files (multipart/form-data) PUT uploads to Tornado (uses a fork that supports body streaming)
"""
This example requires the body-streaming tornado fork at https://github.com/nephics/tornado.
Refer to http://groups.google.com/group/python-tornado/browse_thread/thread/791c67cb86c2dea2.
Supports uploading an unlimited number/size of files in a single
PUT multipart/form-data request. Each file is processed as the stream
finds the part in the form data.
==USAGE==
@thanhleviet
thanhleviet / geoserver.conf
Created July 3, 2012 15:30
Setting up proxy for geoserver with nginx
Tested on nginx version 1.1.9, ubuntu 12.04
-Command lines in order:
sudo touch /etc/nginx/site-availables/geoserver.conf
sudo vi /etc/nginx/site-availables/geoserver.conf
sudo ln -s /etc/nginx/site-availables/geoserver.conf /etc/nginx/site-enabled/geoserver.conf
sudo service nginx start
Content of geoserver.conf
server {
@jbenet
jbenet / simple-git-branching-model.md
Last active November 9, 2024 04:55
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@trestletech
trestletech / server.R
Last active February 2, 2022 09:47
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))
@thinkclay
thinkclay / server.go
Last active September 2, 2024 03:48
Basic Encryption and Decryption with a Golang Web Server Application
package main
import (
"crypto/aes"
"crypto/cipher"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"net/http"
@faisal-w
faisal-w / MyKMeansClusterer.java
Created October 13, 2014 13:39
SimpleKMeans cluster classification example using Weka library.
import weka.core.Instance;
import weka.core.Instances;
import weka.core.converters.ArffLoader;
import weka.clusterers.SimpleKMeans;
import weka.clusterers.ClusterEvaluation;
import java.io.File;
import java.io.FileWriter;
/**
@mjfoster83
mjfoster83 / ws_geo_geojson.php
Last active June 7, 2020 05:34
Dirt-Simple PostGIS HTTP Rest API: Get GeoJSON
<?php
/*
Get GeoJSON
Returns a GeoJSON from your table.
Based on:
https://github.com/bmcbride/PHP-Database-GeoJSON by Brian McBride
To be used with the Dirt-Simple PostGIS HTTP API:
https://github.com/tobinbradley/dirt-simple-postgis-http-api by @tobinbradley
*/
@martinwicke
martinwicke / automobile.ipynb
Last active January 9, 2022 08:14
Estimator demo using Automobile dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

#petya #petrWrap #notPetya

Win32/Diskcoder.Petya.C

Ransomware attack.

About

This gist was built by the community of the researchers and was scribed by Kir and Igor from the QIWI/Vulners. We are grateful for the help of all those who sent us the data, links and information. Together we can make this world a better place!

Gist updates