Skip to content

Instantly share code, notes, and snippets.

@santiago26
santiago26 / Xerox Phaser 3140 macOS Catalina driver update
Last active August 18, 2023 12:42
How to get worked old Xerox printer in macOS Catalina
# Intro
Xerox said that Phaser 3140 hass "level 2" of support which means that Xerox not planning to update it's driver any way.
macOS no longer supports 32bit apps since macOS Catalina, and Xerox drivers installer provided at xerox.com is 32bit-app. But drivers will still work if we can install it. So we just need to install drivers itself manually.
To make it old printers work you just need to copy few files from installer to their designed locations.
# Download
You can download unpacked files from macOS 10.14 (10.11+) or unpack from official site by yourselve.
https://yadi.sk/d/K4Z-FlHFTyT2BQ?w=1
#Installation
var ctx = new(window.audioContext || window.webkitAudioContext);
// это всё опасно читать и тут маппинг нот во времени, и для того, чтобы было меньше строк кода - всё тут.
var do_1 = 261.63, dod_1 = 277.18, re_1 = 293.66, red_1 = 311.13, mi_1 = 329.63, fa_1 = 349.23, fad_1 = 369.99, sol_1 = 392.00, sold_1 = 415.30, la_1 = 440.00, lad_1 = 466.16, si_1 = 493.88;
var do_2 = 523.25, dod_2 = 554.36, re_2 = 587.32, red_2 = 622.26, mi_2 = 659.26, fa_2 = 698.46, fad_2 = 739.98, sol_2 = 784.00, sold_2 = 830.60, la_2 = 880.00, lad_2 = 932.32, si_2 = 987.75;
var map = [[sol_1, 500],[0, 250],[sol_1, 500],[0, 250],[sol_1, 500],[0, 250],[red_1, 500],[lad_1, 250],[sol_1, 500],[0, 250],[red_1, 500],[lad_1, 250],[sol_1, 1000],[0, 250],[re_1, 500],[0, 250],[re_1, 500],[0, 250],[re_1, 500],[0, 250],[red_2, 500],[lad_1, 250],[fad_1, 500],[0, 250],[red_1, 500],[lad_1, 250],[sol_1, 1000],[0, 250],[sol_2, 500],[0, 250],[sol_1, 500],[0, 50],[sol_1,250],[sol_2, 550],[0, 200],[fad_2, 400],[0, 50],[fa_2, 200],[0, 50],[m
@santiago26
santiago26 / 0_reuse_code.js
Created November 14, 2013 18:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/usr/bin/env ruby
# Jabber-SH — SH console via XMPP/Jabber (GTalk)
#
# Jabber-SH allows you to administrate a remote computer via a command line
# through a Jabber client. It’s like SSH via GoogleTalk! :)
# This is just a hack but it might be usefull sometime to run basic commands
# on a machine that is not accessible via ssh.
#
# Philippe Creux. pcreux/AT/gmail/DOT/com
#!/bin/bash
url=$1
cookie=$2
while ! `wget -c -t 0 --load-cookies=$cookie $url -O $fileName --no-check-certificate`
do
sleep 300
echo `date` " try to download..."
done
@santiago26
santiago26 / mod_hangouts.erl
Last active August 29, 2015 14:05
Popup in the regular XMPP clients each time somebody tries to start a new chat with a user @gmail.com and doesn't receive a response in 2 minutes. Warning: the person you have tried to contact uses gmail.com. It is possible that their account has been migrated to the Hangouts platform and that Google has silently discarded chats you send them. P…
% Popup in the regular XMPP clients each time somebody tries to start a new chat with a user @gmail.com and doesn't receive a response in 2 minutes. Warning: the person you have tried to contact uses gmail.com. It is possible that their account has been migrated to the Hangouts platform and that Google has silently discarded chats you send them. Please click here for a help page you can email to your contact to fix their account.
% The broken resources start with "Messaging".
% by Holger Weiß holger@zedat.fu-berlin.de
-module(mod_hangouts).
-behaviour(gen_mod).
-export([start/2, stop/1, block_hangouts/1]).
@santiago26
santiago26 / mod_hangouts.lua
Last active August 29, 2015 14:05
Popup in the regular XMPP clients each time somebody tries to start a new chat with a user @gmail.com and doesn't receive a response in 2 minutes. "Warning: the person you have tried to contact uses gmail.com. It is possible that their account has been migrated to the Hangouts platform and that Google has silently discarded chats you send them. …
-- by Kim Alvefur
-- Popup in the regular XMPP clients each time somebody tries to start a new chat with a user @gmail.com and doesn't receive a response in 2 minutes. "Warning: the person you have tried to contact uses gmail.com. It is possible that their account has been migrated to the Hangouts platform and that Google has silently discarded chats you send them. Please click here for a help page you can email to your contact to fix their account."
-- This logic can be refined. The broken resources start with "Messaging".
local st = require"util.stanza"
local jid_split = require"util.jid".split;
module:hook("pre-message/full", function (event)
local origin, stanza = event.origin, event.stanza;
Мокап в формате Balsamiq Mockups.
Можно загрузить в программу или на http://webdemo.balsamiq.com/ через функцию Menu-Import.
Выглядит так: http://i.juick.com/p/2683767.png
Сделано для http://juick.com/Santiago26/2683767
<mockup version="1.0" skin="sketch" fontFace="Balsamiq Sans" measuredW="1390" measuredH="870" mockupW="1383" mockupH="862">
<controls>
<control controlID="36" controlTypeID="com.balsamiq.mockups::BrowserWindow" x="7" y="8" w="675" h="425" measuredW="450" measuredH="400" zOrder="1" locked="false" isInGroup="-1">
<controlProperties>
/*
* Copyright (C) 2014, Leonid Postovski <leonid@postovski.info>
*/
package org.jivesoftware.smackx.packet;
import org.jivesoftware.smack.packet.PacketExtension;
import java.util.ArrayList;
import java.util.Collections;
@santiago26
santiago26 / JitsiMultipleRun
Created March 10, 2014 07:18
How to run multiple copies of Jitsi
RUNNING MULTIPLE INSTANCES OF JITSI / SIP COMMUNICATOR
from http://dumbanddistributed.wordpress.com/2012/10/23/running-multiple-instances-of-jitsi-sip-communicator/
While the mailing list had a few threads mentioning that multiple instances of Jitsi can be run on the same machine, I could not find a definitive guide. So here are the things that I did to get it working. Note that these instructions only relate to SIP accounts.
Step 1) Install Ant
Step 2) Check out Jitsi/ SIP Communicator source code
Step 3) Build the code using the following command: