Skip to content

Instantly share code, notes, and snippets.

View smithua's full-sized avatar
🏠
Working from home

Oleksandr Fesenko smithua

🏠
Working from home
View GitHub Profile
@smithua
smithua / remove facebook members from group
Last active February 25, 2019 09:37
This script will remove all facebook group members
/**
* 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.
*
{
"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",
<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);
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
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}
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+/
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
@smithua
smithua / offscreen
Created October 12, 2015 21:19
mixin
@mixin offscreen {
position:absolute;
clip:rect(0 0 0 0);
width:0;
height:0;
overflow:hidden;
}
@smithua
smithua / gulpfile.js
Created August 23, 2015 18:40
proj-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'),