Skip to content

Instantly share code, notes, and snippets.

@Papapashu
Papapashu / userChrome.css
Last active November 25, 2015 14:32
firefox-devtools-font-size
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("chrome://browser/content/devtools/**/.*"){
.devtools-monospace {
font-size: 12pt!important;
}
}
Hello, World!
@agragregra
agragregra / rsync-backup.sh
Last active June 3, 2019 14:48
Backup Files/Folders to External Hard Drive (Rsync)
rsync -aP --delete --exclude=node_modules --exclude=Thumbs.db --exclude=.DS_Store /Users/alex/Work/ /Volumes/BACKUP/Work/
@agragregra
agragregra / macOS-Read-only.sh
Created January 10, 2020 13:55
macOS Read-only file system FIX
sudo mount -uw /
@justincarroll
justincarroll / bootstrap-masonry-template.htm
Last active August 15, 2020 16:48
This is my template for using Masonry 3 with Bootstrap 3. For those of you who follow this gist a lot has changed since Bootstrap 2.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Masonry Template</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700">
on run {input, parameters}
set phrase to input as string
set phrase to quoted form of phrase
set ui_lang to "ru"
set from_lang to "auto"
set to_lang to "ru"
do shell script "open 'https://translate.google.com/?hl='" & ui_lang & "'&sl='" & from_lang & "'&tl='" & to_lang & "'&text='" & phrase
end run
@agragregra
agragregra / macOS-Safari-Web-Inspector-Font-Size.css
Last active June 1, 2021 13:00
macOS Safari Web Inspector Font Size
/*
1. Reboot & hold Cmd+R
2. Open Terminal Utility
3. Type "csrutil disable", reboot
4. Add lines to end of file: /System/Library/PrivateFrameworks/WebInspectorUI.framework/Versions/Current/Resources/Main.css
4.1 For Safari 14+: /Library/Apple/System/Library/StagedFrameworks/Safari/WebInspectorUI.framework/Versions/A/Resources/Main.css
5. Enable csrutil at reboot - "csrutil enable"
*/
@agragregra
agragregra / magnific-animation-preloader
Last active January 31, 2022 09:39
Magnific Gallery with Animation & Preloader | http://codepen.io/agragregra/pen/OMNLQJ
SASS:
.mfp-ready .mfp-figure
opacity: 0
.mfp-zoom-in
.mfp-figure, .mfp-iframe-holder .mfp-iframe-scaler
opacity: 0
transition: all 0.3s ease-out
transform: scale(0.95)
&.mfp-bg, .mfp-preloader
opacity: 0
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
@agragregra
agragregra / parallax-translate3d.js
Last active September 20, 2022 19:23
Smooth Parallax Scroll
$(window).scroll(function() {
var st = $(this).scrollTop() /10;
$(".object").css({
"transform" : "translate3d(0px, " + st + "%, .01px)",
"-webkit-transform" : "translate3d(0px, " + st + "%, .01px)"
});
});