Skip to content

Instantly share code, notes, and snippets.

View tonidy's full-sized avatar

toni dy tonidy

View GitHub Profile
@echo off
rem
rem ****************************************************************************
rem
rem Copyright (c) Microsoft Corporation. All rights reserved.
rem This code is licensed under the Microsoft Public License.
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
@tonidy
tonidy / gist:a159c5080ec3a0152e6b
Last active August 27, 2022 00:24
boxstarter
# install programs
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowFileExtensions
choco install PsGet -force
Import-Module PsGet
Install-Module -ModuleUrl https://gist.githubusercontent.com/alexanderfloh/cdd2f1cc24f1a4a823aa/raw/de08481eff702a074cc682abf54ca038b14d4e36/mount.iso.psm1
me@ubuntu:/opt/blu/meshblu/node_modules/mosca/node_modules/zmq$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python2
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
@tonidy
tonidy / gist:8f28dd0b4c6eb204ea5b
Last active August 31, 2015 09:31
kambing.sources.list
#deb http://kambing.ui.ac.id/ubuntu/ trusty main restricted universe multiverse
#deb http://kambing.ui.ac.id/ubuntu/ trusty-updates main restricted universe multiverse
#deb http://kambing.ui.ac.id/ubuntu/ trusty-security main restricted universe multiverse
#deb http://kambing.ui.ac.id/ubuntu/ trusty-backports main restricted universe multiverse
#deb http://kambing.ui.ac.id/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ trusty main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ trusty-updates main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ trusty-security main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu/ trusty-backports main restricted universe multiverse
@tonidy
tonidy / make-youtrack.sh
Last active September 18, 2015 11:26 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl aria2c -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@tonidy
tonidy / 0_reuse_code.js
Last active September 17, 2015 13:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tonidy
tonidy / make-yt-custom.sh
Last active September 18, 2015 10:27
make-yt-custom.sh
#!/bin/bash
echo
java -version
update-alternatives --display java
javac -version
update-alternatives --display javac
echo
@tonidy
tonidy / remove-objects.sql
Created March 10, 2016 02:56
Drop all objects in a sql server database
-- src: http://blog.falafel.com/t-sql-drop-all-objects-in-a-sql-server-database
declare @stmt nvarchar(max)
-- procedures
select top 1 @stmt = isnull( @stmt + '
', '' ) + 'drop procedure ' + quotename(schema_name(schema_id)) + '.' + quotename(name)
from sys.procedures
-- check constraints
select top 1 @stmt = isnull( @stmt + '
@tonidy
tonidy / SP-CleanUpSchema.sql
Created March 10, 2016 03:08
SP-CleanUpSchema.sql
/********************************************************
COPYRIGHTS http://www.ranjithk.com
Link http://ranjithk.com/2010/01/31/script-to-drop-all-objects-of-a-schema/
*********************************************************/
CREATE PROCEDURE CleanUpSchema
(
@SchemaName varchar(100)
,@WorkTest char(1) = 'w' -- use 'w' to work and 't' to print
)
AS
Alhamdulillah menu sahur dan buka puasa selama dua minggu sdh selesai kami buat
Hari 1: Iga penyet
Hari 2: Kari ayam GB
Hari 3: Soto koya
Hari 4: Sate
Hari 5: Rendang pedas
Hari 6: Empal gentong
Hari 7: Soto betawi
Hari 8: Ikan Cakalang