Skip to content

Instantly share code, notes, and snippets.

View denysvitali's full-sized avatar

Denys Vitali denysvitali

View GitHub Profile
@bloodyowl
bloodyowl / gist:41b1de3388c626796eca
Last active April 20, 2020 03:27
es6 event-emitter
var DEFAULT_MAX_LISTENERS = 12
function error(message, ...args){
console.error.apply(console, [message].concat(args))
console.trace()
}
class EventEmitter {
constructor(){
this._maxListeners = DEFAULT_MAX_LISTENERS
@Fornoth
Fornoth / Notes.md
Last active December 9, 2024 16:02
Makes a device show up in spotify connect devices list, but nothing else yet

#Python Script Setup

To get the python script running, run either pip install flask or pip install -r requirements.txt if you used git clone to clone the gist

#libspotify_embedded_shared.so notes

##Using the library (still in progress) There's a compile.sh that compiles a program that calls SpInit(), but doesn't get any farther because it needs more than just the API version number (which is 4)

##Spotify appkey

@Falconerd
Falconerd / gulpfile.js
Last active April 10, 2019 17:16
Gulp + Watchify + Babelify + BrowserSync
/**
* This gulpfile will copy static libraries and a index.html file as well as
* merge, babelify and uglify the rest of the javascript project.
*
* TODO:
* - Separate media, libs and src with different watchers.
* - Media and libs should only be copied to dist if they are different sizes.
*
* The expected project is to be laid out as such:
*
@Arnie97
Arnie97 / remove_watermark.py
Last active February 4, 2025 11:47
Removes the annoying watermarks of it-ebooks.info's downloaded eBooks
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
#
# Author: Daxda
@gbaudoin
gbaudoin / Bvr.php
Last active January 2, 2023 09:03
Calcul du chiffe-clé en PHP, modulo 10 récursif, BVR PostFinance Suisse
<?php
/**
* Calcul du chiffre-clé en PHP, modulo 10, récursif BVR Suisse
* Berechnung der Prüfziffer nach Modulo 10, rekursiv BESR Schweiz
* Calculating the Check Digits Using Module 10, Recursively
*
* @author gbaudoin
* @license GPL
* @see https://www.postfinance.ch/content/dam/pf/de/doc/consult/manual/dldata/efin_recdescr_man_fr.pdf
* @see https://gist.github.com/christianmeichtry/9348451
@renchap
renchap / README.md
Last active February 14, 2025 13:25
One-line certificate generation/renews with Letsencrypt and nginx

Prerequisites : the letsencrypt CLI tool

This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.

You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge. Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.

I redirect all HTTP requests on HTTPS, so my nginx config looks like :

server {
@xdump
xdump / gist:cddb98a90ae9268e9d3f
Created January 30, 2016 16:54
BBC-Radio.m3u
http://bbcmedia.ic.llnwd.net:80/stream/bbcmedia_radio1_mf_p
http://bbcmedia.ic.llnwd.net:80/stream/bbcmedia_radio2_mf_p
http://bbcmedia.ic.llnwd.net:80/stream/bbcmedia_radio3_mf_p
http://bbcmedia.ic.llnwd.net:80/stream/bbcmedia_radio4fm_mf_p
http://bbcmedia.ic.llnwd.net:80/stream/bbcmedia_radio5live_mf_p
http://bbcmedia.ic.llnwd.net:80/stream/bbcmedia_6music_mf_p
@dotdoom
dotdoom / zvv2kml.py
Created March 24, 2016 21:24
ZVV Tarifzonen KML (Google Maps)
#!/usr/bin/env python
# Fetch ZVV Tarifzonen map in SVG and convert to KML.
# You can save the output and import into Google Maps.
# Use at your own risk. The API used is not publicly disclosed,
# improper use may lead to lawsuits.
import sys
import urllib2
import xml.etree.ElementTree as ET
package com.spotify.core
{
import avm2.intrinsics.memory.li32;
import avm2.intrinsics.memory.li8;
import avm2.intrinsics.memory.si32;
import avm2.intrinsics.memory.si8;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.___unnamed_66;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.___unnamed_67;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.___unnamed_68;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.F___unnamed_4;
@gabonator
gabonator / password.txt
Last active September 8, 2026 05:29
HiSilicon IP camera root passwords
Summary of passwords by sperglord8008s, updated November 1. 2020. For login try "root", "default", "defaul" or "root"
00000000
059AnkJ
4uvdzKqBkj.jg
7ujMko0admin
7ujMko0vizxv
123
1111
1234