Skip to content

Instantly share code, notes, and snippets.

View lijinma's full-sized avatar

金马 lijinma

View GitHub Profile
@lijinma
lijinma / blast_any_spin.js
Last active December 3, 2023 12:22 — forked from ksaynice/blast_any_spin.js
Blast Airdrop Lucky/Twitter/Super Spin AUTO Scripts
const axios = {
get(url, { headers = {} }) {
return new Promise((resolve, reject) => {
const xhr = window.XMLHttpRequest
? new XMLHttpRequest()
: new ActiveXObject("Microsoft.XMLHTTP");
xhr.open("get", url);
xhr.withCredentials = true;
// Object.entries(headers).forEach(([key,value]) => xhr.setRequestHeader(key, value));
xhr.send(null);

Keybase proof

I hereby claim:

  • I am lijinma on github.
  • I am jinma (https://keybase.io/jinma) on keybase.
  • I have a public key ASBA3XL8cTF-2QTXhNy0ytdS7miSIyNq9q0Jh-aKSgLwQQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am lijinma on github.
* I am jinma (https://keybase.io/jinma) on keybase.
* I have a public key ASBA3XL8cTF-2QTXhNy0ytdS7miSIyNq9q0Jh-aKSgLwQQo
To claim this, I am signing this object:
{"sig":"9d66b4810599f10c4f581a9b2b2f7c94e3188cc49fa37e0532e5f74efca53cbb4c0f8fbfe26d2166579d402768176bc58a04072f5c1276a120f7a45f6c62e4fc0","msghash":"abb270f97dd113bbeae80af26dee0ba64ee6c5d37140f42173de077ec5bec462"}
@lijinma
lijinma / markdownhere.css
Last active June 19, 2017 02:55 — forked from xiaolai/markdownhere.css
markdown-here-css
.markdown-here-wrapper {
font-size: 16px;
line-height: 1.8em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
@lijinma
lijinma / firewall.sh
Created December 10, 2013 04:16 — forked from x1a0/firewall.sh
#! /bin/bash
# Set the default policies to allow everything while we set up new rules.
# Prevents cutting yourself off when running from remote SSH.
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# Flush any existing rules, leaving just the defaults
iptables -F
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@lijinma
lijinma / gist:4529198
Created January 14, 2013 10:38
The fix of issue when configuration cairo
Issue:
checking for pixman... no
configure: error: pixman >= 0.10.0 is required
(http://cairographics.org/releases/)
Fix:
Execute this command before you configure Cairo:
@lijinma
lijinma / bash_aliases
Created July 31, 2014 05:23 — forked from frdmn/bash_aliases
Nginx configuration
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist"
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist"
alias mysql.restart='mysql.stop && mysql.start'
alias nginx.logs.error='tail -250f /usr/local/etc/nginx/logs/error.log'
@lijinma
lijinma / Max sum of sub array
Last active August 29, 2015 14:04
Get max sum of sub array in a array
#include <iostream>
using namespace std;
int maxSumOfSubArray (int * array, int length)
{
int sum = 0;
int result = 0;
for (int index = 0; index < length; index ++) {
if (sum + array[index] > array[index]) {
sum = sum + array[index];