Skip to content

Instantly share code, notes, and snippets.

View omarowns's full-sized avatar

Omar Garcia omarowns

  • Cratebind
  • Mexico
View GitHub Profile
@omarowns
omarowns / nintendo_block_list
Created October 8, 2021 05:03
Host list of nintendo domains to block
95.216.149.205 conntest.nintendowifi.net
95.216.149.205 ctest.cdn.nintendo.net
95.216.149.205 90dns.test
0.0.0.0 nintendo.com
0.0.0.0 nintendo.net
0.0.0.0 nintendo.jp
0.0.0.0 nintendo.co.jp
0.0.0.0 nintendo.co.uk
0.0.0.0 nintendo-europe.com
@omarowns
omarowns / glasses.xml
Created May 6, 2019 21:38
An experimental configuration for emulating a Spectacle-like keyboard shortcuts for OpenBox
<keyboard>
<!-- Left Half -->
<keybind key="W-A-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>100%</height>
<width>50%</width>
</action>
@omarowns
omarowns / README.md
Last active February 11, 2019 16:53 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

Keybase proof

I hereby claim:

  • I am omarowns on github.
  • I am omarowns (https://keybase.io/omarowns) on keybase.
  • I have a public key whose fingerprint is 52D0 D8DE 1E57 299F 4290 0E0C C0E5 1F81 491A C692

To claim this, I am signing this object:

class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render json: user.as_json(auth_token: user.authentication_token, email: user.email), status: :created
return
else
#!/usr/bin/env python
import spidev
import time
def write(value, cs):
""""
#Set chipSelect HIGH
GPIO.output(cs, True)
#Set clock LOW
GPIO.output(clock, False)
@omarowns
omarowns / magpi.sh
Last active August 18, 2021 09:06
Bash script to download all issues of The MagPi.
#!/bin/bash
MAGPPI_URL="https://www.raspberrypi.org/magpi-issues/"
function get_issues() {
curl $MAGPI_URL | grep "\"MagPi\d\d\.pdf\"" | grep -o "MagPi\d\d.pdf" | uniq > /tmp/magpi_issues.list
}
function download() {
cat issues.list | xargs printf "https://www.raspberrypi.org/magpi-issues/%s\n" $1 | xargs wget
}
@omarowns
omarowns / .gitignore
Last active December 17, 2015 01:39
A collection of very very very basic file configurations for my ruby projects. LVL: n00b
# Ignore bundler config
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp