Skip to content

Instantly share code, notes, and snippets.

@rogueai
rogueai / gist:6d0666a7217223d9fcab06de27b3f4b2
Created May 3, 2024 08:34
cie-middleware-bin 1.4.3.7 PKGBUILD
# Maintainer: Juma7C9 <juri at dividebyzero dot it>
# Contributor: TesX <tesfabpel at gmail dot com>
# Contributor: rogueai <aur dot ax9kq at simplelogin dot com
pkgname=cie-middleware-bin
pkgver=1.4.3.7
pkgrel=1
pkgdesc="Middleware della CIE (Carta di Identità Elettronica) per Linux - Upstream Release"
arch=('x86_64')
url="https://developers.italia.it/it/cie"
@rogueai
rogueai / A Servlet Connecting To AS400 RPG Program
Created January 5, 2024 11:31 — forked from greghelton/A Servlet Connecting To AS400 RPG Program
A servlet that receives data from an AS400 RPG program
package com.academy.wms.footwearsorter;
import java.util.ArrayList;
import java.util.List;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
@rogueai
rogueai / free_ports.sh
Created February 27, 2022 15:23 — forked from hjbotha/free_ports.sh
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6 - 7.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
@rogueai
rogueai / visual-regression-testing.md
Created August 6, 2021 12:46 — forked from dferber90/visual-regression-testing.md
Visual Regression Testing in Jest

Visual Regression Testing with Jest

This is a walkthrough of how to set up Visual Regression Testing with Jest for an application created with create-react-app.

The following walkthrough uses React as an example, but the approach should work for any modern frontend library! I assume it can be used with Angular, Vue, Cycle.js and more.

This gist walks you through a create-react-app application as an example of how to set up Visual Regression Testing in Jest using libraries I wrote recently which enable this: jsdom-screenshot, jest-transform-css and jest-transform-file.

@rogueai
rogueai / git-ignore-line.sh
Created June 18, 2021 14:19 — forked from aryelgois/git-ignore-line.sh
Git filter to ignore lines in your files
#!/bin/sh
# Git filter to ignore lines in your files.
#
# Copyright (c) 2017-2019 Aryel Mota Góis <aryel.gois@gmail.com>
#
# MIT License
#
#
# SETUP:
#
@rogueai
rogueai / main.js
Created February 27, 2019 08:09 — forked from lstak/main.js
Example using SharePoint CSOM on Node
/* Example using CSOM code on Node */
XMLHttpRequest = require('./xmlhttprequest').XMLHttpRequest;
var window = global;
var navigator = {
userAgent: "Node"
};
@rogueai
rogueai / uninstall-razer-synapse.sh
Created July 31, 2018 21:59 — forked from timotgl/uninstall-razer-synapse.sh
How to fully uninstall Razer Synapse 2 on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) without using Razer's official uninstall tool
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 )
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra)
# without using Razer's official uninstall tool.
# Tested on OS X 10.11.5 in July 2016.
# Edited with additional steps for later OS X versions,
# contributed by commenters on this gist.
# Step 1: In your terminal: stop and remove launch agents
launchctl remove com.razer.rzupdater