Skip to content

Instantly share code, notes, and snippets.

View racklin's full-sized avatar

Rack Lin (阿土伯) racklin

View GitHub Profile
@racklin
racklin / Dockerfile
Created June 16, 2019 11:27
Docker / Debian China mirror
COPY sources.list /etc/apt/sources.list
COPY buster.list /etc/apt/sources.list.d/
@racklin
racklin / ubuntu-php-development-environment.md
Created December 3, 2018 00:16 — forked from DaRaFF/ubuntu-php-development-environment.md
Ubuntu php development environment

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup

@racklin
racklin / Microsoft.PowerShell_profile.ps1
Last active March 9, 2020 10:58
Development Environment for clear installed windows10
# Set-ExecutionPolicy RemoteSigned
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Agnoster
# vagrant
$ENV:VAGRANT_DEFAULT_PROVIDER = "vmware_desktop"
#
#!/usr/bin/env bash
# dotfiles utility - https://gist.github.com/Jamesits/9bc4adfb1f299380c79e
# Set $DOTFILES to where you want to put your dotfiles.
# then run dotfiles-init someSoftware,
# and it will move all files starting with `.someSoftware` to the correct location
# then link them back,
# Which will produce a directory structure like:
#
# $ tree -aL 2 ~/Dropbox/Code/config/dotfiles/
@racklin
racklin / install.md
Created May 3, 2018 12:24 — forked from hlb/Brewfile
clean install

System Preferences

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

# Set a blazingly fast keyboard repeat rate
@racklin
racklin / install-docker.sh
Created April 28, 2017 08:45 — forked from frgomes/install-docker.sh
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
@racklin
racklin / s3link-v4.php
Created April 14, 2017 17:21 — forked from kelvinmo/s3link-v4.php
PHP code to generate a pre-signed URL to access a restricted AWS S3 object
@racklin
racklin / install-apps.sh
Last active June 29, 2019 06:44
Mac Clean Install
#!/bin/bash
# install xcode command tool
xcode-select --install
# check
xcode-select -p
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@racklin
racklin / keybase.md
Created September 2, 2016 11:53
keybase.md

Keybase proof

I hereby claim:

  • I am racklin on github.
  • I am racklin (https://keybase.io/racklin) on keybase.
  • I have a public key whose fingerprint is 0F4C 716B 1F87 564D F7A2 2C6A 51F5 39E8 AF47 086A

To claim this, I am signing this object:

@racklin
racklin / config.m4
Created November 17, 2015 04:05
simple php extension using pcre
PHP_ARG_ENABLE(test1, whether to enable my extension,
[ --enable-test1 Enable my extension])
if test "$PHP_TEST1" = "yes"; then
AC_DEFINE(HAVE_TEST1, 1, [Whether you have my extension])
PHP_NEW_EXTENSION(test1, test1.c, $ext_shared)
PHP_ADD_EXTENSION_DEP(test1, pcre)
fi