This file contains 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
#!/etc/bash | |
#jenkins.stable.sh | |
wget -q -O - http://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - | |
echo "deb http://pkg.jenkins.io/debian-stable binary/" | sudo tee -a /etc/apt/sources.list.d/jenkins.list | |
sudo apt-get update | |
sudo apt-get install -y jenkins |
This file contains 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
#!/etc/bash | |
wget -q -O - http://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - | |
echo "deb http://pkg.jenkins.io/debian binary/" | sudo tee -a /etc/apt/sources.list.d/jenkins.list | |
sudo apt-get update | |
sudo apt-get install -y jenkins |
This file contains 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
uses | |
iOSapi.Foundation, iOSapi.MediaPlayer, FMX.Platform.iOS; | |
Type | |
TForm1 = Class( TForm ) | |
Procedure FormCreate( Sender: TObject ); | |
Private |
This file contains 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
<?php | |
$handle = fopen("http://www.youseeme.com/bi/m/api/save/todata3.json", "rb"); | |
$result = stream_get_contents($handle); | |
fclose($handle); | |
$data = json_decode($result, true); | |
$keys = array_keys($data[0]); | |
echo '<table class="dataintable">'; | |
echo "<tr>"; | |
foreach ($keys as $k) | |
{ |
This file contains 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
unit ListviewHelper; | |
interface | |
uses System.SysUtils, Vcl.ComCtrls; | |
type | |
TListviewHelper = class helper for TListview | |
public | |
procedure SetRowCount(Count: Integer; Compacted: Boolean = False); |
This file contains 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 | |
######################################### | |
#Function: auto_iptables | |
#Usage: bash auto_iptables.sh | |
#Author: melice | |
#Version: 1.0 | |
#Origin: vpser.net | |
# for ubuntu only | |
######################################### |
This file contains 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 | |
######################################### | |
#Function: install_nginx | |
#Usage: bash install_nginx.sh | |
#Author: melice | |
#Version: 1.0 | |
######################################### | |
wget http://nginx.org/keys/nginx_signing.key | |
sudo apt-key add nginx_signing.key |
This file contains 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 | |
######################################### | |
#Function: auto fdisk | |
#Usage: bash auto_fdisk.sh | |
#Author: Customer service department | |
#Company: Alibaba Cloud Computing | |
#Version: 3.0 | |
######################################### | |
count=0 |
This file contains 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
package com.ifreestudio.olympic.servlet; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains 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
procedure TfrmMain.DomImg2Image(wb:TWebBrowser); | |
var | |
i:Integer; | |
rang:IHTMLControlRange; | |
s:string; | |
begin | |
try | |
s := (IHTMLDocument2(wb.Document).images.item('pic',EmptyParam) as IHTMLElement).getAttribute('src',0); | |
rang:=((IHTMLDocument2(wb.Document).body as HTMLBody).createControlRange)as | |
IHTMLControlRange; |