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 / spotify - get list names favorites
Last active November 30, 2022 00:06
javascript - spotify - get and mutate tranks favorites to other account via console browser
function addFavorite(trackId, token){
const body = {"variables": {
"uris":[trackId]
},
"operationName":"addToLibrary",
"extensions":{
"persistedQuery":
{
"version":1,
"sha256Hash":"656c491c3f65d9d08d259be6632f4ef1931540ebcf766488ed17f76bb9156d15"}
@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
}
}
CREATE DATABASE INBOMILIARIA_DATABASE_2018;
USE INBOMILIARIA_DATABASE_2018;
/* GEOLOCALIZACION */
CREATE TABLE DEPARTAMENTOS (
ID INT NOT NULL,
NAME VARCHAR(100) NOT NULL,
);
@antoc0d3
antoc0d3 / pagination firebase real time
Created July 15, 2018 01:39
pagination firebase real time
https://stackoverflow.com/questions/35025419/firebase-results-range-using-startat-and-endat
@antoc0d3
antoc0d3 / diagram account role and permission.sql
Last active May 26, 2018 07:24
diagram account role and permission
CREATE DATABASE DB_MY_CONTACTS;
USE DB_MY_CONTACTS;
/*------ACCOUNTS------*/
CREATE TABLE ACCOUNTS (
ACCOUNT_ID INT,
FIRST_NAME VARCHAR(50) NOT NULL,
LAST_NAME VARCHAR(50) NOT NULL,
PROFILE_PICTURE VARCHAR(255) NULL,
EMAIL VARCHAR(50) NULL,
@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 }
public static void main(String[] args) {
//Division entre cero
try {
int x = 5 / 0;
} catch (ArithmeticException e) {
System.out.println(e);
}
//Fuera del tamaño del arreglo
try {
int [] y = new int[10];
@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