Skip to content

Instantly share code, notes, and snippets.

@tesths
tesths / ins.rb
Last active April 3, 2018 04:06
A spide of instagram
require 'json'
require 'httparty'
require 'telegram/bot'
require 'byebug'
token = ''
bot = Telegram::Bot::Client.new(token)
def requestIns
@tesths
tesths / final.html
Created July 30, 2017 13:48
warriors
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('p').each(function(){
$(this).replaceWith('<p style="margin: 1.5em 15px !important;color: #898989;">'+$(this).html()+'</p>');
});
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(require 'package)
; (add-to-list 'package-archives '("melpa" . "http://elpa.emacs-china.org/melpa/"))
(add-to-list 'package-archives '("melpa-stable" . "http://elpa.emacs-china.org/melpa-stable/"))
(package-initialize)
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('h2').each(function(){
$(this).replaceWith('<h2 style="display:inline;width:100px;font-size: 20px;color: #42b983;"># </h2><h2 style="display:inline; width:100px;font-size: 20px;">'+$(this).html()+'</h2>');
});
@tesths
tesths / rvm.sh
Last active November 28, 2019 08:33
rvm
#fork from https://github.com/huacnlee/init.d
# export LC_ALL=zh_CN.UTF-8
# export LANGUAGE=zh_CN.UTF-8
# sudo locale-gen zh_CN.UTF-8
sudo apt-get -y install update
sudo apt-get -y install curl
echo "Install RVM"
echo "---------------------------------------------------------------------------"