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
-- Turkce isimler sozlugu twitter : http://twitter.com/baskindev | |
CREATE TABLE `isimler` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`isimler` varchar(255) DEFAULT NULL, | |
`cinsiyet` varchar(255) DEFAULT NULL COMMENT 'erkek : E , kadın : K , uniseks : U', | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB; | |
-- ---------------------------- |
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 | |
# | |
# chroot into a rootfs for the same architecture | |
# usage: sudo ./do_chroot rootdir | |
echo chrooting into $1 | |
mkdir -p $1/proc | |
mkdir -p $1/sys | |
mkdir -p $1/dev |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
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
function getSignature() { | |
//pretty basic function for testing | |
if ( startupChecks()) { return; } | |
var email = SpreadsheetApp.getActiveSpreadsheet().getActiveCell().getValue().toString(); | |
if ( email === "" ) { | |
Browser.msgBox("No email selected", "Please select a cell containing a user's email" , Browser.Buttons.OK); | |
return; | |
} | |
var result = authorisedUrlFetch(email, {}); | |
Browser.msgBox(result.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
2012/08/21 10:41:40 took 1.831589s (9 ns/op) to try 'a' for index 0 | |
2012/08/21 10:41:42 took 1.812426s (9 ns/op) to try 'b' for index 0 | |
2012/08/21 10:41:45 took 1.816416s (9 ns/op) to try 'c' for index 0 | |
2012/08/21 10:41:48 took 1.82774s (9 ns/op) to try 'd' for index 0 | |
2012/08/21 10:41:50 took 1.814831s (9 ns/op) to try 'e' for index 0 | |
2012/08/21 10:41:53 took 1.825167s (9 ns/op) to try 'f' for index 0 | |
2012/08/21 10:41:56 took 1.858311s (9 ns/op) to try 'g' for index 0 | |
2012/08/21 10:41:59 took 1.818296s (9 ns/op) to try 'h' for index 0 | |
2012/08/21 10:42:02 took 1.883082s (9 ns/op) to try 'i' for index 0 | |
2012/08/21 10:42:04 took 1.834942s (9 ns/op) to try 'j' for index 0 |
I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):
For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.
- get both the git and github plugin
- http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
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/bash | |
# | |
#: Title : updateVboxExt | |
#: Date Created: Fri May 13 13:54:26 PDT 2011 | |
#: Last Edit : Fri May 13 14:34:37 PDT 201 | |
#: Author : please_try_again | |
#: Version : 1.0 | |
#: Description : Install or update VirtualBox Extension pack | |
pkg_sit="http://download.virtualbox.org/virtualbox/" |
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
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
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
function showFolderInSite() { | |
var done = false; | |
// The while loop and try - catch statement are used to automatically retry if | |
// there's an issue during the execution (common issue: SitesApp: Internal error). | |
while (!done) { | |
try { | |
var files = DocsList.getFolderById('0B_F4bEJWqt_VRnUzRElES2JoMXM').getFiles(); | |
var page = SitesApp.getPageByUrl('https://sites.google.com/a/bil.omu.edu.tr/belge/a'); | |
var listItems = page.getListItems(); |