Skip to content

Instantly share code, notes, and snippets.

View pedrohma's full-sized avatar
:shipit:

Pedro Henrique Arthur pedrohma

:shipit:
View GitHub Profile
@conholdate-gists
conholdate-gists / RedactPDF_CSharp
Last active February 10, 2023 20:33
Redact PDF Documents using C#
Redact PDF Documents using C#
1. C# API for PDF Redaction
2. Redact Text in PDF Documents using C#
3. Apply Metadata Redaction in PDF Documents using C#
4. Redact Annotation in PDF Documents using C#
@paulogdm
paulogdm / script.sh
Last active April 16, 2022 06:37
Useful `dig` and `curl` commands
# Query any record
dig A paulogdm.com
dig NS paulogdm.com
dig CNAME www.paulogdm.com
# Query any record using a specific DNS resolver
dig A paulogdm.com @1.1.1.1
dig A paulogdm.com @8.8.8.8
# Query record with a trace of the DNS resolution
@DanDiplo
DanDiplo / JS-LINQ.js
Last active April 29, 2024 10:30
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
@mandiwise
mandiwise / Sync gh-pages + master branches
Last active April 27, 2024 05:41
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes