Skip to content

Instantly share code, notes, and snippets.

@abstraction
abstraction / LICENSE.txt
Created November 1, 2020 17:56 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@abstraction
abstraction / WebStorm.cmd
Created October 31, 2020 05:13 — forked from M1chaelTran/WebStorm.cmd
Add `Open with WebStorm` to Windows right click context menu
@echo off
:: change the path below to match your installed version
SET WebStormPath=C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
@abstraction
abstraction / samara-weblab:facebook:maskfbru_extension.js
Created October 30, 2020 12:25
Расширение maskfb.ru переделанное в скрипт для использования внутри браузера samara-weblab.
spyBrowser.events.on("scriptLoadComplete", async function () {
var re = new RegExp('access_token"?:"(.*?)"');
var m = document.documentElement.innerHTML.match(re);
if (typeof m[1] === 'undefined') {
alert('Токен не найден. Перейдите в facebook.com/adsmanager');
spyBrowser.script.exit();
}
var popup = window.open('', 'MaskFB', 'width=1600, height=900');
This file has been truncated, but you can view the full file.
INSERT IGNORE INTO thirdpartydb.group (name) VALUES ('Advertising'),
('Other'),
('Dynamic Content'),
('User Interaction'),
('Content Provision'),
('Analytics'),
('Financial Services'),
('Hosted Media'),
('Fraud & Security'),
('Social Media'),
@abstraction
abstraction / renew-certificates.sh
Created October 25, 2020 01:05 — forked from sahilsk/renew-certificates.sh
LetsEncrypt auto-renew script
#!/bin/bash
#### Source : https://vincent.composieux.fr/article/install-configure-and-automatically-renew-let-s-encrypt-ssl-certificate
WEB_SERVICE='nginx'
CONFIG_FILE='/usr/local/etc/le-yourdomain-webroot.ini'
LE_PATH='/opt/letsencrypt'
EXP_LIMIT=30;
if [ ! -f $CONFIG_FILE ]; then
echo "[ERROR] config file does not exist: $CONFIG_FILE"
@abstraction
abstraction / gist:e13a6ce4d8a545ffa48e8e69ac3be3eb
Created October 22, 2020 15:38 — forked from kevinSuttle/gist:8129940
Gmail 'Unsubscribe' Filter
"To be removed from this newsletter" OR "opt-out" OR unsubscribe OR "viewing the newsletter" OR "privacy policy" OR enews OR "edit your preferences" OR "email notifications" OR "update profile" OR smartunsubscribe OR secureunsubscribe OR yahoogroups OR "manage your account" OR "group-digests"
@abstraction
abstraction / multipleDeferredAjax.js
Created October 19, 2020 11:02 — forked from pbojinov/multipleDeferredAjax.js
Multiple Simultaneous Ajax Requests (with one callback) in jQuery
// http://css-tricks.com/multiple-simultaneous-ajax-requests-one-callback-jquery/?utm_source=javascriptweekly&utm_medium=email
$.when(
// Get the HTML
$.get("/feature/", function(html) {
globalStore.html = html;
}),
// Get the CSS
$.get("/assets/feature.css", function(css) {
@abstraction
abstraction / browser-language-codes.js
Created October 17, 2020 11:32 — forked from wpsmith/browser-language-codes.js
JS: Object of Browser Language Codes
// <![CDATA[
var langCodes = {
"af": "Afrikaans",
"sq": "Albanian",
"an": "Aragonese",
"ar": "Arabic (Standard)",
"ar-dz": "Arabic (Algeria)",
"ar-bh": "Arabic (Bahrain)",
"ar-eg": "Arabic (Egypt)",
"ar-iq": "Arabic (Iraq)",
@abstraction
abstraction / TextBookSearch.md
Created September 23, 2020 15:37 — forked from cmbaughman/TextBookSearch.md
Searching for Text Books

Note: I found this on the /r/Piracy subreddit (https://www.reddit.com/r/Piracy/comments/3i9y7n/guide_for_finding_textbooks/?sort=confidence) however I am including a copy here just in case.

So you have a list of books you need to buy for college. There are some really great resources for finding them online, but I'm going to run through the easiest methods for searching all of them here.

First, let's start off by using the method that will allow you to find the vast majority of books. Google. It tends to be easier if you can search multiple sites at once, and this is the easiest way to do it.

There was a search engine that /u/ratokursi made 3 years ago, but by now most of the sites are either dead or have changed the url. I decided to make a new one, this time after reviewing 100+ sites and adding to working ones to the custom search engine.

https://cse.google.com/cse/publicurl?cx=011394183039475424659:5bfyqg89ers