Skip to content

Instantly share code, notes, and snippets.

@fissionchris
fissionchris / getBlockLists.sh
Created January 18, 2018 07:07 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
{
"color_scheme": "Packages/Agila Theme/Agila Oceanic Next.tmTheme",
"detect_indentation": false,
"enable_telemetry": "false",
"ensure_newline_at_eof_on_save": true,
"expand_tabs_on_save": true,
"font_face": "Menlo",
"font_options":
[
"subpixel_antialias"
@fissionchris
fissionchris / sublime-settings-osx.json
Created November 30, 2016 00:07 — forked from arvi/sublime-settings-osx.json
Sublime Settings OSX
{
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": ".",
"selector": "source.js"
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Color Scheme - Default/Tomorrow-Night-Eighties.tmTheme",
"file_exclude_patterns":
[
".DS_Store"
],
"folder_exclude_patterns":
[
"bin",
@fissionchris
fissionchris / sus.go
Created November 14, 2016 04:30 — forked from student020341/sus.go
Script to suspend a computer when there has been no user activity for 30 minutes and there is no media playing.
package main
import (
"os/exec"
"strconv"
"time"
)
//determine if the user has been idle for a certain amount of time
func deadTime() bool {
@fissionchris
fissionchris / setup.sh
Created May 16, 2016 22:12 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
#!/bin/bash
# This script resizes all the images it finds in a folder (and its subfolders) and resizes them
# The resized image is placed in the /resized folder which will reside in the same directory as the image
#
# Usage: > ./batch_resize.sh
initial_folder="/your/images/folder" # You can use "." to target the folder in which you are running the script for example
resized_folder_name="resized"
all_images=$(find -E $initial_folder -iregex ".*\.(jpg|gif|png|jpeg)")

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@fissionchris
fissionchris / gist:dad3415f2b100b410d8d
Last active August 29, 2015 14:14
html-redirect to other URL
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://example.com">
<script type="text/javascript">
window.location.href = "http://example.com"
</script>
<title>Page Redirection</title>
</head>
# ------------------------------------- #
# -------> MySQL Misc Tips <--------- #
# ------------------------------------- #
# -------------------------------------
# To get a list of MySQL users
# -------------------------------------
mysql> select user,host from mysql.user;