Skip to content

Instantly share code, notes, and snippets.

View dylan-k's full-sized avatar

Dylan Kinnett dylan-k

View GitHub Profile
@anschaef
anschaef / bootstrap-5-sass-mixins-cheat-sheet.scss
Last active August 10, 2024 15:24
All New Bootstrap 5 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 5 Sass Mixins [ Cheat sheet ]
// Updated to Bootstrap v5.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/main/scss/mixins
// @see https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss
/* -------------------------------------------------------------------------- */
// Options
// @see https://getbootstrap.com/docs/5.1/customize/options/
@emareg
emareg / regex-migrate-bs-4-to-5.py
Created May 26, 2021 11:36
Migrate Bootstrap 4 to 5 via RegEx
# table for regex replacements
tabRegEx=[
[r"ml(-\d)", r"ms\1"],
[r"mr(-\d)", r"me\1"],
[r"pl(-\d)", r"ps\1"],
[r"pr(-\d)", r"pr\1"],
[r"data-toggle=([\"'](?:collapse|dropdown|tab)[\"'])", r"data-bs-toggle=\1"],
[r"data-target=", r"data-bs-target="],
["float-left", "float-start"],
["float-right", "float-end"],
@b1
b1 / please-stop-embedding-bootstrap-classes-in-your-html.md
Last active August 29, 2023 17:12
Please stop embedding Bootstrap classes in your HTML!

http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html

Posted on Feb 29, 2012

A few months ago, Twitter released Bootstrap, a UI framework for websites that caused such an impression that it quickly become the most followed project on Github ded link.

Its popularity is due mostly to the fact that it allows developers with weak design skills such as myself to quickly create an application that looks at worst adequate, and at best, quite attractive. I'm a huge fan.

Bootstrap also appeals to developers because it's implemented in Less, a CSS preprocessor written in Javascript that you can run in your browser, allowing a comfortable developer workflow and compatibility with sites written in Ruby, Python, PHP, or any other technology you can make web applications with.

@carcheky
carcheky / stopadobe.ps1
Created August 1, 2019 09:39
Stop all adobe shit process
# https://forums.adobe.com/thread/2621275
cd C:\Users\cmartinezv\Documents
# This will Stop the Services, and change the startup from Automatic to Manual - Opening Adobe Applications will start these services, without your interaction. If you have issues, you can manually start them by replacing Get-Service with Start-Service, or open the Services Panel with WindowsKey+R: "services.msc"
# Setting Startup to Manual only needs to be run once. Stopping the services needs to be done each time you exit application, if you don't want background services running. Such as Sync.
Get-Service -DisplayName Adobe* | Stop-Service
Get-Service -DisplayName Adobe* | Set-Service -StartupType Manual
@jsoma
jsoma / README.md
Last active December 17, 2022 02:54
Installing tweego and story-formats on OS X.

Installing tweego is a little more complicated than (I think) it should be, so here's a script to do it for you. If you'd like to one-line it, you can just cut and paste this in Terminal:

/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/jsoma/5ef3045b2004a610455f371479a6f0cf/raw/b6c9224faa18fd52f3e1bf7120af17eed6da8ec1/tweego.sh)"

Once it's installed, tweego docs are here. You'll probably want to read these twee docs, too.

@scarlac
scarlac / purge_advertisers.md
Last active June 7, 2021 09:36
Facebook Hack: Purge list of "Advertisers you've interacted with"

For those of you who want to remove all in “Advertisers and Businesses” / "Who uploaded a list with your info and advertised to it":

  1. Go to https://www.facebook.com/ads/preferences/?entry_product=ad_settings_screen and open the section "Advertisers you've interacted with"
  2. Collapse all sections but keep "Advertisers and Businesses" open
  3. Open Web Inspector
  4. Copy-paste this script to load all advertisers: smt=setInterval(() => {let x=document.querySelector('div[shade=medium]'); x ? x.click() : clearInterval(smt), console.log('done')}, 1000)
  5. It will output a number. Wait for it to say “done” in the console. This may take a long time. you'll notice the scrollbar changing while it's loading all advertisers.
  6. Copy-paste this and press enter:
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active July 1, 2024 15:26
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App
@xymox12
xymox12 / crawler.sh
Last active March 2, 2021 13:05
Convert a csv of URLs and Page Titles created using WGET to Freemind XML and UL list
#!/bin/bash
#
# Crawls a domain
# Retreives all visible URLs and their page titles
# Saves to CSV
# $1 = URL (no http(s))
# $2 = csv title
# MODIFY - wget include directories, domain, and --reject-regex TODO - make a variable
# Text color variables
@gfody
gfody / stations.ps1
Created January 29, 2017 03:29
Import Digitally Imported and SomaFM radio stations into MusicBee
$doc = [xml]'<opml version="2.0"><body/></opml>'
$body = $doc.selectSingleNode('//body')
# somafm.com channels..
foreach($ch in (irm http://somafm.com/channels.xml).selectNodes('//channels/*')) {
$x = $doc.createElement('outline')
$x.setAttribute('text', "SomaFM - $($ch.title.innerText)")
$x.setAttribute('description', $ch.description.innerText)
$x.setAttribute('category', "$($ch.genre)/AAC/128k/")
$x.setAttribute('type', 'link')
@zaccb
zaccb / install-choco-script.bat
Last active December 10, 2023 08:54
Chocolatey install script
:: Install choco .exe and add choco to PATH
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install all the packages
:::: Browsers
choco install googlechrome -fy
choco install firefox -fy
:::: Text editors / IDEs
choco install atom -fy