Skip to content

Instantly share code, notes, and snippets.

View Telematica's full-sized avatar

Héctor Cerón Figueroa Telematica

View GitHub Profile
@Telematica
Telematica / git.md
Last active March 3, 2026 19:25
Git Recipes
@Telematica
Telematica / repos.json
Last active December 11, 2017 19:54
JSON DB from handy/useful Github Repos, Info & Docs
{
".gitignore" : "https://github.com/github/gitignore/blob/master/Symfony.gitignore",
"gitbook" : "https://github.com/GitbookIO/gitbook",
"HBP Apache Settings": "https://github.com/h5bp/server-configs-apache"
}
@Telematica
Telematica / JSRegex.js
Last active December 19, 2016 22:47
JS Regex Sample Collection
;(function(){
console.log(
/^([a-zA-Z]{3,4})-(\d{6})-((\D|\d){3})?$/.test('OIHG-551205-2L7'), //Check RFC Format
/[\r\n]+/.test('ABCD\n \t EFGHI\n \t ') //Select Line,
/(?=.*?\bbundle\b)(?=.*?\bstandalone\b)^.*$/i.test('standalone bundle'), //
/(?=.*?\bbundle\b)(?=.*?\bstandalone\b)^.*$/i.test('standalone? bundle'), //
/(?=.*?\bbundle\b)(?=.*?\bstandalone\b)^.*$/i.test('standalone_ bundle'), //
'/^[a-f0-9]{32}$/'.test('5d41402abc4b2a76b9719d911017c592'), // MD5 check
/cmb[\d\w-_]+/.test('cmbCountry'), //
' _ A + B _ '.replace(/^\s+|\s+$/g, ""), // Emulates trim()
@Telematica
Telematica / HITSSHost.js
Last active August 20, 2016 03:02
HITSS Host Hours AutoSubmission
//;(function(window, $, datos) {
/**
*
* @ToDo Find calendar days
*
*/
var activities =[
{ 'Id_Actividad' : 380814, 'horas' : 2 }, //ANALISIS
{ 'Id_Actividad' : 380812, 'horas' : 6 } //DESARROLLO
@Telematica
Telematica / Bitso.js
Last active August 15, 2016 00:16
Bitso Web Desktop Notifications
;(function(window) {
Notification
.requestPermission()
.then(function(result) {
if ('granted' === result) {
openIframe();
window.timer = setInterval(
function() {
var change = '',
operator = '',
@Telematica
Telematica / twitterListMigration.js
Created August 15, 2016 00:08
Get User from Twitter List and Request List Migrate (Twitter for Web)
//[\r\n]+
var users = [],
listId = JSON.parse(document.getElementById('init-data').value).list_id, //'762404565366956032',
headers = {
"Accept" : "application/json, text/javascript, */*; q=0.01",
"Accept-Language" : "en-US,en;q=0.5",
"Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8",
"X-Requested-With" : "XMLHttpRequest",
},
formData = {
//Vimeo
(function(){
document.querySelectorAll('video')[0].src = '';
setTimeout(
function() {
document.querySelectorAll('.telecine')[0].appendChild(document.createElement('a'));
document.querySelectorAll('.telecine a')[0].setAttribute('href', document.querySelectorAll('video')[0].src);
document.querySelectorAll('.telecine a')[0].setAttribute('download', 'a.mp4');
document.querySelectorAll('.telecine a')[0].click();
@Telematica
Telematica / SVNhandyCommands.sh
Last active June 8, 2016 16:32
SVNhandyCommands.sh
#SVN DIFF
#svn diff --diff-cmd='meld' -r4550 yourfile
#MS Windows example
svn diff --diff-cmd='C:\Program Files (x86)\Meld\Meld.exe' -r4550
#Patch
svn diff -r123:124 path/to/my_project_folder > ~/my_project_changes_123_124.patch
#Summarize Commit files
@Telematica
Telematica / netstat.bat
Last active March 19, 2020 19:12
Handy Windows OS Commands and Routines
::C:\Users\username>netstat -o -n -a | findstr 0.0:3000
:: TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116
netstat -o -n -a | findstr 0.0:3000
@Telematica
Telematica / misc.js
Last active January 29, 2016 18:59
JS Misc Stuff
var defaults = {
'MDBykpSXsSE' : { min : 423, max : 430, current : 425 }
,'MDBykpSXsSE' : { min : 423, max : 430, current : 425 }
}
,video = document
.querySelector('video')
.addEventListener(
'timeupdate'
,function(e)
{