Skip to content

Instantly share code, notes, and snippets.

View kawa-kokosowa's full-sized avatar
🌴
On vacation

Kawa Kokosawa kawa-kokosowa

🌴
On vacation
View GitHub Profile
@johnko
johnko / _notes.md
Last active February 16, 2018 12:04
Experiments with FreeBSD on Intel Compute Stick

Experiments with FreeBSD on Intel Compute Stick

Ingredients

Acquire an Intel Compute Stick with Atom CPU and 2GB of RAM, 32GB of storage.

The product code I got is BOXSTCK1A32WFC.

You'll also need:

@funkatron
funkatron / bleach_strip.py
Created July 31, 2013 16:45
strip HTML using Bleach python lib
import bleach
def strip_html(html_str):
"""
a wrapper for bleach.clean() that strips ALL tags from the input
"""
tags = []
attr = {}
styles = []
strip = True
@0xBEEB
0xBEEB / gitnamechange.sh
Created June 29, 2015 22:09
Goes through a git projects history and changes the name on commits. I needed this after changing my name, and coming out as transgender in order to have my name show up correctly to the public.
# Goes through a git projects history and changes the name on commits
# I needed this after changing my name, and coming out as transgender
# in order to have my name show up correctly to the public.
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "Existing Dead Name" ];
then
GIT_AUTHOR_NAME="Authentic Name";
GIT_AUTHOR_EMAIL="your@email.com";
git commit-tree "$@";
@brandonpittman
brandonpittman / ToggleSpellcheck.vim
Last active November 18, 2022 12:59
Toggle spellcheck on/off in vim
" Toggle spellchecking
function! ToggleSpellCheck()
set spell!
if &spell
echo "Spellcheck ON"
else
echo "Spellcheck OFF"
endif
endfunction
@qoomon
qoomon / TravisGitHub.md
Last active August 6, 2023 04:59
Setup GitHub Deploy Keys For Travis
@BretFisher
BretFisher / .travis.yml
Created February 15, 2016 21:26
Travis-CI Docker Image Build and Push to AWS ECR
sudo: required #is required to use docker service in travis
language: php #can be any language, just php for example
services:
- docker # required, but travis uses older version of docker :(
install:
- echo "install nothing!" # put your normal pre-testing installs here
@benzittlau
benzittlau / Remove From Git By Extension
Created May 4, 2011 21:59
Remove all *.swp files from a git repository
git ls-files | grep '\.swp$' | xargs git rm
@shello
shello / randomEmoji.py
Last active October 5, 2023 09:16
Random Emoji! (for Python 3)
#!/usr/bin/env python3
from itertools import accumulate
from bisect import bisect
from random import randrange
from unicodedata import name as unicode_name
# Set the unicode version.
# Your system may not support Unicode 7.0 charecters just yet! So hipster.
UNICODE_VERSION = 6
@mpasternacki
mpasternacki / freebsd_on_mbp.md
Created January 23, 2015 17:12
FreeBSD on a MacBook Pro

FreeBSD on a MacBook Pro

Since 2008 or 2009 I work on Apple hardware and OS: back then I grew tired of Linux desktop (which is going to be MASSIVE NEXT YEAR, at least since 2001), and switched to something that Just Works. Six years later, it less and less Just Works, started turning into spyware and nagware, and doesn't need much less maintenance than Linux desktop — at least for my work, which is system administration and software development, probably it is better for the mythical End User person. Work needed to get software I need running is not less obscure than work I'd need to do on Linux or othe Unix-like system. I am finding myself turning away from GUI programs that I used to appreciate, and most of the time I use OSX to just run a terminal, Firefox, and Emacs. GUI that used to be nice and unintrusive, got annoying. Either I came full circle in the last 15 years of my computer usage, or the OSX experience degraded in last 5 years. Again, this is from a sysadmin/developer ki

@tsabat
tsabat / zsh.md
Last active December 25, 2023 19:16
Getting oh-my-zsh to work in Ubuntu