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
using System; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; | |
namespace MSBuildHelloWorldTask | |
{ | |
public class HelloWorld : Task | |
{ | |
[Required] | |
public string FirstName |
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
// | |
// main.c | |
// AppStatusChecker | |
// | |
// Created by Jonny Yu on 1/23/14. | |
// Copyright (c) 2014 Jonny Yu. All rights reserved. | |
// | |
#include <CoreServices/CoreServices.h> | |
#include <ApplicationServices/ApplicationServices.h> |
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
require 'formula' | |
class Llvm33 < Formula | |
homepage 'http://llvm.org/' | |
revision 1 | |
stable do | |
url 'http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz' | |
sha1 'c6c22d5593419e3cb47cbcf16d967640e5cce133' |
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
#!/usr/bin/ruby | |
require 'webrick' | |
server = WEBrick::HTTPServer.new(:Port => 8081) | |
server.mount_proc '/' do |req, res| | |
res.body = 'packager-status:running' | |
end | |
server.start |
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
copy %userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*.* %userprofile%\Pictures\Windows_LockScreen | |
cd /d %userprofile%\Pictures\Windows_LockScreen | |
ren * *.jpg |
This file has been truncated, but you can view the full file.
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
C:\Data2>git config --global --list | |
fatal: unable to read config file 'C:/Users/Administrator.ECS-BASE-WIN-20/.gitconfig': No such file or directory | |
C:\Data2>git config --system --list | |
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt | |
http.sslbackend=openssl | |
diff.astextplain.textconv=astextplain | |
filter.lfs.clean=git-lfs clean -- %f | |
filter.lfs.smudge=git-lfs smudge -- %f | |
filter.lfs.process=git-lfs filter-process |
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
from typing import Optional, Union | |
import jsii | |
from aws_cdk import ( | |
aws_ec2 as ec2, | |
aws_rds as rds, | |
aws_kms as kms, | |
aws_secretsmanager as secretsmanager, | |
core, | |
) |
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
# add to ~/.aws/config and add the path to your folder. | |
[profile vscode] | |
region = us-west-2 | |
credential_process = /home/ec2-user/.aws/get_credentials_vscode.sh |
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
def zip(zip_file, src_dir): | |
with zipfile.ZipFile(zip_file, 'w') as zipObj: | |
for folderName, subfolders, filenames in os.walk(src_dir): | |
for filename in filenames: | |
# create complete filepath of file in directory | |
filePath = os.path.join(folderName, filename) | |
zipObj.write(filePath, osp.relpath(filePath, src_dir)) |
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
import subprocess | |
def get_tag(): | |
return subprocess.check_output(['git', 'describe', '--always'], cwd='json', encoding='utf-8').strip() |
OlderNewer