Skip to content

Instantly share code, notes, and snippets.

View derekbtw's full-sized avatar
🌎
Internet explorer

Derek Bytheway derekbtw

🌎
Internet explorer
View GitHub Profile
@derekbtw
derekbtw / _colors.scss
Last active March 5, 2019 13:38
CodyHouse Framework default colors as SCSS variables.
$color-primary-darker: #0940ae;
$color-primary-dark: #0c52df;
$color-primary: #2a6df4;
$color-primary-light: #5a8ef6;
$color-primary-lighter: #8baff9;
$color-accent-darker: #c70a1a;
$color-accent-dark: #f31224;
$color-accent: #f54251;
$color-accent-light: #f8727e;
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active May 22, 2024 08:34
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@sokhasen
sokhasen / LICENCE SUBLIME TEXT3
Last active November 1, 2023 13:18
Sublime Text 3.1.1 Serial key build is 3176
## Sublime Text 3.1.1 Serial key build is 3176
—– BEGIN LICENSE —–
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
@derekbtw
derekbtw / sanfrancisco-font.css
Created June 5, 2017 23:06
San Francisco Web Font
/**
* http://applemusic.tumblr.com/
* https://jsfiddle.net/xq56dmrh/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");
@lewebsimple
lewebsimple / dropdown-hover.js
Created March 20, 2017 23:53
[Bootstrap 4] Dropdown navbar menu on hover
// Dropdown navbar menu on hover
$('.dropdown-menu', this).css('margin-top', 0);
$('.dropdown').hover(function () {
$('.dropdown-toggle', this).trigger('click').toggleClass("disabled");
});
@citrusui
citrusui / dropdown.md
Last active May 15, 2024 01:34
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@tlewiscpp
tlewiscpp / gitrekt.sh
Created June 7, 2016 20:49
Bash shell script to clone repos
#!/bin/bash
userReply=""
GITHUB_DIR="/opt/GitHub"
GITHUB_URL="https://github.com/Pinguinsan"
GITHUB_ENDING=".git"
folderName=""
noFolderSpecifiedString="NONELOL"
function displayHelp() {
@lokhman
lokhman / ubuntu-hardening.md
Last active April 23, 2024 09:05
List of things for hardening Ubuntu

WARNING

May contain out of date information. Check the comments below!

The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

@vishalbasnet23
vishalbasnet23 / clonerepo.sh
Last active April 14, 2017 13:24
Cloning repo and installing WordPress and gitignore file.
#!/bin/bash
if [ "$#" -eq 1 ]; then
if [ -d "$1" ]; then
# Control will enter here if $DIRECTORY exists.
echo "Repository $1 already exists"
exit 0
fi
printf "Are you cloning empty repo \n 1. Yes \n 2. No \n"
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_enUS_EvaM]
@="Microsoft Eva Mobile - English (United States)"
"409"="Microsoft Eva Mobile - English (United States)"
"CLSID"="{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
"LangDataPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,53,\
00,70,00,65,00,65,00,63,00,68,00,5f,00,4f,00,6e,00,65,00,43,00,6f,00,72,00,\
65,00,5c,00,45,00,6e,00,67,00,69,00,6e,00,65,00,73,00,5c,00,54,00,54,00,53,\
00,5c,00,65,00,6e,00,2d,00,55,00,53,00,5c,00,4d,00,53,00,54,00,54,00,53,00,\