Skip to content

Instantly share code, notes, and snippets.

View GNURub's full-sized avatar
🏠
Working from home

Rubén GNURub

🏠
Working from home
View GitHub Profile
@GNURub
GNURub / check_waveshaper.sh
Created April 1, 2026 06:25
Detector script for the WAVESHAPER.V2 / axios npm supply chain attack attributed to North Korea-nexus threat actor UNC1069 (Mandiant/GTIG, March 31 2026). Checks for IOC file hashes, malicious plain-crypto-js package, compromised axios versions (1.14.1 / 0.30.4), active C2 connections (sfrclak.com / 142.11.206.73), npm cache artifacts, suspiciou…
#!/usr/bin/env bash
# =============================================================================
# check_waveshaper.sh — Detector WAVESHAPER.V2 / axios supply chain (UNC1069)
# Basado en: https://cloud.google.com/blog/topics/threat-intelligence/
# north-korea-threat-actor-targets-axios-npm-package/
# Objetivo: Ubuntu / Linux
# Uso: sudo bash check_waveshaper.sh
# =============================================================================
set -euo pipefail
@GNURub
GNURub / install-alacritty-ubuntu.sh
Created November 6, 2020 09:58
Install Alacritty Ubuntu
#!/bin/bash
# This installs alacritty terminal on ubuntu (https://github.com/jwilm/alacritty)
# You have to have rust/cargo installed for this to work
# Install required tools
sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev python3
# Download, compile and install Alacritty
git clone https://github.com/jwilm/alacritty
@GNURub
GNURub / matrix.js
Created December 30, 2017 13:16
Find characterds
'use strict';
const alphbet = "aáàbcdeéèfghiíìjklmnñoóòpqrstuúùvwxyz".split('');
class Matrix {
constructor(element) {
if (typeof element === 'string') {
this.__element = document.querySelectorAll(element);
return;
}
@GNURub
GNURub / designer.html
Last active February 2, 2017 14:42
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@GNURub
GNURub / designer.html
Created February 2, 2017 14:29
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@GNURub
GNURub / designer.html
Created February 2, 2017 14:28
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@GNURub
GNURub / tweet-indicator.py
Created September 28, 2014 19:21
Timeline aplication
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os, sys
from gi.repository import AppIndicator3 as appindicator, Gtk as gtk, Notify
from gi.repository import Accounts, Signon, GObject
from TwitterAPI import TwitterAPI
import shelve
class Twitter(object):
@GNURub
GNURub / index.html
Last active August 29, 2015 14:06 — forked from hdragomir/index.html
<script type="text/javascript">
(function (css_href) {
"use strict";
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
} else if (el.attachEvent) {
el.attachEvent("on" + ev, callback);
@GNURub
GNURub / gulpfile.js
Last active August 29, 2015 14:06
scaffold gulp
;(function(gulp) {
/* npm install --save-dev gulp gulp-concat gulp-jshint gulp-uglify \
gulp-load-plugins gulp-inject gulp-ruby-sass gulp-imagemin \
psi wiredep gulp-autoprefixer ngrok
*/
'use strict';
var ngrok = require('ngrok');
var $ = require('gulp-load-plugins')();
var psi = require('psi');
var key = '';
@GNURub
GNURub / Varnish_as_alternative_to_nginx .md
Last active November 20, 2017 09:37
Varnish as alternative to Nginx for NodeJS

Can use Varnish like reverse proxy and load balancing.

Edit conf file /etc/default/varnish

Change the default port 6081 by 80

DAEMON_OPTS="-a :80 \
             -T localhost:6082 \
             -f /etc/varnish/default.vcl \
             -S /etc/varnish/secret \
             -s malloc,256m" ## size cache