Skip to content

Instantly share code, notes, and snippets.

View Alirezaies's full-sized avatar
Busy

Sadegh Alirezaie Alirezaies

Busy
View GitHub Profile
@eteamin
eteamin / insta_hack.py
Last active September 21, 2017 22:26
from __future__ import print_function
import itertools
import argparse
import random
import threading
import subprocess
import time
try:
@Alirezaies
Alirezaies / gh-activity.py
Last active June 3, 2017 16:28
Get The Latest Activity Of A User In Github
#!/usr/bin/python3
# -*- Coding:utf-8 -*-
from xml.dom import minidom
import urllib.request
def activity(username):
"""This Function Returns Latest Activity Of A User In Github"""
xml_str = urllib.request.urlopen('https://github.com/%s.atom' %(username)).read()
pkgname=mutter
pkgver=3.24.1+2+gbb481fafd
pkgrel=1
pkgdesc="A window manager for GNOME"
url="https://git.gnome.org/browse/mutter"
arch=(i686 x86_64)
license=(GPL)
depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas
libcanberra startup-notification zenity libsm gnome-desktop upower
libxkbcommon-x11 gnome-settings-daemon libgudev libinput)
@nl5887
nl5887 / transfer.fish
Last active March 22, 2022 09:07
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@bacher09
bacher09 / demo.py
Created September 17, 2014 17:58
Pyramid auth example
import os
import logging
from pyramid.config import Configurator
from pyramid.events import NewRequest
from pyramid.events import subscriber
from pyramid.events import ApplicationCreated
from pyramid.httpexceptions import HTTPFound
from pyramid.session import UnencryptedCookieSessionFactoryConfig
from pyramid.authentication import AuthTktAuthenticationPolicy
@larrybotha
larrybotha / A.markdown
Last active October 24, 2023 21:26
Merge wiki updates that are on a fork of your repo.

Merge Wiki Changes From A Forked Github Repo

This is inspired (or basically copied) from How To Merge Github Wiki Changes From One Repository To Another, by Roman Ivanov, and serves to ensure that should something happen to the original article, the information remains nice and safe here.

Terminology

OREPO: original repo - the repo created or maintained by the owner

FREPO: the forked repo that presumably has updates to its wiki, not yet on the OREPO

@Atem18
Atem18 / gist:4696071
Last active April 19, 2024 11:18 — forked from evildmp/gist:3094281
Tutorial to seting up a django website in production.

******************************************************************** Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor********************************************************************

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn