Skip to content

Instantly share code, notes, and snippets.

View oimtrust's full-sized avatar
🏠
Working From Home

F. Rohim (O'im) oimtrust

🏠
Working From Home
View GitHub Profile
@xiaolai
xiaolai / Install-Softwares-on-a-New-MacOS.md
Last active August 3, 2023 15:05
Install Softwares on a New MacOS (with M1 chip)

打开一个新的 Mac(iMac、Macbook 等等),即便你是新手,要第一个使用的,就是 Terminal 程序。

在新的 Mac 上打开 Terminal 程序的方法有以下几个:

  • 先点击 Dock 上的 Launchpad 图标 ,而后在搜索框里输入 Terminal,随后通过点击打开。
  • 在 Finder 程序里 ,打开 /Applications/Utilities 文件夹,双击里面的 Terminal 程序图标。
  • 使用快捷键 ⌘ + Space 呼出 Spotlight,输入 Terminal 而后按 键,即,Return 键。

我的 Terminal 刚打开的时候是这样的:

@ahmadrio
ahmadrio / .zshrc
Last active January 15, 2023 15:41
My config for zsh and implement for switch-php version in laravel valet
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/ahmadrio/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@jevhee
jevhee / CommentActivity.java
Created September 22, 2017 05:48
Create Facebook widget Comment android
package com.inagata.news.views.activity.comment;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.ActionBar;
@hygull
hygull / LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md
Last active December 16, 2023 19:30
LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@odan
odan / xmapp-replacing-mariadb-with-mysql.md
Last active June 4, 2023 19:44
XAMPP - Replacing MariaDB with MySQL

XAMPP - Replacing MariaDB with MySQL

This post has been deleted.

@EQuimper
EQuimper / clear.txt
Created June 16, 2017 16:17
React-Native clear Watchman + Cache
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
@frfahim
frfahim / oh-my-fish.md
Last active April 28, 2024 15:11
Install fish shell and oh-my-fish on ubuntu

First install fish shell on your system

sudo apt-get update
sudo apt-get install fish

Or install fish via ppa

sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update

sudo apt-get install fish``

@wojteklu
wojteklu / clean_code.md
Last active May 19, 2024 03:34
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@julionc
julionc / 00.howto_install_phantomjs.md
Last active April 26, 2024 09:13
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev