Skip to content

Instantly share code, notes, and snippets.

@levi730
levi730 / foowin.js
Created July 15, 2011 03:31
how to do subwindow with nav using struct
/**
* Appcelerator Titanium Platform
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
**/
// Code is stripped-down version of Tweetanium, to expose new structure paradigm
(function(){
S.ui.createFooWin = function(){
@levi730
levi730 / remove_cloud_init.sh
Created June 24, 2020 14:48
[#provisioning #ubuntu1804] Remove cloud.init
#!/bin/bash
echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/
<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@levi730
levi730 / mysql_splitdump_v2.sh
Created July 19, 2024 16:52 — forked from m-faraz/mysql_splitdump_v2.sh
Split MySQL dump SQL file into one file per table
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
####
# This version modified from https://gist.github.com/jasny/1608062
####