Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
I may respond next month.

moronkreacionz moronkreacionz

🤓
I may respond next month.
View GitHub Profile
@moronkreacionz
moronkreacionz / Args.ipynb
Created Sep 24, 2018 — forked from gbishop/Args.ipynb
Allow arguments to be passed to notebooks via URL or command line.
View Args.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View toggle-show-hide-code.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:2a298aa0aa90cb7df050c5e4dceba43e
## Build a docker image
- Make sure you are in the folder that contains the `Dockerfile`
- If your folder is `/my-docker-image-name/`, these 3 files should be in your folder:
...
/my-docker-image
|
|---Dockerfile
|---Readme.md
|---requirements.txt
@moronkreacionz
moronkreacionz / vimrc.file
Created Aug 28, 2018
Ideal configurations for VimRC
View vimrc.file
cat .vimrc
" ================ Turn on syntax highlighting
syntax on
" ================ For plugins to load correctly
filetype plugin indent on
" ================ Show line numbers
set number
@moronkreacionz
moronkreacionz / remote-rsyslog.go
Created Jul 13, 2016 — forked from giefferre/remote-rsyslog.go
Using a remote rsyslog in Golang
View remote-rsyslog.go
package main
import (
"log"
"log/syslog"
)
func main() {
logwriter, e := syslog.Dial("tcp","123.123.123.123:12345", syslog.LOG_DEBUG, "your.software.identifier")
if e != nil {
View focus-on-self-shell-script.txt
## ##
cat ~moronkreacionz/bin/focusonself
-- start
#!/bin/sh
cp -f /etc/hosts_backup_on.0 /etc/hosts_backup_on.1
cp -f /etc/hosts /etc/hosts_backup_on.0
cat /etc/template_blocking_hosts >> /etc/hosts
-- end
## ##
View Fail2Ban-all-status-check.txt
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
View gui+ssh.txt
cat ~/.ssh/config
Host 10.x.x.x
Compression yes
ForwardX11 yes
Ciphers blowfish-cbc,arcfour
@moronkreacionz
moronkreacionz / front-end-web-design-free-resources.txt
Created Feb 2, 2016
Font, Icons, Stock Photos - free resources
View front-end-web-design-free-resources.txt
Font, Icons, Stock Photos - free resources, everything else is free, and this link shall be updated regularly.
Follow the link: https://balapastudio.co/frontendlist/resources.php
Stock Photos
* Unsplash
* Gratisography
* Super Famous
* Moveast
* Travel Coffee Book
@moronkreacionz
moronkreacionz / awesome-collections.txt
Last active Feb 2, 2016
Curated List of Awesome Collections
View awesome-collections.txt
https://github.com/sindresorhus/awesome