This file contains hidden or 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
| 1. `curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew` | |
| 2. chmod +x phpbrew | |
| 3. phpbrew init | |
| 4. `phpbrew install -j 8 7.1.27 +default +dbs +intl` | |
| ``` | |
| configure: error: Please reinstall the BZip2 distribution | |
| Please checkout the build log file for more details: | |
| tail /Users/xx/.phpbrew/build/php-7.1.27/build.log | |
| ``` |
This file contains hidden or 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
| var token = ""; // fill your legacy token from https://api.slack.com/custom-integrations/legacy-tokens | |
| var city_id = "130010"; // change your city id from http://weather.livedoor.com/weather_hacks/webservice | |
| function myFunction() { | |
| var response = UrlFetchApp.fetch("http://weather.livedoor.com/forecast/webservice/json/v1?city="+city_id); | |
| if (response.getResponseCode() != 200) { | |
| return false; | |
| } | |
| var json = JSON.parse(response.getContentText()); |
This file contains hidden or 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
| client.on_timeline_status do |status| | |
| if status.media? | |
| status.media.each { |m| | |
| puts m.media_uri | |
| } | |
| end | |
| end |
This file contains hidden or 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
| #!/usr/bin/perl | |
| use utf8; | |
| use strict; | |
| use warnings; | |
| use Encode 'decode'; | |
| use Encode 'encode'; | |
| use JSON qw(encode_json); | |
| my $dir = $ARGV[0]; |
This file contains hidden or 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/sh | |
| post () { | |
| while read i | |
| do | |
| echo $i | grep -q "403" | |
| if [ $? = "0" ];then | |
| echo $i; | |
| fi | |
| done |
This file contains hidden or 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
| { Type = PackageType; | |
| Identifier = com.apple.package-type.mach-o-dylib; | |
| Name = "Mach-O Dynamic Library"; | |
| Description = "Mach-O dynamic library"; | |
| DefaultBuildSettings = { | |
| EXECUTABLE_PREFIX = ""; | |
| EXECUTABLE_SUFFIX = ""; | |
| EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; | |
| EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; | |
| }; |
This file contains hidden or 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
| { Type = ProductType; | |
| Identifier = com.apple.product-type.library.dynamic; | |
| Class = PBXDynamicLibraryProductType; | |
| Name = "Dynamic Library"; | |
| Description = "Dynamic library"; | |
| IconNamePrefix = "TargetPlugin"; | |
| DefaultTargetName = "Dynamic Library"; | |
| DefaultBuildProperties = { | |
| FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)"; | |
| MACH_O_TYPE = "mh_dylib"; |
This file contains hidden or 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
| void setState(BOOL enable) // required; called when user presses toggle button | |
| { | |
| if (enable) // toggle is disabled, so enable it | |
| { | |
| char hostname[256]; | |
| int hostname_length=30; | |
| gethostname(hostname,hostname_length); | |
| NSLog(@"%s",hostname); | |
| NSString *str =[NSString stringWithUTF8String:hostname]; | |
| av = [[UIAlertView alloc] initWithTitle:@"yourhost" message:str delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; |
This file contains hidden or 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
| javascript:(function() {var a = 0; var b = 0;b = document.getElementsByName('rikunabiCd'); for (a = 0; a < b.length; a++) { b[a].value='username'};b = document.getElementsByName('password'); for (a = 0; a < b.length; a++) { b[a].value='password'};})() |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #define ARRAYINT 10000 | |
| int main(){ | |
| int array[ARRAYINT]; | |
| int i=0; | |
| int ran,ran2; | |
| int tmp =0,; | |
| int j=0; |