Skip to content

Instantly share code, notes, and snippets.

View antoc0d3's full-sized avatar
🎯
Enfoque

Antoc0d3 antoc0d3

🎯
Enfoque
View GitHub Profile
@antoc0d3
antoc0d3 / content_script.js
Created April 17, 2022 11:51 — forked from adammw/content_script.js
Chrome Extension for Debugging Secure Websockets on Spotify Web Player. Clone the repo, install extension as unpacked then navigate to `https://play.spotify.com/?ap=wss://ash1-linkap-a1.ap.spotify.com:443`
(function debugify_content_script(){
console.log('debugify content script running');
var nativeWebSocket = window.WebSocket;
var requests = window.requestLog = {};
var WebSocket = window.WebSocket = function(uri) {
console.log('new WebSocket created', uri);
this.websocket = new nativeWebSocket(uri);
this.websocket.onopen = this.onOpen.bind(this);
this.websocket.onmessage = this.onMessage.bind(this);
this.listeners = {onmessage: null, onopen: null};
@antoc0d3
antoc0d3 / firebase_realtime_rules.json
Last active January 25, 2022 17:45 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase RealTimeDatabase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@antoc0d3
antoc0d3 / responsive mixin
Created July 21, 2017 15:03 — forked from davidthingsaker/responsive mixin
SCSS / Sass mixin for responsive sites
$small-desktop: 960px;
$large-desktop: 1200px;
$handheld: 768px;
$handhelds-landscape: 1024px;
$mobile: 640px;
$mobile-landscape: 480px;
@mixin respond-to($media) {
@if $media == largeDesktop {
@media only screen and (min-width: $large-desktop) { @content }
@antoc0d3
antoc0d3 / Operaciones-Git
Created March 12, 2017 22:43 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas