Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar

Pedro Ivan Lopez lopezpdvn

View GitHub Profile
View samizdat-shell-help.bash
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@Gutek
Gutek / C# Version Cheat Sheet.md
Last active February 8, 2022 09:33
Short cheat sheet of changes in C# language from version 6 to 9
View C# Version Cheat Sheet.md

CS 6

read-only auto properties

Small help with immutable types...

// private readonly int _age;
// public int Age { get { return _age; } }
public int Age { get; }
@rjhansen
rjhansen / keyservers.md
Last active September 18, 2023 02:02
SKS Keyserver Network Under Attack
View keyservers.md

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

View gif-from-tweet.md

gif-from-tweet

There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.

Dependencies

  • ffmpeg
    • macOS: brew install ffmpeg
    • Ubuntu/Debian: apt install ffmpeg
@tdcbm
tdcbm / epi2.cs
Last active June 24, 2020 16:50
Epicor Launch Form with parameters
View epi2.cs
//Code src: http://lethanhname.blogspot.co.id/2014/03/epicor-launch-form-with-parameters.html
public void CallLot(string PartNum,string LotNum)
{
try
{
string[] CompoundKeys =new string[]{PartNum,LotNum};
CompoundKeyBinding cb=new CompoundKeyBinding(CompoundKeys,null,null);
LaunchFormOptions opts = new LaunchFormOptions();
opts.ValueIn=cb;
@lockworld
lockworld / 000 Epicor Standard Practice Snippets.md
Last active August 14, 2023 20:11
Code snippets intended to be reused throughout the Epicor 10 implementation.
View 000 Epicor Standard Practice Snippets.md

A set of gists for re-use throughout various Epicor customizations.

View Access a UD field from a temptable from within code.cs
var myShipVia = (from ShipVia_row in ttShipHead
where ShipVia_row.ShipViaCode=="12345"
select ShipVia_row).FirstOrDefault();
if (myShipVia!=null)
{
ShipViaDisabled = myShipVia.UDField<bool>("Disabled_c");
}
/*
@renaudtertrais
renaudtertrais / zip.js
Created July 5, 2016 13:59
A simple ES6 zip function
View zip.js
const zip = (arr, ...arrs) => {
return arr.map((val, i) => arrs.reduce((a, arr) => [...a, arr[i]], [val]));
}
// example
const a = [1, 2, 3];
const b = [4, 5, 6];
const c = [7, 8, 9];
@revolunet
revolunet / python-es6-comparison.md
Last active July 31, 2023 12:44
# Python VS JavaScript ES6 syntax comparison
View python-es6-comparison.md
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 26, 2023 15:49
tmux shortcuts & cheatsheet
View tmux-cheatsheet.markdown