Skip to content

Instantly share code, notes, and snippets.

View ccaglayan's full-sized avatar
🎯
Focusing

Çağlar Çağlayan ccaglayan

🎯
Focusing
View GitHub Profile

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

import requests
import csv
from bs4 import BeautifulSoup
link = 'https://themeforest.net'
username = input("ThemeForest Username: ")
items = {}
i = 0
for page in range(1,8):
@ccaglayan
ccaglayan / ssh_auto_login.md
Created June 27, 2018 08:25
Terminal üstünden otomatik olarak login olmak için gerekli bash script

Öncelikle ubuntu için

  • sudo apt install sshpass
  • sudo nano /usr/local/bin/autologin

içine:

sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.COM

kaydettikten sonra

// geo-location shim
// currentely only serves lat/long
// depends on jQuery
;(function(geolocation){
if (geolocation) return;
var cache;
<?php
// Random Password Generator
function _RandomPasswordGenerator() {
// Create the meta-password
$sMetaPassword = "";
$CONFIG['security']['password_generator'] = array("C" => array('characters' =>
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 'minimum' => 4,
'maximum' => 6), "S" => array('characters' => "!@()-_=+?*^&", 'minimum' => 0,
<?php
$deg = 63;
$reduce = -4;
$space = 10;
$height = 30;
for( $x = 1; $x <= 32; $x++ ) {
printf( "#countries li:nth-child(%d) { -webkit-transform: rotate(%ddeg); }\r\n", $x, $deg);
$deg += $reduce;
<?php
require 'name_generator.php';
echo 'Random Name: '.name('boy');
?>
<?php
function whois($domain) {
// fix the domain name:
$domain = strtolower(trim($domain));
$domain = preg_replace('/^http:\/\//i', '', $domain);
$domain = preg_replace('/^https:\/\//i', '', $domain);
$domain = preg_replace('/^www\./i', '', $domain);
$domain = explode('/', $domain);
$domain = trim($domain[0]);