Skip to content

Instantly share code, notes, and snippets.

View chroming's full-sized avatar
💭
I may be slow to respond.

chroming

💭
I may be slow to respond.
View GitHub Profile
@chroming
chroming / set-primary-monitor-pantheon-greeter
Created July 17, 2019 14:26 — forked from RyanMillerC/set-primary-monitor-pantheon-greeter
Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS
#!/bin/bash
#
# Created: 2017-07-02 16:20
# Updated: 2018-02-09 12:23
# Creator: Ryan Miller
# Website: http://devopsmachine.com/
# File: /usr/local/bin/set-primary-monitor-pantheon-greeter
#
# Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS.
#
@chroming
chroming / 软件备忘.md
Created March 18, 2019 13:41
个人对于(开源)软件的评价列表

软件备忘

Linux桌面发行版

根据多年(也不多)的折腾经验,考虑发行版

  • 首先考虑对软件包管理的喜好,与健壮的软件仓库
  • 其次考虑默认的桌面环境(默认的桌面环境往往优化、整合得更好)
  • 作为桌面系统,尽可能地不折腾

在此基础上,个人喜好为:

@chroming
chroming / gist:7f622e71e3f14d516c8b36ef2063fed1
Created December 18, 2017 19:58 — forked from Atem18/gist:4696071
Tutorial to seting up a django website in production.

Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn
@chroming
chroming / git_toturial
Last active May 18, 2017 06:17 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "[email protected]" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://[email protected]/VT.git # clone远程仓库
@chroming
chroming / emoji.plist
Created May 8, 2017 04:52 — forked from xhacker/emoji.plist
/System/Library/LinguisticData/RequiredAssets_zh.bundle/AssetData/emoji.plist in OS X 10.11 Copyright (C) Apple Inc.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>0</key>
<dict>
<key>emoji</key>
<array>
<string>0⃣️</string>
</array>
@chroming
chroming / 0_reuse_code.js
Created January 8, 2017 14:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chroming
chroming / Barcode Scanner.py
Created December 25, 2016 09:35 — forked from omz/Barcode Scanner.py
Barcode Scanner.py
# coding: utf-8
# Barcode scanner demo for Pythonista
# Based on http://www.infragistics.com/community/blogs/torrey-betts/archive/2013/10/10/scanning-barcodes-with-ios-7-objective-c.aspx
from objc_util import *
from ctypes import c_void_p
import ui
import sound
found_codes = set()
@chroming
chroming / pipista.py
Created April 11, 2016 14:45 — forked from pudquick/pipista.py
pipista - pip module (for installing other modules) for Pythonista
import os, os.path, sys, urllib2, requests
class PyPiError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
def _chunk_report(bytes_so_far, chunk_size, total_size):
if (total_size != None):