Skip to content

Instantly share code, notes, and snippets.

View hnguyentt's full-sized avatar
:octocat:
Peace :)

Pi π hnguyentt

:octocat:
Peace :)
View GitHub Profile
@rnbguy
rnbguy / wificity_login.sh
Last active September 8, 2021 09:42
bypass WifiCity(CIUP WiFi) Captive Portal
#!/bin/bash
# https://wiki.archlinux.org/index.php/NetworkManager#Captive_portals
# README : make sure these binaries are available on your distribution.
# curl sed
login_wificity() {
# wificity authentication server
authserver="http://10.254.0.254:1000"
@paladin3895
paladin3895 / eyewiki.crawler.py
Last active April 11, 2020 08:39
eyewiki.crawler.py
import scrapy
import re
class Crawler(scrapy.Spider):
name = 'crawler'
start_urls = ['https://eyewiki.org/Main_Page']
base_url = 'https://eyewiki.org/'
def parse(self, response):
SET_SELECTOR = '.CategoryTreeSection'
@PatWalters
PatWalters / split_complex_v2.py
Created October 2, 2018 01:20
An improved script to extract a ligand from a protein-ligand complex and assign bond orders
#!/usr/bin/env python
import sys
from prody import *
from rdkit import Chem
from rdkit.Chem import AllChem
from io import StringIO
import pypdb
@PatWalters
PatWalters / split_complex.py
Last active August 30, 2024 14:57
Split a protein-ligand complex into protein and ligands and assign ligand bond orders using SMILES strings from Ligand Expo
#!/usr/bin/env python
# Split a protein-ligand complex into protein and ligands and assign ligand bond orders using SMILES strings from Ligand Export
# Code requires Python 3.6
import sys
from prody import *
import pandas as pd
from rdkit import Chem
from rdkit.Chem import AllChem
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active December 9, 2025 02:53
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 30, 2025 16:27
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@opieters
opieters / gallery_creator.py
Last active July 24, 2025 16:49
Python script to generate configuration for a lightGallery photo gallery in Jekyll.
@rxaviers
rxaviers / gist:7360908
Last active December 10, 2025 16:26
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: