Skip to content

Instantly share code, notes, and snippets.

@facelordgists
facelordgists / .htaccess
Last active December 16, 2015 06:48
APACHE: htaccess snippets
# This is also a useful list:
# https://gist.github.com/ScottPhillips/1721489
# ======================================================================
# Wordpress ReWrites
# ======================================================================
#wp/index.php/category/the-topic > blog/category/the-topic
#category rewrite
@csaez
csaez / ricerocks.py
Created June 15, 2013 10:10
Interactive Programming in Python - Mini-project #8 - "RiceRocks" (Asteroids)
# Mini-project #8 - "RiceRocks" (Asteroids)
#
# 'Introduction to Interactive Programming in Python' Course
# RICE University - coursera.org
# by Joe Warren, John Greiner, Stephen Wong, Scott Rixner
import simplegui
import math
import random
@facelordgists
facelordgists / wp-rename-theme-in-db.sql
Created June 27, 2013 21:24
WORDPRESS: Rename Wordpress theme in the mySQL database
SELECT *
FROM bl0g_options
WHERE option_name = 'stylesheet'
OR option_name = 'current_theme'
LIMIT 0 , 30
@kendellfab
kendellfab / goto-sublime
Created August 1, 2013 20:53
Add mouse click `goto definition` in sublime text 3.
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
anonymous
anonymous / info post
Created August 9, 2013 05:01
post describing secure email like messaging
Changing email providers does not solve the problem. Email is ***NOT usually*** encrypted at the protocol level. It is very likely better to just stick with Gmail sadly enough.
The only real resolution is to:
1. Never send sensitive information over traditional email without TNO PIE ([GnuPG](https://en.wikipedia.org/wiki/GNU_Privacy_Guard) or GPG).
This is extremely dangerous because:
1. Most services do not offer secure SMTP
1. Secure SMTP is vulnerable to downgrade attacks.
1. Use a secure, anonymous and decentralized alternative such as I2P-Bote or Bitmessage.
@RIAEvangelist
RIAEvangelist / Install Cloud9 on local or remote computer, server, or raspberry pi
Last active June 6, 2023 03:37
This gist will help you install Cloud9 on your local or remote computer, server, or even your raspberry pi. Many people are having issues at the time of this Gist's creation.
Complete installation process:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev
sudo apt-get update
sudo apt-get upgrade
cd ~
mkdir git
cd ~/git
@kylemanna
kylemanna / connmanctl.md
Last active July 29, 2025 14:50
Connmanctl Cheat Sheet
@facelordgists
facelordgists / .gitignore_global
Created December 2, 2013 22:40
Git Ignore File
.sass-cache/*
codekit-config.json
codekit-config.json
*.sublime-project
*.sublime-workspace
sftp-config.json
*.esproj
.DS_store
@thoop
thoop / .htaccess
Last active November 13, 2024 20:20
Official prerender.io .htaccess for Apache.
# Change YOUR_TOKEN to your prerender token
# Change http://example.com (at the end of the last RewriteRule) to your website url
<IfModule mod_headers.c>
RequestHeader set X-Prerender-Token "YOUR_TOKEN"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
@thoop
thoop / nginx.conf
Last active May 27, 2025 07:08
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;