Skip to content

Instantly share code, notes, and snippets.

View cre8ivejp's full-sized avatar

Alessandro Yuichi Okimoto cre8ivejp

  • CyberAgent, Inc.
  • Tokyo
  • 02:27 (UTC +09:00)
View GitHub Profile
@missing233
missing233 / 70-flets-cross-dhcpv6-renew
Last active July 18, 2024 02:12
DHCPv6 script for NTT Flet's Hikari Cross
#!/bin/sh
# Place in /etc/hotplug.d/iface/
[ "$INTERFACE" = "wan6" ] || exit 0
CRON_CMD='0 * * * * kill -SIGUSR1 $(pgrep odhcp6c)'
if [ "$ACTION" = "ifup" ]; then
grep -Fq "$CRON_CMD" /etc/crontabs/root || {
echo "$CRON_CMD" >> /etc/crontabs/root
@tarunbhardwaj
tarunbhardwaj / move-google-datastore.py
Created April 24, 2017 17:24
Move Google datastore data to different project or to different account
# -*- coding: utf-8 -*-
"""
move_google_datastore
Move google datastore data to different project / different account.
:license: MIT
"""
from google.cloud import datastore
from google.cloud.datastore.entity import Entity
@frgomes
frgomes / install-docker.sh
Last active June 6, 2021 18:52
Debian - install docker in Debian Jessie
#!/bin/bash
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@minazou67
minazou67 / howto-upgrade-debian-jessie-kernel.md
Last active August 13, 2019 18:13
How to upgrade the Linux Kernel of debian 8 jessie

How to upgrade the Linux Kernel of debian 8 jessie

Debian 8 のカーネルをアップグレードする方法です。

Environment

  • Microsoft Windows Server 2012 R2
  • Hyper-V
  • Debian 8.2 jessie
@suwhs
suwhs / gradle.md
Last active January 4, 2021 22:17
5 steps for bintray-upload build.gradle (for jcenter)

add bintray and maven plugin to buildscript dependencies (project's build.gradle)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.2'
 classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' // ADD THIS LINE
@tshrkmd
tshrkmd / styles_noactionbar.xml
Last active November 3, 2022 09:58
Theme.AppCompat.Light.NoActionBar
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item> <!-- For 2.x version -->
</style>
</resources>
@ronkorving
ronkorving / ios6-timers.js
Last active March 9, 2022 03:40
iOS6 webkit timer bug workaround
(function (window) {
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise
// that it works, or that I will provide support (don't sue me).
// Author: rkorving@wizcorp.jp
var timeouts = {};