Skip to content

Instantly share code, notes, and snippets.

View hangingman's full-sized avatar
🦙

hangedman hangingman

🦙
  • Kanagawa, Japan
  • 08:45 (UTC +09:00)
View GitHub Profile
@sshymko
sshymko / install_mysql_client.sh
Last active December 17, 2024 21:17
Install MySQL 5.7 client on Amazon Linux 2
#!/bin/sh
sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum install -y mysql-community-client
@JunichiIto
JunichiIto / tokyogirlsrb-policy.md
Last active October 7, 2024 04:14
TokyoGirls.rb アンチハラスメントポリシー

TokyoGirls.rb アンチハラスメントポリシー

TokyoGirls.rbではアンチハラスメントポリシーを定めています。イベントに参加するみなさんは以下のポリシーを遵守するように心がけてください。

当ポリシーの目的と適用範囲

当ポリシーは、イベントの参加者全員が楽しく、安全に集える場を維持するために策定されました。

「参加者全員が楽しく、安全に集える場を維持する」という目的には、「将来開催されるイベントについてもみなさんが不安や心配を感じることなく、気軽に参加できること」も含まれています。

@tenpoku1000
tenpoku1000 / AC_2018-12-02_Intel-doc-links.md
Last active May 25, 2025 05:44
インテル関連ドキュメント・リンク集

MEDIAN OF MEDIANS

@berkayunal
berkayunal / ._ Loading variables from .env files in Ansible.md
Created January 16, 2018 20:42
Loading variables from .env files in Ansible

Loading variables from .env files in Ansible

Ansible has various ways of looking up data from outside sources, including plain text password files, CSV files and INI files. But it doesn't seem to have a lookup for .env files, as used in Laravel projects, also available for PHP, Ruby, Node.js, Python and others.

One option is to launch Ansible with the Ruby dotenv command line script... But that requires Ruby, which seems like overkill to me.

So here is a simpler solution that I use. It consists of:

  1. The .env file itself
  2. A small shell script that loads the .env file into environment variables - ansible-playbook.sh
@jacksonpradolima
jacksonpradolima / install_source-pro_font.sh
Last active January 15, 2025 23:29
Installing Adobe's Source Pro fonts in Ubuntu: Source Code Pro, Source Serif Prof, and Source Sans Pro
#!/bin/bash
mkdir /tmp/adodefont
cd /tmp/adodefont
mkdir -p ~/.fonts
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
unzip 1.050R-it.zip
cp source-code-pro-2.030R-ro-1.050R-it/OTF/*.otf ~/.fonts/
wget https://github.com/adobe-fonts/source-serif-pro/archive/2.000R.zip
@strobe
strobe / compile-emacs.sh
Last active December 2, 2024 06:15 — forked from ba0f3/compile-emacs.sh
Compile emacs 25.2 on CentOS 7.x
yum install gcc make ncurses-devel giflib-devel libjpeg-devel libtiff-devel
wget wget http://ftp.gnu.org/gnu/emacs/emacs-25.2.tar.xz
tar xJf emacs-25.2.tar.xz
cd emacs-25.2
./configure --without-x --without-selinux
make && sudo make install
@dmikurube
dmikurube / JRubyEnv.java
Last active May 29, 2020 23:28
JRuby and environment variables
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import org.jruby.RubyInstanceConfig;
import org.jruby.embed.LocalContextScope;
import org.jruby.embed.LocalVariableBehavior;
import org.jruby.embed.ScriptingContainer;
public class JRubyEnv {
@EmmanuelOga
EmmanuelOga / two_triangles.cpp
Last active August 26, 2021 22:12
Draw a couple of triangles: OpenGL Basic GLFW/VAO[VBO] setup.
// Local Headers
#include "glitter.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
#include <iostream>
#include <cstdio>
@mieki256
mieki256 / gosu_opengl_15.rb
Created March 12, 2017 02:00
Ruby+gosu+openglでVBOを使って描画する例。OpenGL 1.5風。
#!ruby -Ku
# -*- mode: ruby; coding: utf-8 -*-
# Last updated: <2017/03/12 10:27:17 +0900>
#
# Ruby + gosu + opengl の動作確認
# gosu-examples の opengl_integration.rb を弄ってOpenGL絡みの部分だけを列挙
#
# OpenGL 1.5風、VBOを使って書いてみるテスト
#
# 算譜記録帳: OpenGLでの頂点データの扱いの変化