Skip to content

Instantly share code, notes, and snippets.

View spac3unit's full-sized avatar

Denis spac3unit

View GitHub Profile
@spac3unit
spac3unit / public_key_decrypt_gpg_base64.go
Created July 12, 2017 03:57 — forked from jyap808/public_key_decrypt_gpg_base64.go
Decrypting a base64 GPG public key encrypted string using a passphrase protected private key in ASCII armor format
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
)
@spac3unit
spac3unit / README.md
Created July 12, 2017 05:04 — forked from eliquious/README.md
Golang OpenPGP examples

Building

go build -o goencrypt main.go

Generating Keys

@spac3unit
spac3unit / tumblr-tags
Created July 24, 2017 03:04 — forked from lucapette/tumblr-tags
get all the tags of a tumblr blog
#!/usr/bin/env ruby
require "json"
require "set"
require "net/http"
require 'uri'
def fetch(uri_str, limit = 10)
raise ArgumentError, 'HTTP redirect too deep' if limit == 0
@spac3unit
spac3unit / tor.py
Created August 11, 2017 07:09 — forked from jefftriplett/tor.py
Python Requests + Tor (Socks5)
"""
setup:
pip install requests
pip install requests[socks]
super helpful:
- http://packetforger.wordpress.com/2013/08/27/pythons-requests-module-with-socks-support-requesocks/
- http://docs.python-requests.org/en/master/user/advanced/#proxies
"""
@spac3unit
spac3unit / js-video-basic.css
Created August 30, 2017 13:01 — forked from jonsuh/js-video-basic.css
Responsive YouTube, Vimeo, Embed, and HTML5 Videos with CSS Usage
.js-video {
height: 0;
padding-top: 25px;
padding-bottom: 67.5%;
margin-bottom: 10px;
position: relative;
overflow: hidden;
}
.js-video.widescreen {
@spac3unit
spac3unit / sass-convert_from-sass-to-scss.sh
Created September 2, 2017 19:00 — forked from atelierbram/sass-convert_from-sass-to-scss.sh
Convert .sass syntax to .scss in terminal
# http://blog.teamtreehouse.com/the-absolute-beginners-guide-to-sass
# Enter the folder you want to convert in your terminal and type in:
sass-convert --from sass --to scss -R .
# where -R means recursively and . means the current directory.
@spac3unit
spac3unit / create-react-app-on-heroku.sh
Created September 8, 2017 16:31 — forked from mars/create-react-app-on-heroku.sh
Create a React app & deploy to Heroku
## Global install of the app generator
npm install -g create-react-app
## Setup the app (first-time only)
create-react-app my-app
cd my-app
git init
# Create the Heroku app; requires free account at https://www.heroku.com/
heroku create -b https://github.com/heroku/heroku-buildpack-static.git
@spac3unit
spac3unit / fiddle.css
Created September 15, 2017 22:39 — forked from digitalicarus/fiddle.css
React Animation: React Motion Clock
* {
box-sizing: border-box;
}
.clock-example {
display: -webkit-flex; /*safari*/
display: flex;
align-items: flex-start;
width: 300px;
justify-content: space-between;
@spac3unit
spac3unit / gist:0d1135e0e9d99b31fa195fac11c97d57
Created September 21, 2017 13:33 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master