Skip to content

Instantly share code, notes, and snippets.

@nightsailer
nightsailer / agent loop
Created March 10, 2025 04:08 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@nightsailer
nightsailer / hubflow_workflow
Created February 22, 2019 00:48 — forked from truemagic-coder/hubflow_workflow
Hubflow Workflow
Git Hubflow Workflow:
Sync Branch:
git hf update - this will update master and develop and sync remote branches with local ones (be sure not to put commits into develop or master as it will push these up)
git hf push - this will push your commits in your local branch to the matching remote branch
git hf pull - this will pull the remote commits into your local branch (don't use if the remote branch has been rebased - use git pull origin "your-branch" instead)
Feature Branch:
gif hf feature start "my-feature" - this will create a feature branch on origin and local will be based off the latest develop branch (make sure to git hf update before or you will get an error if local develop and remote develop have divereged)
git hf feature finish "my-feature" - this will delete the local and remote branches (only do this after a PR has been merged)
@nightsailer
nightsailer / install-setup.txt
Created November 12, 2017 07:01 — forked from dropwhile/install-setup.txt
python serialization speed comparison
virtualenv --no-site-packages hodor
hodor/bin/pip install simplejson ujson cbor tnetstring msgpack-python
curl -s 'http://www.json-generator.com/api/json/get/cvfsLVmKiG?indent=2' > test.json
hodor/bin/python shootout.py
@nightsailer
nightsailer / bench_excel_writers.py
Created November 25, 2016 07:09 — forked from jmcnamara/bench_excel_writers.py
Benchmark of several Python Excel writing modules
##############################################################################
#
# Simple Python program to benchmark several Python Excel writing modules.
#
# python bench_excel_writers.py [num_rows] [num_cols]
#
#
import sys
from time import clock
#!/bin/bash
# disable RemoteDesktop
# OS X 10.8.2
# https://gist.github.com/3870057
home=$HOME
bk=$home/backup-remotedesktop-extentions
mkdir $bk

Git HubFlow Cheat Sheet

Preparing the repository

Create the repository on GitHub/Bitbucket. Once created, clone the created repository to your local machine using:

git clone [email protected]:username/repository.git

CD into the repository folder and run the init command to enable to hub flow tools:

cd repo_name
@nightsailer
nightsailer / Remove all git tags
Created November 14, 2015 09:32 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@nightsailer
nightsailer / 1.sh
Created October 11, 2015 07:33 — forked from kilfu0701/1.sh
Install python lxml ( MacOS )
# Change path '.../MacOSX10.9.sdk/...' to where your xcode.
export C_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2:$C_INCLUDE_PATH
pip install lxml
@nightsailer
nightsailer / gist:2857341
Created June 2, 2012 08:34 — forked from zythum/gist:2848881
google收录的敏感词
@nightsailer
nightsailer / gist:1885920
Created February 22, 2012 16:35 — forked from ezmobius/gist:807334
Run this script on a mac osx box running 10.6 and you will get a luajit with batteries included and all the good libs
#!/bin/bash
# have to hand install this one sorry http://www.cmake.org/files/v2.8/cmake-2.8.3-Darwin-universal.tar.gz
if [ "$1" == "cleanup" ]; then
echo "Cleaning up old luajit install"
cd /usr/local/share
sudo rm -rf lua luajit-2.0.0-beta6