Skip to content

Instantly share code, notes, and snippets.

KEINOS KEINOS

Block or report user

Report or block KEINOS

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
@yume-yu
yume-yu / CardStyleView_inGoogleResult.user.js
Last active Jun 20, 2019
Card style View in Google result for Tampermonkey
View CardStyleView_inGoogleResult.user.js
// ==UserScript==
// @name Card style View in Google result
// @namespace https://twitter.com/yume_yu
// @homepage https://github.com/yume-yu/CardStyleView-in-GoogleResult
// @supportURL https://twitter.com/yume_yu
// @version 0.5
// @description This scripts add cardView to your GoogleSearchResult.
// @author @yume_yu
// @match https://www.google.com/search*
// @match https://www.google.co.jp/search*
View mastodon set up with Rails Generator
class MastodonSetUpGenerator < Rails::Generators::Base
desc "Set up Mastodon at once."
class_option :redis_host, type: :string, default: "localhost", desc: "Path for redis server"
class_option :redis_port, type: :numeric, default: 6379, desc: "Port for redis server"
class_option :redis_password, type: :string, default: "" , desc: "redis password"
class_option :redis_db, type: :numeric, default: 0, desc: "redis db path"
class_option :redis_url, type: :string, aliases: "-R", desc: "Set redis options like redis://password@host:port/path"
class_option :db_host, type: :string, default: "/var/run/postgresql", desc: "ip address or Unix domain socket path for PostgreSQL"
class_option :db_user, type: :string, default: "mastodon", desc: "PostgreSQL user"
@rob-smallshire
rob-smallshire / macOS-in-virtualbox.md
Last active Oct 27, 2019
Notes on getting macOS Sierra running in Virtualbox on a Windows 10 host
View macOS-in-virtualbox.md

On Mac

Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at /Applications/Install\ macOS\ Sierra.app/.

Now run the following commands to build a suitable VM image from the installer:

git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer
sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .
@akihikodaki
akihikodaki / mastodon.te
Last active Apr 18, 2018
A SELinux policy module for Mastodon
View mastodon.te
policy_module(mastodon 1.1.2)
require {
attribute file_type;
attribute httpdcontent;
attribute port_type;
class dir {read search write};
class netlink_route_socket {bind create getattr nlmsg_read read write};
class process execmem;
@maglietti
maglietti / gistColaboration.md
Created Aug 21, 2015
How to collaborate on a gist
View gistColaboration.md

To colaborate on a gist:

  1. Clone your gist repo locally
  2. Add your friend’s fork as a remote e.g. if your friend is named Cindy: git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310
  3. Fetch your friend’s commits: git fetch cindy/master
  4. Merge your friend’s changes into your repo: git merge cindy/master
  5. Push the changes back to GitHub: git push origin/master
@noonat
noonat / coreos-virtualbox.md
Last active Oct 29, 2019
Installing CoreOS on VirtualBox
View coreos-virtualbox.md
  • Download and install VirtualBox.
  • Download the CoreOS ISO
  • Create a new VM in VirtualBox
    • For the OS, Other Linux, 64-bit should be fine
    • Give the VM 1gb of memory, like your physical hardware has.
    • Create a disk of whatever size you want. I made a VMDK file that could expand dynamically up to 8gb.
  • Mount the ISO in the VM
    • Right click on the VM and click settings
    • Go to the storage tab
@rxaviers
rxaviers / gist:7360908
Last active Nov 14, 2019
Complete list of github markdown emoji markup
View gist:7360908

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@andyferra
andyferra / github.css
Created Apr 30, 2012
Github Markdown CSS - for Markdown Editor Preview
View github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@rodneyrehm
rodneyrehm / mb_range.php
Created Oct 22, 2011
PHP: mb_range() - Unicode compatible range('A', 'Z')
View mb_range.php
<?php
mb_internal_encoding('UTF-8');
/**
* multibyte string compatible range('A', 'Z')
*
* @param string $start Character to start from (included)
* @param string $end Character to end with (included)
* @return array list of characters in unicode alphabet from $start to $end
You can’t perform that action at this time.