Skip to content

Instantly share code, notes, and snippets.

View tigefa4u's full-sized avatar
📉
🚀 😧 ☕ 🚬

Sugeng Tigefa tigefa4u

📉
🚀 😧 ☕ 🚬
View GitHub Profile
@jpillora
jpillora / search-example.json
Last active February 3, 2022 03:08
Torrent cloud search provider specification
{
"mininova": {
"name": "Mininova",
"type": "screen-scraper",
"list": {
"url": "http://www.mininova.org/search/{query}/seeds/{page}",
"items": ".maintable > tr",
"item": {
"name":"td:nth-child(3) > a:nth-child(2)",
"url":"td:nth-child(3) > a:nth-child(2)@href",
@BanzaiMan
BanzaiMan / .travis.yml
Created December 25, 2014 15:54
Test with Ruby 2.2.0 on Travis CI (until Ruby VM is updated)
language: ruby
before_install:
- rvm get stable
- rvm alias delete 2.2.0
- rvm use 2.2.0 --install
# … rest
@zhiephie
zhiephie / repo
Created November 27, 2014 19:23
List repository with backbone js
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Yudi Purwanto - Web Developer</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.1/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div class="profile"></div>
@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
@KhepryQuixote
KhepryQuixote / PyTorStemPrivoxy.md
Last active September 9, 2023 20:36
Python script to connect to Tor via Stem and Privoxy, requesting a new connection (hence a new IP as well) as desired.

Crawling Anonymously with Tor in Python

adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.

The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.

Tor

Install Tor.

@micw
micw / install_jenkins_plugin.sh
Last active August 11, 2023 06:14
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@inversion
inversion / Hide_Facebook_Like_News.user.js
Last active August 29, 2015 14:05
Hide Facebook News feed entries which are random posts from friends' liked pages. They are matched by looking for the 'Like Page' button within a news feed entry. Instructions for adding user scripts to Chrome here: http://stackoverflow.com/questions/5258989/manually-adding-a-userscript-to-google-chrome or for Firefox use Greasemonkey. It's prob…
// ==UserScript==
// @name Hide Facebook 'Like' News
// @namespace uk.me.amoss
// @include /https?://www.facebook.com/.*/
// @version 1
// @grant none
// ==/UserScript==
// Configurable
var indicateInsteadOfHiding = false;
@jasperf
jasperf / ubuntu-server-setup.md
Last active March 26, 2023 13:49
Ubuntu Server Setup History installing Apache, mysql, PHP, git, SSH, WordPress using Backup buddy backup #lamp #ubuntu #wordpress

Ubuntu Server Setup

Installing LAMP Stack

Update All sudo apt-get update

install apache and mysql

```sudo apt-get install apache2```
@joergpatz
joergpatz / apache-proxy-vhost
Last active February 4, 2016 21:27
apache-proxy-vhost
# Forward Proxy
<VirtualHost *:80>
ServerAdmin admin@localhost
RewriteEngine On
ProxyPreserveHost On
RewriteRule ^/(.*) http://<HOST-OR-IP>/$1 [P]
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
@hjue
hjue / gist:4da6b1e897de31d135f7
Last active December 28, 2015 18:11
Justwriting Apache conf
配置方法一:
<VirtualHost *:80>
DocumentRoot "/data/web/www.justwriting.com"
ServerName justwriting
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride ALL
Order deny,allow
Allow from all
</Directory>