Skip to content

Instantly share code, notes, and snippets.

View saltyfireball's full-sized avatar
🏠
Working from home

saltyfireball

🏠
Working from home
View GitHub Profile
@saltyfireball
saltyfireball / delete-git-recursively.sh
Created July 14, 2017 12:57 — forked from facelordgists/delete-git-recursively.sh
Recursively remove .git folders
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf
@saltyfireball
saltyfireball / DevelopmentSoftware.md
Last active January 2, 2018 15:51
Development Tools on MAC or SAAS

Development Setup's and Software I use

Important Mac Tools

Application Name Description Link Cask
iTerm2 Better Terminal iterm2 brew cask install iterm2
Atom Better Editor Atom brew cask install atom
Launch Control launchd(8) manager Launch Control
Cryptomator Encryption cryptomator
Cyberduck FTP,SFTP,S3 + More. Cyberduck
@saltyfireball
saltyfireball / apache_ssl_301_rdr.example.conf
Created September 6, 2017 17:59
Apache SSL 301 Redirect
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
import turtle
import random
random.seed(42)
i=0
#file = open("emil.txt", "r")
#file = open("pi1000000.txt", "r")
file = open("sqrt2.txt", "r")
text=file.read()
pi = list(text)
pi = list(map(int, pi))
@saltyfireball
saltyfireball / functions.php
Created November 5, 2017 23:30 — forked from thecodepoetry/functions.php
Change sidebar position for woocommerce products for The7 -Mulltipurpose wordpress them
function change_sidebar_pos() {
$args = array (
'post_type' => 'product',
'post_per_page' => -1
);
query_posts( $args );
while ( have_posts() ) : the_post();

Show all hidden achievements


I use https://www.trueachievements.com a lot. I have had a pro account for a long time.

One thing that was very annoying to me is when I start a new game and the pages is filled with 40-50 "secret" achievements and I can't view the descriptions without clicking the "Show secret details" link for each achievement.

So I wrote this stupid loop using jQuery that I run in the console to click all the links for me.

It could be much improved but honestly, its not worth the time. I figured I would share this here because I know some people would like this.

@saltyfireball
saltyfireball / Brewfile
Created January 2, 2018 15:23
My Brew file (brew bundle dump) - Mac Development
tap "homebrew/dupes"
tap "homebrew/completions"
tap "homebrew/apache"
tap "homebrew/core"
tap "homebrew/php"
tap "homebrew/versions"
tap "homebrew/bundle"
tap "homebrew/services"
tap "goles/battery"
tap "caskroom/cask"
@saltyfireball
saltyfireball / README.md
Created January 18, 2018 04:14 — forked from hofmannsven/README.md
My simply Git Cheatsheet
<?php
function get_tls_version($sslversion = null)
{
$c = curl_init();
curl_setopt($c, CURLOPT_URL, "https://www.howsmyssl.com/a/check");
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
if ($sslversion !== null) {
curl_setopt($c, CURLOPT_SSLVERSION, $sslversion);
}
@saltyfireball
saltyfireball / django-runserver-ssl.md
Last active April 21, 2018 18:29 — forked from claudiosanches/django-runserver-ssl.md
Django - SSL with runserver

Instalation

brew install stunnel

Configuration

cd path/to/django/project