Skip to content

Instantly share code, notes, and snippets.

View QGB's full-sized avatar
💭
unhappy=

Too large to fit in the margin QGB

💭
unhappy=
  • Please
  • Follow me
View GitHub Profile
@mbodo
mbodo / Tmux - Shortcuts & Cheatsheet.md
Last active April 1, 2022 17:11 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

Tmux -Shortcuts & Cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
File "/Users/mitsuhiko/Development/jinja2/tests/conftest.py", line 17, in <module>
from jinja2 import loaders
File "/Users/mitsuhiko/Development/jinja2/jinja2/__init__.py", line 80, in <module>
_patch_async()
File "/Users/mitsuhiko/Development/jinja2/jinja2/__init__.py", line 76, in _patch_async
from jinja2.asyncsupport import patch_all
File "/Users/mitsuhiko/Development/jinja2/jinja2/asyncsupport.py", line 13, in <module>
import asyncio
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/__init__.py", line 49, in <module>
from .unix_events import * # pragma: no cover
@ang-st
ang-st / tv.js
Created May 17, 2017 10:04
Trading view data
var util=require('util')
var WebSocketClient = require('websocket').client;
var client = new WebSocketClient();
var conn = null
var received = false
client.on('connectFailed', function(error) {
console.log('Connect Error: ' + error.toString());
});
# Copyright (c) The Open University, 2017
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# Custom bundler extensions API:
# http://jupyter-notebook.readthedocs.io/en/latest/extending/bundler_extensions.html
# Requires: _jupyter_bundlerextension_paths(), bundle()
# Based on: https://github.com/jupyter-incubator/dashboards_bundlers/
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@blaix
blaix / whatversionoftmuxamirunning.txt
Created August 18, 2017 17:44
I just wanted to know what version of tmux I'm running...
$ tmux --version
tmux: illegal option -- -
usage: tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name]
[-S socket-path] [command [flags]]
$ tmux --help
tmux: illegal option -- -
usage: tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name]
[-S socket-path] [command [flags]]
@JasonDemitri
JasonDemitri / Readme.md
Last active December 9, 2023 11:49
Kali Nethunter Install Notes - Nexus 7 (2013)

Kali Nethunter Install Notes - Nexus 7 (2013)

These are just notes ive made on my exact installation process here are some basic details

Basic Details

Device - Asus Nexus 7 (2013 WIFI)

Codename - Flo

@mayufo
mayufo / 验证中国身份证 前6位对应地区码
Created January 16, 2018 10:12
验证中国身份证 前6位对应地区码
var GB2260 = {
"110000": "北京市",
"110100": "北京市市辖区",
"110101": "北京市东城区",
"110102": "北京市西城区",
"110103": "北京市崇文区",
"110104": "北京市宣武区",
"110105": "北京市朝阳区",
"110106": "北京市丰台区",
"110107": "北京市石景山区",
@Reboare
Reboare / linux_net_tcp.py
Last active October 29, 2023 14:29 — forked from sp3c73r2038/linux_net_tcp.py
a toolkit Python script looking into /proc/net/tcp
# -*- coding: utf-8 -*-
import re
import sys
def process_file(procnet):
sockets = procnet.split('\n')[1:-1]
return [line.strip() for line in sockets]
def split_every_n(data, n):
@amrza
amrza / aria.sh
Created April 21, 2018 15:50
Download List of files with aria2
#!/bin/sh
aria2c --dir=./ --input-file=urls.txt --max-concurrent-downloads=1 --connect-timeout=60 --max-connection-per-server=16 --split=16 --min-split-size=1M --human-readable=true --download-result=full --file-allocation=none
date
# Now create this file in the same directory and paste all urls in it: urls.txt