Skip to content

Instantly share code, notes, and snippets.

@AKB428
AKB428 / iftop_osx_insrall
Last active March 4, 2018 08:33
iftopをOSXにbrewでイントール
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ brew install iftop
==> Downloading http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/iftop/1.0pre4 --mandir=/usr/local/Cellar/iftop/1.0pre4/share/man
==> make install
==> Caveats
iftop requires superuser privileges. You can either run the program
via `sudo`, or change its ownership to root and set the setuid bit:
$ sudo chown root:wheel /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
$ sudo chmod u+s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
@msabramo
msabramo / crisp2.out
Last active February 26, 2019 09:15
pymssql: Demonstration that with as_dict=True you have to name result columns that come from functions like MIN/MAX
(py26.venv)marca@marca-mac2:~/dev/git-repos/pymssql$ python stuff/crisp2.py
SELECT MAX(x)
FROM (VALUES (1, 2), (3, 4), (5, 6), (7, 8)) AS foo(x, y)
rows1 = [{}]
SELECT MAX(x) AS [MAX(x)]
FROM (VALUES (1, 2), (3, 4), (5, 6), (7, 8)) AS foo(x, y)
@debedb
debedb / WrappedStreamingBody
Last active November 26, 2020 09:05
Wrap boto3's StreamingBody object to provide enough Python fileobj functionality fileobj functionality so that GzipFile is satisfied.
class WrappedStreamingBody:
"""
Wrap boto3's StreamingBody object to provide enough
fileobj functionality so that GzipFile is
satisfied. Sometimes duck typing is awesome.
@ddnn55
ddnn55 / README.md
Last active January 26, 2021 08:32 — forked from pecigonzalo/delete_all_object_versions.sh
Remove all latest delete markers under an s3 prefix, thereby "restoring a deleted directory"

Usage

./s3_remove_delete_markers_recursive.sh <bucket_name> <prefix>

Dependencies

@jordelver
jordelver / gist:3139365
Created July 18, 2012 22:29
How to write an image file to an SD card under Mac OS X (for Raspberry Pi)

Find the SD card device

In this case, the SD card is /dev/disk4. DO NOT get this wrong or you may destroy all the data on the wrong disk/card/drive.

diskutil list

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *160.0 GB   disk0

1: EFI 209.7 MB disk0s1

@deeja
deeja / nuxt-layout-full-height.vue
Created May 25, 2020 14:52
Full height Nuxt.js layout hack
<style>
div#__nuxt,
#__layout,
#__layout > div,
#app {
min-height: 100vh;
}
</style>
@christopher-hopper
christopher-hopper / vm-resize-hard-disk.md
Last active April 5, 2022 10:30
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

@Swalloow
Swalloow / dynamo_delete_all.py
Created May 18, 2018 06:38
Boto3 DynamoDB delete all items
import boto3
dynamodb = boto3.resource('dynamodb', 'region-name')
table = dynamodb.Table('table-name')
scan = table.scan(
ProjectionExpression='#k',
ExpressionAttributeNames={
'#k': 'name'
}
$ cd /var/lib/docker
$ btrfs subvolume delete btrfs/subvolumes/*
2Dデザイン・特殊効果
2Dワークス・特殊効果
2D・モニターデザイン
2D・特殊効果
3Dディレクター・モデリング
3Dディレクター・モデルデザイン
3Dメカニックデザイン・3D監修
3Dヴィジュアル・ディレクター
3D・CG制作・モニターグラフィックス
CAD・メカニックデザイン