Skip to content

Instantly share code, notes, and snippets.

View UlisesGascon's full-sized avatar
😎
Focus on FOSS Projects!

Ulises Gascón UlisesGascon

😎
Focus on FOSS Projects!
View GitHub Profile
@UlisesGascon
UlisesGascon / example.py
Created October 24, 2022 12:56 — forked from eddieantonio/example.py
Zero-dependency Python 3 and Node IPC using UNIX sockets
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import socket
import json
server_address = '/tmp/example.sock'
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.connect(server_address)
@UlisesGascon
UlisesGascon / commands_docusaurus_translation.md
Created July 7, 2022 13:44 — forked from FedericoTartarini/commands_docusaurus_translation.md
Source code for the YouTube video - Translate a Docusaurus website in multiple languages with its internationalization (i18n) support.

Initialize a new site

with npx @docusaurus/init@latest init website classic

Configure your site

i18n: {
    defaultLocale: 'en',
    locales: ['en', 'it'],
    localeConfigs: {
      en: {
@UlisesGascon
UlisesGascon / README.MD
Created June 7, 2022 06:30 — forked from lmarkus/README.MD
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@UlisesGascon
UlisesGascon / recon_methods.sh
Created June 27, 2018 12:00 — forked from brannondorsey/recon_methods.sh
Red teaming reconnaissance and information gathering techniques
# define your target
export TARGET = brannon.online
# perform a whois lookup
whois $TARGET
# do a dns lookup
nslookup $TARGET
# here we find that 34.201.87.194 is the
# true IP address of the $TARGET
@UlisesGascon
UlisesGascon / gist:fc20cd04ec46a4f566ec70496fadf23d
Created June 27, 2017 13:43 — forked from wikimatze/gist:9790374
Github Two-Factor Authentication Failed For HTTPS

I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@UlisesGascon
UlisesGascon / .eslintrc
Last active November 24, 2016 05:16 — forked from ghostwords/.eslintrc
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"arrowFunctions": false, // enable arrow functions
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"classes": false, // enable classes
"defaultParams": false, // enable default function parameters
"destructuring": false, // enable destructuring
@UlisesGascon
UlisesGascon / opencv.sh
Created October 23, 2016 13:37 — forked from priyank/opencv.sh
Script to install OpenCV on Raspberry Pi
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -q -y update
sudo apt-get -q -y install build-essential
sudo apt-get -q -y install cmake
sudo apt-get -q -y install pkg-config
sudo apt-get -q -y install libpng12-0 libpng12-dev libpng++-dev libpng3
sudo apt-get -q -y install libpnglite-dev libpngwriter0-dev libpngwriter0c2
sudo apt-get -q -y install zlib1g-dbg zlib1g zlib1g-dev
sudo apt-get -q -y install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools
sudo apt-get -q -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs
@UlisesGascon
UlisesGascon / package.json
Created November 23, 2015 17:12 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@UlisesGascon
UlisesGascon / watchPosition_demo.html
Last active November 21, 2015 20:29 — forked from strongwave/watchPosition_demo.html
A Demo Drawing Google Map using watchPosition API for HTML5
<!DOCTYPE html>
<html lang="es">
<head>
<title>Geo_Watch</title>
<meta charset=utf-8>
<style>
#mapa {
width: 400px;
height: 300px;
/**
* Split a string into chunks of the given size
* @param {String} string is the String to split
* @param {Number} size is the size you of the cuts
* @return {Array} an Array with the strings
*/
function splitString (string, size) {
var re = new RegExp('.{1,' + size + '}', 'g');
return string.match(re);
}