Skip to content

Instantly share code, notes, and snippets.

View kenny1har's full-sized avatar

Kenny Hartono kenny1har

View GitHub Profile
@kenny1har
kenny1har / gist:c52dbf0aad3e5a2ca71de524989bd957
Created November 25, 2019 10:03
nginx.conf.sigil for dokku HTTPS
server {
listen [::]:80;
listen 80;
server_name _;
access_log /var/log/nginx/{{ $.APP }}-access.log;
error_log /var/log/nginx/{{ $.APP }}-error.log;
location / {
gzip on;
gzip_min_length 1100;
@kenny1har
kenny1har / php.ini
Created September 16, 2019 04:24
php 7.1
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@kenny1har
kenny1har / bbbb
Last active October 31, 2018 08:47
bbbc
{
"type": "Feature",
"properties": {
"popupContent": "This is the Auraria West Campus",
"style": {
"weight": 2,
"color": "#999",
"opacity": 1,
"fillColor": "#B0DE5C",
"fillOpacity": 0.8
127.0.0.1 05ee3a24ed11df058c8.com
127.0.0.1 188affiliates.com
127.0.0.1 1iklanbaris.com
127.0.0.1 1st-iklan.com
127.0.0.1 3b7c0f01022f61d5.com
127.0.0.1 66cpwgln.space
127.0.0.1 690179b5160e450.com
127.0.0.1 6a0e2d19ac28.com
127.0.0.1 6c37f8a12dede103bf7.com
127.0.0.1 8a333bc2b4d6.com
@kenny1har
kenny1har / pihole
Last active October 26, 2017 10:45
docker run -d \
--name pihole \
-p 53:53/tcp -p 53:53/udp -p 82:80 \
-v "${DOCKER_CONFIGS}/pihole/:/etc/pihole/" \
-v "${DOCKER_CONFIGS}/dnsmasq.d/:/etc/dnsmasq.d/" \
-e ServerIP="127.0.0.1" \
-e WEBPASSWORD="" \
--restart=always \
diginc/pi-hole:alpine
Sub makeIndividual()
Dim personName as String
personName = "test"
Dim newBook As Workbook
Set newBook = workbooks.Add
newBook.Activate
With newBook
.Author = personName
.Comments = personName
function getFiles(folder, search) {
var items = folder.getFiles();
var files = [];
for (var i=0; i < items.length; i++) {
var item = items[i];
if (item instanceof Folder && item.name != '.' && item.name != '..') {
files.concat(getFiles(folder));
} else if (item instanceof File && item.name.toLowerCase().indexOf(search) > -1) {
files.push(item);
}
function removeMetadata( file ){
if ( !ExternalObject.AdobeXMPScript ) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
var xmpf = new XMPFile( File(file).fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE );
var xmp = xmpf.getXMP();
XMPUtils.removeProperties(xmp, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
if (xmpf.canPutXMP( xmp )) {
xmpf.putXMP( xmp );
}
xmpf.closeFile( XMPConst.CLOSE_UPDATE_SAFELY );
};
docker rm $(docker ps -a | grep Exited | awk '{print $1}')
docker rmi $(docker images -q -f "dangling=true")
docker volume rm $(docker volume ls -qf dangling=true)