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
@jdthorpe
jdthorpe / FetchXML.md
Last active July 3, 2024 15:56
Notes on FetchXML

Learn to Love Tolerate FetchXML

Overview

FetchXML seems to be a quirky subset of the SQL implemented in XML and optimized for UI tasks, including:

  • the ability select specific fields (foo, b.bar) or all fields (*) from an entity
  • perform LEFT OUTER and INNER joins
  • assign aliases to attributes (select a.b as foo) and (joined) entities (left join foo as BAR)
@ikuamike
ikuamike / GoogleDorking.md
Created February 22, 2020 20:12 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@ilblog
ilblog / README.md
Last active August 15, 2024 18:49
Create mp4 video from set of images in the browser client side, using ffmpeg.js in worker thread
convertToReadableDate(unixTimestamp) {
// Months array
const monthsArray = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
// Convert timestamp to milliseconds
const date = new Date(unixTimestamp * 1000);
const year = date.getFullYear();
const month = monthsArray[date.getMonth()];
const day = date.getDate();
const hours = date.getHours();
const minutes = `0${date.getMinutes()}`;
@alikrc
alikrc / MS CRM Dynamics Entity StateCodes and StatusCodes.md
Last active August 14, 2024 13:17
MS CRM Dynamics Entity StateCodes and StatusCodes
Entity Status (statecode) Status Reason (statuscode)
Account (account) 0 Active 1 Active
1 Inactive 2 Inactive
Activity (activitypointer) 0 Open 1 Open
1 Completed 2 Completed
2 Canceled 3 Canceled
3 Scheduled 4 Scheduled
Appointment (appointment) 0 Open
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
}
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},
@aunyks
aunyks / counter.sol
Last active March 10, 2023 10:33
A simple counter written in Solidity, for Ethereum.
pragma solidity ^0.4.0;
contract Counter {
int private count = 0;
function incrementCounter() public {
count += 1;
}
function decrementCounter() public {
count -= 1;
}
function getCount() public constant returns (int) {
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all

Run go install and

  • gogitlocalstats -add /path/to/folder will scan that folder and its subdirectories for repositories to scan
  • gogitlocalstats -email [email protected] will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default in main.go, so you can run gogitlocalstats without parameters.

Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.

License: CC BY-SA 4.0

@aunyks
aunyks / snakecoin-server-full-code.py
Last active March 31, 2025 17:45
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
from flask import Flask
from flask import request
import json
import requests
import hashlib as hasher
import datetime as date
node = Flask(__name__)
# Define what a Snakecoin block is
class Block: