Skip to content

Instantly share code, notes, and snippets.

View sir4ju1's full-sized avatar

Sirajul sir4ju1

  • lolobyte
View GitHub Profile
@sir4ju1
sir4ju1 / reverse2.cs
Created April 26, 2018 18:42
C# Reverse Shell
/*
Reference: http://www.codeproject.com/Articles/20250/Reverse-Connection-Shell
*/
using System;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq;
@sir4ju1
sir4ju1 / nuxt-vue-fullcalendar.vue
Created March 19, 2017 17:42
example how to integrate fullcalendar to nuxt vue
<template>
<section>
<div id="calendar"></div>
</section>
</template>
<script>
// $.fn.fullCalendar = fullCalendar
export default {
middleware: '',
@sir4ju1
sir4ju1 / better-nodejs-require-paths.md
Created February 11, 2017 19:24 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@sir4ju1
sir4ju1 / nginxproxy.md
Created December 28, 2016 23:48 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@sir4ju1
sir4ju1 / html5-video-streamer.js
Created September 22, 2016 15:06 — forked from paolorossi/html5-video-streamer.js
Node.js HTML5 video streamer
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
*/
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'video.mp4';
@sir4ju1
sir4ju1 / README.md
Created August 20, 2016 22:33
Deobfuscate free version of JavascriptObfuscator.com

Simple Javascript deobfuscator

Aims to deobfuscate the result of JavascriptObfuscator free version.

Run

To tun the script, you should have had node.js installed first. Requires node.js and following npm modules:

  • esprima
@sir4ju1
sir4ju1 / POSFiscalPrint.cs
Created June 23, 2014 11:57
Fiscal Printing for POS (Point of Sale) from c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Drawing.Printing;
using System.Drawing;
namespace TicketingSystem
{
public class Ticket
var uuid = require('node-uuid'),
https = require('https');
function iCloud(appleId, password) {
this.urls = {
"version" : "https://www.icloud.com/system/version.json",
"validate": "/setup/ws/1/validate?clientBuildNumber={0}&clientId={1}",
"login": "/setup/ws/1/login?clientBuildNumber={0}&clientId={1}"
}
@sir4ju1
sir4ju1 / FtpTransfer.cs
Created June 3, 2014 00:41
Upload and Download file through FTP in C#
using System.Net;
using System.IO;
// Upload File to Specified FTP Url with username and password and Upload Directory
//if need to upload in sub folders ///
//Base FtpUrl of FTP Server
//Local Filename to Upload
//Username of FTP Server
//Password of FTP Server
@sir4ju1
sir4ju1 / CultureinfoDate.cs
Created April 28, 2014 07:26
CultuerInfo.DateTimeFormat CurrentUICulture C#
System.Globalization.CultureInfo objCI = new System.Globalization.CultureInfo("En-US");
objCI.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
VWGContext.Current.CurrentUICulture = objCI;