Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Aleksandr Fesenko smithua

🏠
Working from home
Block or report user

Report or block smithua

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@smithua
smithua / remove facebook members from group
Last active Feb 25, 2019
This script will remove all facebook group members
View remove facebook members from group
/**
* This script will remove all facebook group members.
*
* @author: smithua
*
* Usage:
* Load as many users as you need, then open console and paste this script.
* Sometimes after opening confirm dialog the page look "freeze" for a while
* Its OK and it takes time to remove all members.
*
View .stylelintrc
{
"rules": {
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"selector-pseudo-element-colon-notation": "single",
"selector-pseudo-element-case": "lower",
View google.font.api
<script>
WebFontConfig = {
google: { families: [ 'Droid Serif','Lato:400,400i,700,700i,900,900i','Montserrat','Open Sans','Poiret One','Raleway','Roboto','Roboto Slab','Scope One'] },
classes: false, timeout: 9000
};
// !function(w) {
// var wf = w.document.createElement('script'), s = w.document.scripts[0];
// wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js';
// wf.async="false";
// s.parentNode.insertBefore(wf, s);
View open-chrome-tabs-in-safari.scpt
tell application "Google Chrome"
set tab_list to every tab in the front window
repeat with the_tab in tab_list
set the_url to the URL of the_tab
tell application "Safari" to open location the_url
end repeat
end tell
View breakpoints
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}
View loader (base64)
url('data:image/gif;base64,R0lGODlhUABQAPcAAAAAAAEBAQICAgMDAwUFBQYGBgcHBwcHBwgICAkJCQkJCQkJCQkJCQkJCQkJCQkJCQoKCgoKCgsLCwsLCwwMDA0NDQ0NDQ4ODg8PDxAQEBERERISEhQUFBYWFhcXFxkZGRsbGxwcHBwcHB0dHR0dHR4eHh4eHh4eHh4eHh4eHiAgICEhISMjIyUlJSgoKCoqKiwsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODo6Oj09PT8/P0FBQUJCQkREREVFRUdHR0hISEhISEhISEhISElJSUlJSUlJSUpKSkxMTE5OTk9PT1FRUVJSUlRUVFdXV1lZWVpaWltbW1xcXF1dXV1dXV1dXV5eXl5eXl5eXl9fX2BgYGFhYWJiYmRkZGdnZ2lpaWtra2xsbG1tbW5ubm9vb3BwcHJycnJycnJycnNzc3Nzc3Nzc3Nzc3Nzc3R0dHR0dHV1dXV1dXZ2dnd3d3h4eHl5eXx8fH5+foGBgYODg4SEhISEhIWFhYWFhYWFhYaGhoaGhoeHh4eHh4iIiIiIiIiIiImJiYqKioqKiouLi4yMjI+Pj5KSkpWVlZiYmJqampycnJ2dnZ6enp+fn6CgoKGhoaOjo6Wlpaenp6ioqKqqqqysrK6urrGxsbKysrOzs7Ozs7S0tLS0tLW1tbW1tba2tre3t7e3t7i4uLq6ur6+vsHBwcPDw8TExMXFxcbGxsfHx8fHx8jIyMjIyMnJycnJycrKysvLy8zMzM7OztDQ0NHR0dPT09TU1NbW1tfX19jY2Nra2tvb293d3d7e3t7e3t/f3+Dg4OLi4uPj4+Pj4+Tk5OTk5OXl5efn5+jo6Onp6erq6uzs7O3t7e7u7u/v7+/v7/Dw8PHx8fHx8fLy8vLy8vPz8/Pz8/Pz8/T09PT09PX19fX19fb29vf39/j4+Pr6+vv7+/z8/P7+/v7+/v7+/v7+/v7+/v7+/v7+/
View postgresql install
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
View offscreen
@mixin offscreen {
position:absolute;
clip:rect(0 0 0 0);
width:0;
height:0;
overflow:hidden;
}
@smithua
smithua / gulpfile.js
Created Aug 23, 2015
proj-gulpfile.js
View gulpfile.js
// npm install gulp gulp-sass gulp-autoprefixer gulp-minify-css gulp-concat gulp-newer gulp-livereload gulp-plumber beepbeep colors --save
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifyCSS = require('gulp-minify-css'),
newer = require('gulp-newer'),
livereload = require('gulp-livereload'),
plumber = require('gulp-plumber'),
beep = require('beepbeep'),
You can’t perform that action at this time.