Skip to content

Instantly share code, notes, and snippets.

View SecantZhang's full-sized avatar
🐟
Fish-touching

Secant SecantZhang

🐟
Fish-touching
View GitHub Profile
@NeverBehave
NeverBehave / README.md
Last active December 6, 2023 02:41
First 100,000 prime numbers in python

First 100,000 prime number

sometimes we are asked to calculate something with prime numbers in ctf, and a list of pre-calculated value may help speed up a bit.

Usage

from prime_number_100000 import prime_number_100000

>>> prime_number_100000()
@TysonRayJones
TysonRayJones / nvidia_gpu_on_osx.md
Last active April 4, 2024 14:45
How to connect an NVIDIA eGPU to OSX

Using an NVIDIA eGPU with OSX

Installation Instructions

Connecting the eGPU

Do not connect the eGPU to your Macbook until instructed.

@willmcneilly
willmcneilly / push_new_branch_to_remote.sh
Created January 20, 2014 15:24
Push a new local branch to remote
$ git checkout -b mynewfeature
$ git push -u origin mynewfeature
@petrushev
petrushev / nested.data.redis
Created August 9, 2013 09:07
example of storing nested data structures in redis
roomrate
========
{
'city': 'Berlin',
'hotel': 'Hilton',
'date': '2013-08-09'
'room_type': 'single',
'occupancy': 2,
'avail_count': 13,
'booked_count': 4,
@noonat
noonat / cube.mtl
Created August 8, 2011 02:10
Cube OBJ and MTL file
newmtl cube
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.0000 0.0000 0.0000
Kd 0.5880 0.5880 0.5880
Ks 0.0000 0.0000 0.0000