This is my first gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import requests | |
| import threading | |
| import sys | |
| import json | |
| from queue import Queue | |
| from time import time | |
| target_url = '' # Must include get parameter for the original case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import matplotlib.pyplot as plt | |
| from random import random | |
| from time import time | |
| class Node : | |
| def __init__(self, val, nxt=None) : | |
| self.value = val | |
| self.next = nxt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import sys | |
| def check(queen, n, i) : | |
| for f in range(len(queen)) : | |
| if f == n or queen[f] == i: | |
| return False | |
| if f - queen[f] == n - i : | |
| return False | |
| if f + queen[f] == i + n: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _DEBUG_H | |
| #define _DEBUG_H | |
| #ifdef _DEBUG | |
| #define debug(fmt, args...) \ | |
| do { \ | |
| printf("%s %s %d: " fmt "\n", __FILE__, __FUNCTION__, __LINE__, ## args); \ | |
| } while (0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| trap ctrl_c INT | |
| function ctrl_c () { | |
| echo -e "\n\n[*] Exiting...\n" | |
| exit | |
| } | |
| for i in $(seq 1 255); do |
I hereby claim:
- I am aliasgwynplaine on github.
- I am gwynplaine (https://keybase.io/gwynplaine) on keybase.
- I have a public key ASAM2UU7lTSssX9W3t7-24sMTLj8PPF12ej0Qo_IgJDQLwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ $# -lt 2 ]; then | |
| echo "No args passed" | |
| echo "-s <src-folder>" | |
| exit 1 | |
| fi | |
| while getopts s:d: flag | |
| do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for file in *; do | |
| if [ -f "$file" ]; then | |
| filename=$(md5sum $file | cut -f 1 -d ' ') | |
| mv $file $filename | |
| echo $file >> $filename.names | |
| fi | |
| done |
OlderNewer