Skip to content

Instantly share code, notes, and snippets.

View basiclines's full-sized avatar

Ismael Canal basiclines

View GitHub Profile
/**
* Custom breakpoints
*
*/
@custom-media --desktop-XL screen and (max-width: 1920px);
@custom-media --desktop-L screen and (max-width: 1440px);
@custom-media --desktop-M screen and (max-width: 1280px);
@custom-media --desktop-S screen and (max-width: 1080px);
@custom-media --desktop-XS screen and (max-width: 900px);
@basiclines
basiclines / defaultbrowser.sh
Last active March 27, 2020 08:23
Sets the current browser as default each 1s
#!bin/bash
while true; do
firefox=$(ps aux | grep -v grep | grep -ci "firefox")
safari=$(ps aux | grep -v grep | grep -ci "safari")
opera=$(ps aux | grep -v grep | grep -ci "opera")
brave=$(ps aux | grep -v grep | grep -ci "brave")
chrome=$(ps aux | grep -v grep | grep -ci "chrome")
if [ $firefox -gt 0 ]
then
@basiclines
basiclines / GoogleOAuth.js
Created May 17, 2020 10:15
Server side implementation for Google OAuth2
const crypto = require('crypto')
const url = require('url')
const fs = require('fs')
const http = require('http')
const express = require('express')
const {google} = require('googleapis')
const successView = require('./success_view')
const errorView = require('./error_view')
const googleCredentials = require('./google_client_id.json')
@basiclines
basiclines / figma_hooks_slack.js
Created January 11, 2021 16:59
AWS lambda for sending Slack messages from Figma Hooks API
const https = require('https');
const querystring = require('querystring');
/**
* Pass the data to send as `event.data`, and the request options as
* `event.options`. For more information see the HTTPS module documentation
* at https://nodejs.org/api/https.html.
*
* Will succeed with the response body.
*/