Skip to content

Instantly share code, notes, and snippets.

empireshades

Block or report user

Report or block empireshades

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NorikDavtian
NorikDavtian / .bash_aliases
Created May 31, 2017
Docker cleanup bash aliases
View .bash_aliases
# ~/.bash_aliases
# https://www.calazan.com/docker-cleanup-commands/
# Kill all running containers.
alias dockerkillall='docker kill $(docker ps -q)'
# Delete all stopped containers.
alias dockercleanc='printf "\n>>> Deleting stopped containers\n\n" && docker rm $(docker ps -a -q)'
# Delete all untagged images.
@wall72
wall72 / install_TensorFlow_on_Windows_10_Bash.md
Last active Jun 13, 2018
install TensorFlow on Windows 10 Bash (include graphiclib)
View install_TensorFlow_on_Windows_10_Bash.md

install TensorFlow on Windows 10 Bash (include graphiclib)

1. install packages

sudo apt-get update
sudo apt-get install -y --no-install-recommends \
        build-essential \
        libfreetype6-dev \
        libpng12-dev \
        libzmq3-dev \
@mattiaslundberg
mattiaslundberg / Ansible Let's Encrypt Nginx setup
Last active Jan 21, 2020
Let's Encrypt Nginx setup with Ansible
View Ansible Let's Encrypt Nginx setup
Ansible playbook to setup HTTPS using Let's encrypt on nginx.
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS.
The server pass A rating on [SSL Labs](https://www.ssllabs.com/).
To use:
1. Install [Ansible](https://www.ansible.com/)
2. Setup an Ubuntu 16.04 server accessible over ssh
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder)
@n8henrie
n8henrie / dbox_sync.py
Last active Dec 24, 2018
One-way sync of local directory to Dropbox using Dropbox API V2 and python3.
View dbox_sync.py
"""dbox_sync.py
One-way sync of local directory to Dropbox using Dropbox API V2 and python3.
Dependencies:
- dropbox (`pip3 install dropbox`)
Minimal modifications from:
https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py
@gigablah
gigablah / ansible-container.yml
Created Nov 11, 2015
Update Docker containers with Ansible
View ansible-container.yml
---
- name: Spin up a container
hosts: localhost
connection: local
gather_facts: False
sudo: False
vars:
base_image: gigablah/alpine-python
container_name: ansible_test
tasks:
@jamtur01
jamtur01 / ladder.md
Last active Jan 11, 2020
Kickstarter Engineering Ladder
@jwinder
jwinder / sonic-pi-tutorial.md
Last active Dec 30, 2018
Sonic Pi in-app tutorials concatenated - last synced 2018-07-17 - https://sonic-pi.net/tutorial - https://github.com/samaaron/sonic-pi
View sonic-pi-tutorial.md

⚠️ This gist will no longer be updated when changes occur to master. This tutorial can now be found here instead: https://sonic-pi.net/tutorial.

1 Welcome to Sonic Pi

Welcome friend :-)

Welcome to Sonic Pi. Hopefully you're as excited to get started making crazy sounds as I am to show you. It's going to be a really fun ride where you'll learn all about music, synthesis, programming, composition,

@shiffman
shiffman / recordinglist.md
Last active Sep 13, 2019
A list of ideas for #CodingRainbow Video topics: https://www.youtube.com/user/shiffman
View recordinglist.md
@straversi
straversi / bookmarklet.js
Created Jul 28, 2015
remove sidebar on reddit
View bookmarklet.js
javascript:(function()%7Bdocument.getElementsByClassName(%27side%27)%5B0%5D.style.display%3D%27none%27%3B%7D)()%3B
@nl5887
nl5887 / transfer.fish
Last active Jan 15, 2020
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
View transfer.fish
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
You can’t perform that action at this time.