Skip to content

Instantly share code, notes, and snippets.

View AshV's full-sized avatar
🚩
Help me https://www.ashishvishwakarma.com/helpme/

Ashish Vishwakarma AshV

🚩
Help me https://www.ashishvishwakarma.com/helpme/
View GitHub Profile
SELECT DISTINCT
'InputParameter',
REPLACE(mreq.Name, '{Entity.PrimaryEntityName}', ''),
mrf.Name,
CASE
WHEN CHARINDEX(',', mrf.ClrParser) > 0 THEN SUBSTRING(mrf.ClrParser, 1, CHARINDEX(',', mrf.ClrParser) - 1)
ELSE mrf.ClrParser
END,
CASE
WHEN mrf.Optional is null THEN 1
@dannypule
dannypule / json_to_csv.js
Created February 8, 2017 18:40
Export JSON to CSV file using Javascript
function convertToCSV(objArray) {
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
var str = '';
for (var i = 0; i < array.length; i++) {
var line = '';
for (var index in array[i]) {
if (line != '') line += ','
line += array[i][index];
@clarketm
clarketm / google-dorks
Created January 30, 2017 10:01 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@tzmartin
tzmartin / embedded-file-viewer.md
Last active May 17, 2025 22:13
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@drizzentic
drizzentic / index.php
Created July 19, 2016 14:20
Sample USSD Application
<!-- MIT License
Copyright (c) 2016 Derrick Rono
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@liorocks
liorocks / git.md
Last active September 4, 2017 05:51
GIT Tips & Tricks

Change Remote URL

$ git remote set-url origin <remote_repo>

Discard Unstaged/Untracked Changes

$ git checkout -- .
$ git reset --hard
@gkastrinis
gkastrinis / post2.md
Last active October 15, 2024 04:52
Tablet as second PC monitor

Tablet as second PC monitor

Lately I've been thinking about using my old nexus 7 (from 2012) as a second PC monitor.

I've read articles regarding android apps for this purpose as well as comments from Google Play. Some examples can be found here and here. Bottom line, you have to pay and most likely you will end up struggling with (huge?) lag and/or compatibility issues. I tried splashtop but it felt lacking in some way, it was just mirroring my main monitor and it was free just for the first 5 minutes.

@augustoproiete
augustoproiete / SimpleHttpServer.cs
Created December 20, 2015 20:50
C# Based HttpListener Static File Web Server
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using Westwind.Utilities;
namespace Westwind.WebConnection
@devigned
devigned / powershell-and-versions.ps1
Created October 5, 2015 06:52
PowerShell and System.Version Examples.
# Not all of these things are the like the others...
# The last version of this usage will leave you in sadness if you don't catch it.
New-Object System.Version("0.1.1")
# Major Minor Build Revision
# ----- ----- ----- --------
# 0 1 1 -1
New-Object System.Version(0, 1, 1)
# Major Minor Build Revision
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active May 28, 2025 00:06
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)